@@ -90,8 +90,8 @@ public final Object executeObject(Object callable, Object arg1, Object arg2) {
90
90
91
91
@ Specialization (guards = "cachedInfo == info" , limit = "getCallSiteInlineCacheMaxDepth()" )
92
92
static Object callBinarySpecialMethodSlotInlined (VirtualFrame frame , @ SuppressWarnings ("unused" ) BinaryBuiltinDescriptor info , Object arg1 , Object arg2 ,
93
- @ SuppressWarnings ("unused" ) @ Cached ("info" ) BinaryBuiltinDescriptor cachedInfo ,
94
- @ Cached ("cachedInfo.createNode()" ) PythonBinaryBuiltinNode node ) {
93
+ @ SuppressWarnings ("unused" ) @ Cached ("info" ) BinaryBuiltinDescriptor cachedInfo ,
94
+ @ Cached ("cachedInfo.createNode()" ) PythonBinaryBuiltinNode node ) {
95
95
if (cachedInfo .isReverseOperation ()) {
96
96
return node .execute (frame , arg2 , arg1 );
97
97
} else {
@@ -134,10 +134,10 @@ Object callSpecialMethodSlotCallTarget(VirtualFrame frame, BuiltinMethodDescript
134
134
@ Specialization (guards = {"func == cachedFunc" , "builtinNode != null" ,
135
135
"frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" , assumptions = "singleContextAssumption()" )
136
136
static Object callObjectSingleContext (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinFunction func , Object arg1 , Object arg2 ,
137
- @ SuppressWarnings ("unused" ) @ Cached ("func" ) PBuiltinFunction cachedFunc ,
138
- @ SuppressWarnings ("unused" ) @ Cached ("isForReverseBinaryOperation(func.getCallTarget())" ) boolean isReverse ,
139
- @ Cached ("getBinary(frame, func)" ) PythonBinaryBuiltinNode builtinNode ,
140
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
137
+ @ SuppressWarnings ("unused" ) @ Cached ("func" ) PBuiltinFunction cachedFunc ,
138
+ @ SuppressWarnings ("unused" ) @ Cached ("isForReverseBinaryOperation(func.getCallTarget())" ) boolean isReverse ,
139
+ @ Cached ("getBinary(frame, func)" ) PythonBinaryBuiltinNode builtinNode ,
140
+ @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
141
141
if (isReverse ) {
142
142
return builtinNode .execute (frame , arg2 , arg1 );
143
143
} else {
@@ -147,10 +147,10 @@ static Object callObjectSingleContext(VirtualFrame frame, @SuppressWarnings("unu
147
147
148
148
@ Specialization (guards = {"func.getCallTarget() == ct" , "builtinNode != null" , "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
149
149
static Object callObject (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinFunction func , Object arg1 , Object arg2 ,
150
- @ SuppressWarnings ("unused" ) @ Cached ("func.getCallTarget()" ) RootCallTarget ct ,
151
- @ SuppressWarnings ("unused" ) @ Cached ("isForReverseBinaryOperation(func.getCallTarget())" ) boolean isReverse ,
152
- @ Cached ("getBinary(frame, func)" ) PythonBinaryBuiltinNode builtinNode ,
153
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
150
+ @ SuppressWarnings ("unused" ) @ Cached ("func.getCallTarget()" ) RootCallTarget ct ,
151
+ @ SuppressWarnings ("unused" ) @ Cached ("isForReverseBinaryOperation(func.getCallTarget())" ) boolean isReverse ,
152
+ @ Cached ("getBinary(frame, func)" ) PythonBinaryBuiltinNode builtinNode ,
153
+ @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
154
154
if (isReverse ) {
155
155
return builtinNode .execute (frame , arg2 , arg1 );
156
156
} else {
@@ -161,40 +161,40 @@ static Object callObject(VirtualFrame frame, @SuppressWarnings("unused") PBuilti
161
161
@ Specialization (guards = {"func == cachedFunc" , "builtinNode != null" , "!takesSelfArg" ,
162
162
"frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" , assumptions = "singleContextAssumption()" )
163
163
static Object callMethodSingleContext (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object arg1 , Object arg2 ,
164
- @ SuppressWarnings ("unused" ) @ Cached ("func" ) PBuiltinMethod cachedFunc ,
165
- @ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
166
- @ Cached ("getBinary(frame, func.getFunction())" ) PythonBinaryBuiltinNode builtinNode ,
167
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
164
+ @ SuppressWarnings ("unused" ) @ Cached ("func" ) PBuiltinMethod cachedFunc ,
165
+ @ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
166
+ @ Cached ("getBinary(frame, func.getFunction())" ) PythonBinaryBuiltinNode builtinNode ,
167
+ @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
168
168
return builtinNode .execute (frame , arg1 , arg2 );
169
169
}
170
170
171
171
@ Specialization (guards = {"func == cachedFunc" , "builtinNode != null" , "takesSelfArg" ,
172
172
"frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" , assumptions = "singleContextAssumption()" )
173
173
static Object callSelfMethodSingleContext (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object arg1 , Object arg2 ,
174
- @ SuppressWarnings ("unused" ) @ Cached (value = "func" , weak = true ) PBuiltinMethod cachedFunc ,
175
- @ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
176
- @ Cached ("getTernary(frame, func.getFunction())" ) PythonTernaryBuiltinNode builtinNode ,
177
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
174
+ @ SuppressWarnings ("unused" ) @ Cached (value = "func" , weak = true ) PBuiltinMethod cachedFunc ,
175
+ @ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
176
+ @ Cached ("getTernary(frame, func.getFunction())" ) PythonTernaryBuiltinNode builtinNode ,
177
+ @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
178
178
return builtinNode .execute (frame , func .getSelf (), arg1 , arg2 );
179
179
}
180
180
181
181
@ Specialization (guards = {"builtinNode != null" , "getCallTarget(func, getCt) == ct" , "!takesSelfArg" , "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
182
182
static Object callMethod (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object arg1 , Object arg2 ,
183
- @ SuppressWarnings ("unused" ) @ Cached GetCallTargetNode getCt ,
184
- @ SuppressWarnings ("unused" ) @ Cached ("getCallTarget(func, getCt)" ) RootCallTarget ct ,
185
- @ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
186
- @ Cached ("getBinary(frame, func.getFunction())" ) PythonBinaryBuiltinNode builtinNode ,
187
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
183
+ @ SuppressWarnings ("unused" ) @ Cached GetCallTargetNode getCt ,
184
+ @ SuppressWarnings ("unused" ) @ Cached ("getCallTarget(func, getCt)" ) RootCallTarget ct ,
185
+ @ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
186
+ @ Cached ("getBinary(frame, func.getFunction())" ) PythonBinaryBuiltinNode builtinNode ,
187
+ @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
188
188
return builtinNode .execute (frame , arg1 , arg2 );
189
189
}
190
190
191
191
@ Specialization (guards = {"builtinNode != null" , "getCallTarget(func, getCt) == ct" , "takesSelfArg" , "frame != null || unusedFrame" }, limit = "getCallSiteInlineCacheMaxDepth()" )
192
192
static Object callSelfMethod (VirtualFrame frame , @ SuppressWarnings ("unused" ) PBuiltinMethod func , Object arg1 , Object arg2 ,
193
- @ SuppressWarnings ("unused" ) @ Cached GetCallTargetNode getCt ,
194
- @ SuppressWarnings ("unused" ) @ Cached ("getCallTarget(func, getCt)" ) RootCallTarget ct ,
195
- @ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
196
- @ Cached ("getTernary(frame, func.getFunction())" ) PythonTernaryBuiltinNode builtinNode ,
197
- @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
193
+ @ SuppressWarnings ("unused" ) @ Cached GetCallTargetNode getCt ,
194
+ @ SuppressWarnings ("unused" ) @ Cached ("getCallTarget(func, getCt)" ) RootCallTarget ct ,
195
+ @ SuppressWarnings ("unused" ) @ Cached ("takesSelfArg(func)" ) boolean takesSelfArg ,
196
+ @ Cached ("getTernary(frame, func.getFunction())" ) PythonTernaryBuiltinNode builtinNode ,
197
+ @ SuppressWarnings ("unused" ) @ Cached ("frameIsUnused(builtinNode)" ) boolean unusedFrame ) {
198
198
return builtinNode .execute (frame , func .getSelf (), arg1 , arg2 );
199
199
}
200
200
0 commit comments