55
55
import com .oracle .graal .python .nodes .argument .CreateArgumentsNode ;
56
56
import com .oracle .graal .python .nodes .argument .positional .PositionalArgumentsNode ;
57
57
import com .oracle .graal .python .nodes .attributes .LookupInheritedAttributeNode ;
58
+ import com .oracle .graal .python .nodes .attributes .LookupInheritedSlotNode ;
58
59
import com .oracle .graal .python .nodes .call .special .CallVarargsMethodNode ;
59
60
import com .oracle .graal .python .nodes .truffle .PythonTypes ;
60
61
import com .oracle .truffle .api .dsl .Cached ;
@@ -124,7 +125,7 @@ protected Object builtinFunctionCall(VirtualFrame frame, PBuiltinFunction callab
124
125
@ Specialization
125
126
protected Object doType (VirtualFrame frame , PythonBuiltinClassType callableObject , Object [] arguments , PKeyword [] keywords ,
126
127
@ Shared ("raise" ) @ Cached PRaiseNode raise ,
127
- @ Shared ("lookupCall" ) @ Cached ("create(__CALL__ )" ) LookupInheritedAttributeNode callAttrGetterNode ,
128
+ @ Shared ("lookupCall" ) @ Cached ("create(Call )" ) LookupInheritedSlotNode callAttrGetterNode ,
128
129
@ Shared ("callCall" ) @ Cached CallVarargsMethodNode callCallNode ) {
129
130
Object call = callAttrGetterNode .execute (callableObject );
130
131
return callCall (frame , callableObject , arguments , keywords , raise , callCallNode , call );
@@ -133,7 +134,7 @@ protected Object doType(VirtualFrame frame, PythonBuiltinClassType callableObjec
133
134
@ Specialization (guards = "isPythonClass(callableObject)" , replaces = "doType" )
134
135
protected Object doPythonClass (VirtualFrame frame , Object callableObject , Object [] arguments , PKeyword [] keywords ,
135
136
@ Shared ("raise" ) @ Cached PRaiseNode raise ,
136
- @ Shared ("lookupCall" ) @ Cached ("create(__CALL__ )" ) LookupInheritedAttributeNode callAttrGetterNode ,
137
+ @ Shared ("lookupCall" ) @ Cached ("create(Call )" ) LookupInheritedSlotNode callAttrGetterNode ,
137
138
@ Shared ("callCall" ) @ Cached CallVarargsMethodNode callCallNode ) {
138
139
Object call = callAttrGetterNode .execute (callableObject );
139
140
return callCall (frame , callableObject , arguments , keywords , raise , callCallNode , call );
@@ -142,7 +143,7 @@ protected Object doPythonClass(VirtualFrame frame, Object callableObject, Object
142
143
@ Specialization (guards = "!isCallable(callableObject)" , replaces = {"doType" , "doPythonClass" })
143
144
protected Object doObjectAndType (VirtualFrame frame , Object callableObject , Object [] arguments , PKeyword [] keywords ,
144
145
@ Shared ("raise" ) @ Cached PRaiseNode raise ,
145
- @ Shared ("lookupCall" ) @ Cached ("create(__CALL__ )" ) LookupInheritedAttributeNode callAttrGetterNode ,
146
+ @ Shared ("lookupCall" ) @ Cached ("create(Call )" ) LookupInheritedSlotNode callAttrGetterNode ,
146
147
@ Shared ("callCall" ) @ Cached CallVarargsMethodNode callCallNode ) {
147
148
Object call = callAttrGetterNode .execute (callableObject );
148
149
return callCall (frame , callableObject , arguments , keywords , raise , callCallNode , call );
@@ -191,15 +192,15 @@ protected Object builtinMethodCallBuiltinDirect(VirtualFrame frame, PBuiltinMeth
191
192
@ Specialization (guards = "!isFunction(callable.getFunction())" )
192
193
protected Object methodCall (VirtualFrame frame , PMethod callable , Object [] arguments , PKeyword [] keywords ,
193
194
@ Shared ("raise" ) @ Cached PRaiseNode raise ,
194
- @ Shared ("lookupCall" ) @ Cached ("create(__CALL__ )" ) LookupInheritedAttributeNode callAttrGetterNode ,
195
+ @ Shared ("lookupCall" ) @ Cached ("create(Call )" ) LookupInheritedSlotNode callAttrGetterNode ,
195
196
@ Shared ("callCall" ) @ Cached CallVarargsMethodNode callCallNode ) {
196
197
return doObjectAndType (frame , callable , arguments , keywords , raise , callAttrGetterNode , callCallNode );
197
198
}
198
199
199
200
@ Specialization (guards = "!isFunction(callable.getFunction())" )
200
201
protected Object builtinMethodCall (VirtualFrame frame , PBuiltinMethod callable , Object [] arguments , PKeyword [] keywords ,
201
202
@ Shared ("raise" ) @ Cached PRaiseNode raise ,
202
- @ Shared ("lookupCall" ) @ Cached ("create(__CALL__ )" ) LookupInheritedAttributeNode callAttrGetterNode ,
203
+ @ Shared ("lookupCall" ) @ Cached ("create(Call )" ) LookupInheritedSlotNode callAttrGetterNode ,
203
204
@ Shared ("callVarargs" ) @ Cached CallVarargsMethodNode callCallNode ) {
204
205
return doObjectAndType (frame , callable , arguments , keywords , raise , callAttrGetterNode , callCallNode );
205
206
}
0 commit comments