@@ -97,7 +97,7 @@ public static CreateArgumentsNode getUncached() {
97
97
return CreateArgumentsNodeGen .getUncached ();
98
98
}
99
99
100
- @ Specialization (guards = {"isMethod(method)" , "method == cachedMethod" }, limit = "getVariableArgumentInlineCacheLimit()" )
100
+ @ Specialization (guards = {"isMethod(method)" , "method == cachedMethod" }, limit = "getVariableArgumentInlineCacheLimit()" , assumptions = "singleContextAssumption()" )
101
101
Object [] doMethodCached (PythonObject method , Object [] userArguments , PKeyword [] keywords ,
102
102
@ Cached ("create()" ) CreateAndCheckArgumentsNode createAndCheckArgumentsNode ,
103
103
@ Cached ("create()" ) GetSignatureNode getSignatureNode ,
@@ -115,7 +115,7 @@ Object[] doMethodCached(PythonObject method, Object[] userArguments, PKeyword[]
115
115
}
116
116
117
117
@ Specialization (guards = {"isMethod(method)" , "getFunction(method) == cachedFunction" ,
118
- "getSelf(method) == cachedSelf" }, limit = "getVariableArgumentInlineCacheLimit()" , replaces = "doMethodCached" )
118
+ "getSelf(method) == cachedSelf" }, limit = "getVariableArgumentInlineCacheLimit()" , replaces = "doMethodCached" , assumptions = "singleContextAssumption()" )
119
119
Object [] doMethodFunctionAndSelfCached (PythonObject method , Object [] userArguments , PKeyword [] keywords ,
120
120
@ Cached ("create()" ) CreateAndCheckArgumentsNode createAndCheckArgumentsNode ,
121
121
@ Cached ("getFunction(method)" ) @ SuppressWarnings ("unused" ) Object cachedFunction ,
@@ -132,7 +132,7 @@ Object[] doMethodFunctionAndSelfCached(PythonObject method, Object[] userArgumen
132
132
return createAndCheckArgumentsNode .execute (method , userArguments , keywords , signature , cachedSelf , defaults , kwdefaults , isMethodCall (cachedSelf ));
133
133
}
134
134
135
- @ Specialization (guards = {"isMethod(method)" , "getFunction(method) == cachedFunction" }, limit = "getVariableArgumentInlineCacheLimit()" , replaces = "doMethodFunctionAndSelfCached" )
135
+ @ Specialization (guards = {"isMethod(method)" , "getFunction(method) == cachedFunction" }, limit = "getVariableArgumentInlineCacheLimit()" , replaces = "doMethodFunctionAndSelfCached" , assumptions = "singleContextAssumption()" )
136
136
Object [] doMethodFunctionCached (PythonObject method , Object [] userArguments , PKeyword [] keywords ,
137
137
@ Cached ("create()" ) CreateAndCheckArgumentsNode createAndCheckArgumentsNode ,
138
138
@ Cached ("create()" ) GetSignatureNode getSignatureNode ,
@@ -149,7 +149,7 @@ Object[] doMethodFunctionCached(PythonObject method, Object[] userArguments, PKe
149
149
return createAndCheckArgumentsNode .execute (method , userArguments , keywords , signature , self , defaults , kwdefaults , isMethodCall (self ));
150
150
}
151
151
152
- @ Specialization (guards = {"isFunction(callable)" , "callable == cachedCallable" }, limit = "getVariableArgumentInlineCacheLimit()" )
152
+ @ Specialization (guards = {"isFunction(callable)" , "callable == cachedCallable" }, limit = "getVariableArgumentInlineCacheLimit()" , assumptions = "singleContextAssumption()" )
153
153
Object [] doFunctionCached (PythonObject callable , Object [] userArguments , PKeyword [] keywords ,
154
154
@ Cached ("create()" ) CreateAndCheckArgumentsNode createAndCheckArgumentsNode ,
155
155
@ Cached ("create()" ) GetSignatureNode getSignatureNode ,
0 commit comments