@@ -72,10 +72,9 @@ public static CallVarargsMethodNode getUncached() {
72
72
return CallVarargsMethodNodeGen .getUncached ();
73
73
}
74
74
75
- @ Specialization (guards = {"func == cachedFunc" , "builtinNode != null" , "frame != null || unusedFrame" }, //
75
+ @ Specialization (guards = {"isSingleContext()" , " func == cachedFunc" , "builtinNode != null" , "frame != null || unusedFrame" }, //
76
76
limit = "getCallSiteInlineCacheMaxDepth()" , //
77
- rewriteOn = VarargsBuiltinDirectInvocationNotSupported .class , //
78
- assumptions = "singleContextAssumption()" )
77
+ rewriteOn = VarargsBuiltinDirectInvocationNotSupported .class )
79
78
Object callVarargsDirect (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinFunction func , Object [] arguments , PKeyword [] keywords ,
80
79
@ Cached ("func" ) @ SuppressWarnings ("unused" ) PBuiltinFunction cachedFunc ,
81
80
@ Cached ("getVarargs(frame, func)" ) PythonVarargsBuiltinNode builtinNode ,
@@ -92,8 +91,8 @@ Object callVarargs(VirtualFrame frame, @SuppressWarnings("unused") PBuiltinFunct
92
91
return builtinNode .varArgExecute (frame , PNone .NO_VALUE , arguments , keywords );
93
92
}
94
93
95
- @ Specialization (guards = {"func == cachedFunc" , "builtinNode != null" , "takesSelfArg" ,
96
- "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" , assumptions = "singleContextAssumption()" )
94
+ @ Specialization (guards = {"isSingleContext()" , " func == cachedFunc" , "builtinNode != null" , "takesSelfArg" ,
95
+ "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
97
96
Object callSelfMethodSingleContext (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object [] arguments , PKeyword [] keywords ,
98
97
@ SuppressWarnings ("unused" ) @ Cached ("func" ) PBuiltinMethod cachedFunc ,
99
98
@ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
@@ -102,7 +101,8 @@ Object callSelfMethodSingleContext(VirtualFrame frame, @SuppressWarnings("unused
102
101
return builtinNode .varArgExecute (frame , func .getSelf (), arguments , keywords );
103
102
}
104
103
105
- @ Specialization (guards = {"builtinNode != null" , "getCallTarget(func, getCt) == ct" , "takesSelfArg" , "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
104
+ @ Specialization (guards = {"builtinNode != null" , "getCallTarget(func, getCt) == ct" , "takesSelfArg" , "frame != null || unusedFrame" }, //
105
+ limit = "getCallSiteInlineCacheMaxDepth()" )
106
106
Object callSelfMethod (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object [] arguments , PKeyword [] keywords ,
107
107
@ SuppressWarnings ("unused" ) @ Cached GetCallTargetNode getCt ,
108
108
@ SuppressWarnings ("unused" ) @ Cached ("getCallTarget(func, getCt)" ) RootCallTarget ct ,
0 commit comments