24
24
*/
25
25
package jdk .graal .compiler .hotspot .stubs ;
26
26
27
+ import static jdk .graal .compiler .nodes .ConstantNode .forBoolean ;
27
28
import static jdk .vm .ci .hotspot .HotSpotCallingConventionType .JavaCall ;
28
29
import static jdk .vm .ci .hotspot .HotSpotCallingConventionType .JavaCallee ;
29
30
import static jdk .vm .ci .hotspot .HotSpotCallingConventionType .NativeCall ;
30
31
import static jdk .vm .ci .services .Services .IS_BUILDING_NATIVE_IMAGE ;
31
- import static jdk .graal .compiler .nodes .ConstantNode .forBoolean ;
32
32
33
33
import jdk .graal .compiler .core .common .CompilationIdentifier ;
34
34
import jdk .graal .compiler .core .common .spi .ForeignCallDescriptor ;
43
43
import jdk .graal .compiler .hotspot .meta .HotSpotForeignCallDescriptor ;
44
44
import jdk .graal .compiler .hotspot .meta .HotSpotLoweringProvider ;
45
45
import jdk .graal .compiler .hotspot .meta .HotSpotProviders ;
46
- import jdk .graal .compiler .nodes .InvokeNode ;
47
46
import jdk .graal .compiler .nodes .ParameterNode ;
48
47
import jdk .graal .compiler .nodes .ReturnNode ;
49
48
import jdk .graal .compiler .nodes .StructuredGraph ;
52
51
import jdk .graal .compiler .replacements .GraphKit ;
53
52
import jdk .graal .compiler .replacements .nodes .ReadRegisterNode ;
54
53
import jdk .graal .compiler .word .WordTypes ;
55
-
56
54
import jdk .vm .ci .hotspot .HotSpotJVMCIRuntime ;
57
55
import jdk .vm .ci .hotspot .HotSpotSignature ;
58
56
import jdk .vm .ci .meta .JavaMethod ;
@@ -193,7 +191,7 @@ protected final Object debugScopeContext() {
193
191
* getAndClearObjectResult(thread());
194
192
* DeoptimizeCallerNode.deopt(None, RuntimeConstraint);
195
193
* }
196
- * return verifyObject( getAndClearObjectResult(thread() ));
194
+ * return getAndClearObjectResult(thread());
197
195
* }
198
196
* </pre>
199
197
*
@@ -236,7 +234,6 @@ protected final StructuredGraph getGraph(DebugContext debug, CompilationIdentifi
236
234
ForeignCallSnippets .Templates foreignCallSnippets = lowerer .getForeignCallSnippets ();
237
235
ResolvedJavaMethod handlePendingException = foreignCallSnippets .handlePendingException .getMethod ();
238
236
ResolvedJavaMethod getAndClearObjectResult = foreignCallSnippets .getAndClearObjectResult .getMethod ();
239
- ResolvedJavaMethod verifyObject = foreignCallSnippets .verifyObject .getMethod ();
240
237
ResolvedJavaMethod thisMethod = getGraphMethod ();
241
238
HotSpotGraphKit kit = new HotSpotGraphKit (debug , thisMethod , providers , wordTypes , providers .getGraphBuilderPlugins (), compilationId , toString (), false , true );
242
239
StructuredGraph graph = kit .getGraph ();
@@ -247,8 +244,7 @@ protected final StructuredGraph getGraph(DebugContext debug, CompilationIdentifi
247
244
kit .createIntrinsicInvoke (handlePendingException , thread , forBoolean (shouldClearException , graph ), forBoolean (isObjectResult , graph ));
248
245
}
249
246
if (isObjectResult ) {
250
- InvokeNode object = kit .createIntrinsicInvoke (getAndClearObjectResult , thread );
251
- result = kit .createIntrinsicInvoke (verifyObject , object );
247
+ result = kit .createIntrinsicInvoke (getAndClearObjectResult , thread );
252
248
}
253
249
kit .append (new ReturnNode (linkage .getDescriptor ().getResultType () == void .class ? null : result ));
254
250
debug .dump (DebugContext .VERBOSE_LEVEL , graph , "Initial stub graph" );
0 commit comments