Search in sources :

Example 6 with ResolvedJavaMethodBytecode

use of org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode in project graal by oracle.

the class ClassfileBytecodeProviderTest method checkMethod.

private static void checkMethod(ClassfileBytecodeProvider cbp, MetaAccessProvider metaAccess, Executable executable) {
    ResolvedJavaMethod method = metaAccess.lookupJavaMethod(executable);
    if (method.hasBytecodes()) {
        ResolvedJavaMethodBytecode expected = new ResolvedJavaMethodBytecode(method);
        Bytecode actual = getBytecode(cbp, method);
        new BytecodeComparer(expected, actual).compare();
    }
}
Also used : ResolvedJavaMethodBytecode(org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode) Bytecode(org.graalvm.compiler.bytecode.Bytecode) ClassfileBytecode(org.graalvm.compiler.replacements.classfile.ClassfileBytecode) ResolvedJavaMethodBytecode(org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode) ResolvedJavaMethod(jdk.vm.ci.meta.ResolvedJavaMethod)

Aggregations

ResolvedJavaMethodBytecode (org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode)6 Bytecode (org.graalvm.compiler.bytecode.Bytecode)5 ResolvedJavaMethod (jdk.vm.ci.meta.ResolvedJavaMethod)3 DebugContext (org.graalvm.compiler.debug.DebugContext)3 StructuredGraph (org.graalvm.compiler.nodes.StructuredGraph)3 InvocationPlugin (org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugin)3 OptionValues (org.graalvm.compiler.options.OptionValues)3 SubstrateIntrinsicGraphBuilder (com.oracle.graal.pointsto.phases.SubstrateIntrinsicGraphBuilder)2 GraphBuilderConfiguration (org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration)2 CanonicalizerPhase (org.graalvm.compiler.phases.common.CanonicalizerPhase)2 PhaseContext (org.graalvm.compiler.phases.tiers.PhaseContext)2 HostedProviders (com.oracle.graal.pointsto.meta.HostedProviders)1 DeadStoreRemovalPhase (com.oracle.svm.core.graal.phases.DeadStoreRemovalPhase)1 HostedOptionValues (com.oracle.svm.core.option.HostedOptionValues)1 HostedMethod (com.oracle.svm.hosted.meta.HostedMethod)1 DevirtualizeCallsPhase (com.oracle.svm.hosted.phases.DevirtualizeCallsPhase)1 HostedGraphBuilderPhase (com.oracle.svm.hosted.phases.HostedGraphBuilderPhase)1 StrengthenStampsPhase (com.oracle.svm.hosted.phases.StrengthenStampsPhase)1 ConstantReflectionProvider (jdk.vm.ci.meta.ConstantReflectionProvider)1 RuntimeConstraint (jdk.vm.ci.meta.DeoptimizationReason.RuntimeConstraint)1