Skip to content

Commit 4dc49df

Browse files
committed
share more nodes
1 parent ac258bf commit 4dc49df

File tree

1 file changed

+6
-6
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/call

1 file changed

+6
-6
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/call/CallNode.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,18 @@ protected Object builtinFunctionCall(VirtualFrame frame, PBuiltinFunction callab
123123

124124
@Specialization
125125
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) {
129129
Object call = callAttrGetterNode.execute(callableObject);
130130
return callCall(frame, callableObject, arguments, keywords, raise, callCallNode, call);
131131
}
132132

133133
@Specialization(guards = "isPythonClass(callableObject)", replaces = "doType")
134134
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) {
138138
Object call = callAttrGetterNode.execute(callableObject);
139139
return callCall(frame, callableObject, arguments, keywords, raise, callCallNode, call);
140140
}

0 commit comments

Comments
 (0)