@@ -107,10 +107,9 @@ protected InvokeStaticJavaMethodNode(NodeClass<? extends InvokeStaticJavaMethodN
107
107
this .invokeKind = CallTargetNode .InvokeKind .Static ;
108
108
}
109
109
110
- @ SuppressWarnings ("unused" )
111
- public static InvokeStaticJavaMethodNode create (MethodReference wrapper , ResolvedJavaMethod callerMethod , int bci , ValueNode ... args ) {
112
- verifyTargetMethod (wrapper .targetMethod );
113
- ResolvedJavaMethod targetMethod = wrapper .targetMethod ;
110
+ public static InvokeStaticJavaMethodNode create (MethodReference methodReference , ResolvedJavaMethod callerMethod , int bci , ValueNode ... args ) {
111
+ verifyTargetMethod (methodReference .targetMethod );
112
+ ResolvedJavaMethod targetMethod = methodReference .targetMethod ;
114
113
JavaKind returnKind = targetMethod .getSignature ().getReturnKind ();
115
114
return new InvokeStaticJavaMethodNode (TYPE , targetMethod , callerMethod , StampPair .createSingle (StampFactory .forKind (returnKind )), bci , args );
116
115
}
@@ -123,9 +122,9 @@ public static InvokeStaticJavaMethodNode create(GraphBuilderContext b, ResolvedJ
123
122
return create (b , targetMethod , b .getMethod (), returnStamp , bci , args );
124
123
}
125
124
126
- private static InvokeStaticJavaMethodNode createWithoutTargetMethod (GraphBuilderContext b , MethodReference method , Stamp returnStamp , int bci , ValueNode ... args ) {
125
+ private static InvokeStaticJavaMethodNode createWithoutTargetMethod (GraphBuilderContext b , MethodReference methodReference , Stamp returnStamp , int bci , ValueNode ... args ) {
127
126
InvokeStaticJavaMethodNode invoke = create (b , null , b .getMethod (), StampPair .createSingle (returnStamp ), bci , args );
128
- invoke .methodReference = method ;
127
+ invoke .methodReference = methodReference ;
129
128
return invoke ;
130
129
}
131
130
@@ -204,10 +203,10 @@ public Map<Object, Object> getDebugProperties(Map<Object, Object> map) {
204
203
return debugProperties ;
205
204
}
206
205
207
- public static boolean intrinsify (GraphBuilderContext b , @ InjectedNodeParameter Stamp returnStamp , MethodReference method , ValueNode ... args ) {
206
+ public static boolean intrinsify (GraphBuilderContext b , @ InjectedNodeParameter Stamp returnStamp , MethodReference methodReference , ValueNode ... args ) {
208
207
GraphBuilderContext nonIntrinsicAncestor = b .getNonIntrinsicAncestor ();
209
208
int bci = nonIntrinsicAncestor == null ? BytecodeFrame .UNKNOWN_BCI : b .bci ();
210
- InvokeStaticJavaMethodNode invoke = InvokeStaticJavaMethodNode .createWithoutTargetMethod (b , method , returnStamp , bci , args );
209
+ InvokeStaticJavaMethodNode invoke = InvokeStaticJavaMethodNode .createWithoutTargetMethod (b , methodReference , returnStamp , bci , args );
211
210
JavaKind returnKind = returnStamp .getStackKind ();
212
211
if (returnKind == JavaKind .Void ) {
213
212
b .add (invoke );
@@ -222,7 +221,7 @@ public static boolean intrinsify(GraphBuilderContext b, @InjectedNodeParameter S
222
221
* set in the {@link MethodReference}, otherwise the node cannot be lowered.
223
222
*/
224
223
@ NodeIntrinsic
225
- public static native void invoke (@ ConstantNodeParameter MethodReference method , Object arg1 );
224
+ public static native void invoke (@ ConstantNodeParameter MethodReference methodReference , Object arg1 );
226
225
227
226
@ SuppressWarnings ("try" )
228
227
public Invoke replaceWithInvoke () {
0 commit comments