Search in sources :

Example 11 with BytecodeProvider

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

the class RedefineIntrinsicTest method registerInvocationPlugins.

@Override
protected void registerInvocationPlugins(InvocationPlugins invocationPlugins) {
    BytecodeProvider replacementBytecodeProvider = getSystemClassLoaderBytecodeProvider();
    Registration r = new Registration(invocationPlugins, Original.class, replacementBytecodeProvider);
    r.registerMethodSubstitution(Intrinsic.class, "getValue");
    super.registerInvocationPlugins(invocationPlugins);
}
Also used : Registration(org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.Registration) BytecodeProvider(org.graalvm.compiler.bytecode.BytecodeProvider)

Aggregations

BytecodeProvider (org.graalvm.compiler.bytecode.BytecodeProvider)11 TargetDescription (jdk.vm.ci.code.TargetDescription)4 Providers (org.graalvm.compiler.phases.util.Providers)4 Plugins (org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration.Plugins)3 NodeIntrinsicPluginFactory (org.graalvm.compiler.nodes.graphbuilderconf.NodeIntrinsicPluginFactory)3 HostedProviders (com.oracle.graal.pointsto.meta.HostedProviders)2 SubstrateReplacements (com.oracle.svm.core.graal.meta.SubstrateReplacements)2 InitTimer (jdk.vm.ci.common.InitTimer)2 HotSpotCodeCacheProvider (jdk.vm.ci.hotspot.HotSpotCodeCacheProvider)2 HotSpotConstantReflectionProvider (jdk.vm.ci.hotspot.HotSpotConstantReflectionProvider)2 HotSpotMetaAccessProvider (jdk.vm.ci.hotspot.HotSpotMetaAccessProvider)2 Value (jdk.vm.ci.meta.Value)2 JVMCIBackend (jdk.vm.ci.runtime.JVMCIBackend)2 GraalHotSpotVMConfig (org.graalvm.compiler.hotspot.GraalHotSpotVMConfig)2 HotSpotReplacementsImpl (org.graalvm.compiler.hotspot.HotSpotReplacementsImpl)2 HotSpotGraalConstantFieldProvider (org.graalvm.compiler.hotspot.meta.HotSpotGraalConstantFieldProvider)2 HotSpotGraphBuilderPlugins (org.graalvm.compiler.hotspot.meta.HotSpotGraphBuilderPlugins)2 HotSpotHostForeignCallsProvider (org.graalvm.compiler.hotspot.meta.HotSpotHostForeignCallsProvider)2 HotSpotLoweringProvider (org.graalvm.compiler.hotspot.meta.HotSpotLoweringProvider)2 HotSpotProviders (org.graalvm.compiler.hotspot.meta.HotSpotProviders)2