@@ -123,18 +123,18 @@ protected Object builtinFunctionCall(VirtualFrame frame, PBuiltinFunction callab
123
123
124
124
@ Specialization
125
125
protected Object doType (VirtualFrame frame , PythonBuiltinClassType callableObject , Object [] arguments , PKeyword [] keywords ,
126
- @ Cached PRaiseNode raise ,
127
- @ Cached ("create(__CALL__)" ) LookupInheritedAttributeNode callAttrGetterNode ,
128
- @ Cached CallVarargsMethodNode callCallNode ) {
126
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ,
127
+ @ Shared ( "lookupCall" ) @ Cached ("create(__CALL__)" ) LookupInheritedAttributeNode callAttrGetterNode ,
128
+ @ Shared ( "callCall" ) @ Cached CallVarargsMethodNode callCallNode ) {
129
129
Object call = callAttrGetterNode .execute (callableObject );
130
130
return callCall (frame , callableObject , arguments , keywords , raise , callCallNode , call );
131
131
}
132
132
133
133
@ Specialization (guards = "isPythonClass(callableObject)" , replaces = "doType" )
134
134
protected Object doPythonClass (VirtualFrame frame , Object callableObject , Object [] arguments , PKeyword [] keywords ,
135
- @ Cached PRaiseNode raise ,
136
- @ Cached ("create(__CALL__)" ) LookupInheritedAttributeNode callAttrGetterNode ,
137
- @ Cached CallVarargsMethodNode callCallNode ) {
135
+ @ Shared ( "raise" ) @ Cached PRaiseNode raise ,
136
+ @ Shared ( "lookupCall" ) @ Cached ("create(__CALL__)" ) LookupInheritedAttributeNode callAttrGetterNode ,
137
+ @ Shared ( "callCall" ) @ Cached CallVarargsMethodNode callCallNode ) {
138
138
Object call = callAttrGetterNode .execute (callableObject );
139
139
return callCall (frame , callableObject , arguments , keywords , raise , callCallNode , call );
140
140
}
0 commit comments