@@ -133,73 +133,62 @@ Object callSpecialMethodSlotCallTarget(VirtualFrame frame, BuiltinMethodDescript
133
133
return invokeNode .execute (frame , callTarget , arguments );
134
134
}
135
135
136
- @ Specialization (guards = {"isSingleContext()" , "func == cachedFunc" , "builtinNode != null" ,
137
- "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
136
+ @ Specialization (guards = {"isSingleContext()" , "func == cachedFunc" , "builtinNode != null" }, limit = "getCallSiteInlineCacheMaxDepth()" )
138
137
static Object callObjectSingleContext (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinFunction func , Object arg1 , Object arg2 ,
139
138
@ SuppressWarnings ("unused" ) @ Cached ("func" ) PBuiltinFunction cachedFunc ,
140
139
@ SuppressWarnings ("unused" ) @ Cached ("isForReverseBinaryOperation(func.getCallTarget())" ) boolean isReverse ,
141
- @ Cached ("getBuiltin(frame, func, 2)" ) PythonBuiltinBaseNode builtinNode ,
142
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
140
+ @ Cached ("getBuiltin(frame, func, 2)" ) PythonBuiltinBaseNode builtinNode ) {
143
141
if (isReverse ) {
144
142
return callBinaryBuiltin (frame , builtinNode , arg2 , arg1 );
145
143
} else {
146
144
return callBinaryBuiltin (frame , builtinNode , arg1 , arg2 );
147
145
}
148
146
}
149
147
150
- @ Specialization (guards = {"func.getCallTarget() == ct" , "builtinNode != null" , "frame != null || unusedFrame" }, //
148
+ @ Specialization (guards = {"func.getCallTarget() == ct" , "builtinNode != null" }, //
151
149
limit = "getCallSiteInlineCacheMaxDepth()" )
152
150
static Object callObject (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinFunction func , Object arg1 , Object arg2 ,
153
151
@ SuppressWarnings ("unused" ) @ Cached ("func.getCallTarget()" ) RootCallTarget ct ,
154
152
@ SuppressWarnings ("unused" ) @ Cached ("isForReverseBinaryOperation(func.getCallTarget())" ) boolean isReverse ,
155
- @ Cached ("getBuiltin(frame, func, 2)" ) PythonBuiltinBaseNode builtinNode ,
156
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
153
+ @ Cached ("getBuiltin(frame, func, 2)" ) PythonBuiltinBaseNode builtinNode ) {
157
154
if (isReverse ) {
158
155
return callBinaryBuiltin (frame , builtinNode , arg2 , arg1 );
159
156
} else {
160
157
return callBinaryBuiltin (frame , builtinNode , arg1 , arg2 );
161
158
}
162
159
}
163
160
164
- @ Specialization (guards = {"isSingleContext()" , "func == cachedFunc" , "builtinNode != null" , "!takesSelfArg" ,
165
- "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
161
+ @ Specialization (guards = {"isSingleContext()" , "func == cachedFunc" , "builtinNode != null" , "!takesSelfArg" }, limit = "getCallSiteInlineCacheMaxDepth()" )
166
162
static Object callMethodSingleContext (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object arg1 , Object arg2 ,
167
163
@ SuppressWarnings ("unused" ) @ Cached ("func" ) PBuiltinMethod cachedFunc ,
168
164
@ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
169
- @ Cached ("getBuiltin(frame, func.getFunction(), 2)" ) PythonBuiltinBaseNode builtinNode ,
170
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
165
+ @ Cached ("getBuiltin(frame, func.getFunction(), 2)" ) PythonBuiltinBaseNode builtinNode ) {
171
166
return callBinaryBuiltin (frame , builtinNode , arg1 , arg2 );
172
167
}
173
168
174
- @ Specialization (guards = {"builtinNode != null" , "getCallTarget(func, getCt) == ct" , "!takesSelfArg" ,
175
- "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
169
+ @ Specialization (guards = {"builtinNode != null" , "getCallTarget(func, getCt) == ct" , "!takesSelfArg" }, limit = "getCallSiteInlineCacheMaxDepth()" )
176
170
static Object callMethod (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object arg1 , Object arg2 ,
177
171
@ SuppressWarnings ("unused" ) @ Cached GetCallTargetNode getCt ,
178
172
@ SuppressWarnings ("unused" ) @ Cached ("getCallTarget(func, getCt)" ) RootCallTarget ct ,
179
173
@ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
180
- @ Cached ("getBuiltin(frame, func.getFunction(), 2)" ) PythonBuiltinBaseNode builtinNode ,
181
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
174
+ @ Cached ("getBuiltin(frame, func.getFunction(), 2)" ) PythonBuiltinBaseNode builtinNode ) {
182
175
return callBinaryBuiltin (frame , builtinNode , arg1 , arg2 );
183
176
}
184
177
185
- @ Specialization (guards = {"isSingleContext()" , "func == cachedFunc" , "builtinNode != null" , "takesSelfArg" ,
186
- "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
178
+ @ Specialization (guards = {"isSingleContext()" , "func == cachedFunc" , "builtinNode != null" , "takesSelfArg" }, limit = "getCallSiteInlineCacheMaxDepth()" )
187
179
static Object callMethodSingleContextSelf (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object arg1 , Object arg2 ,
188
180
@ SuppressWarnings ("unused" ) @ Cached (value = "func" , weak = true ) PBuiltinMethod cachedFunc ,
189
181
@ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
190
- @ Cached ("getBuiltin(frame, func.getFunction(), 3)" ) PythonBuiltinBaseNode builtinNode ,
191
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
182
+ @ Cached ("getBuiltin(frame, func.getFunction(), 3)" ) PythonBuiltinBaseNode builtinNode ) {
192
183
return callTernaryBuiltin (frame , builtinNode , cachedFunc .getSelf (), arg1 , arg2 );
193
184
}
194
185
195
- @ Specialization (guards = {"builtinNode != null" , "getCallTarget(func, getCt) == ct" , "takesSelfArg" ,
196
- "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
186
+ @ Specialization (guards = {"builtinNode != null" , "getCallTarget(func, getCt) == ct" , "takesSelfArg" }, limit = "getCallSiteInlineCacheMaxDepth()" )
197
187
static Object callMethodSelf (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object arg1 , Object arg2 ,
198
188
@ SuppressWarnings ("unused" ) @ Cached GetCallTargetNode getCt ,
199
189
@ SuppressWarnings ("unused" ) @ Cached ("getCallTarget(func, getCt)" ) RootCallTarget ct ,
200
190
@ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
201
- @ Cached ("getBuiltin(frame, func.getFunction(), 3)" ) PythonBuiltinBaseNode builtinNode ,
202
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
191
+ @ Cached ("getBuiltin(frame, func.getFunction(), 3)" ) PythonBuiltinBaseNode builtinNode ) {
203
192
return callTernaryBuiltin (frame , builtinNode , func .getSelf (), arg1 , arg2 );
204
193
}
205
194
0 commit comments