use of com.oracle.svm.core.graal.nodes.SubstrateReflectionGetCallerClassNode in project graal by oracle.
the class SubstrateGraphBuilderPlugins method registerReflectionPlugins.
private static void registerReflectionPlugins(InvocationPlugins plugins, Replacements replacements) {
Registration r = new Registration(plugins, "jdk.internal.reflect.Reflection", replacements);
r.register(new RequiredInlineOnlyInvocationPlugin("getCallerClass") {
@Override
public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Receiver receiver) {
b.addPush(JavaKind.Object, new SubstrateReflectionGetCallerClassNode(MacroParams.of(b, targetMethod)));
return true;
}
});
}
Aggregations