Skip to content

Commit 1b1e8e7

Browse files
committed
CallVarargsMethodNode uses PythonLanguage#isSingleContext
1 parent 97544c4 commit 1b1e8e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/call/special/CallVarargsMethodNode.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ public static CallVarargsMethodNode getUncached() {
7272
return CallVarargsMethodNodeGen.getUncached();
7373
}
7474

75-
@Specialization(guards = {"func == cachedFunc", "builtinNode != null", "frame != null || unusedFrame"}, //
75+
@Specialization(guards = {"isSingleContext()", "func == cachedFunc", "builtinNode != null", "frame != null || unusedFrame"}, //
7676
limit = "getCallSiteInlineCacheMaxDepth()", //
77-
rewriteOn = VarargsBuiltinDirectInvocationNotSupported.class, //
78-
assumptions = "singleContextAssumption()")
77+
rewriteOn = VarargsBuiltinDirectInvocationNotSupported.class)
7978
Object callVarargsDirect(VirtualFrame frame, @SuppressWarnings("unused") PBuiltinFunction func, Object[] arguments, PKeyword[] keywords,
8079
@Cached("func") @SuppressWarnings("unused") PBuiltinFunction cachedFunc,
8180
@Cached("getVarargs(frame, func)") PythonVarargsBuiltinNode builtinNode,
@@ -92,8 +91,8 @@ Object callVarargs(VirtualFrame frame, @SuppressWarnings("unused") PBuiltinFunct
9291
return builtinNode.varArgExecute(frame, PNone.NO_VALUE, arguments, keywords);
9392
}
9493

95-
@Specialization(guards = {"func == cachedFunc", "builtinNode != null", "takesSelfArg",
96-
"frame != null || unusedFrame"}, limit = "getCallSiteInlineCacheMaxDepth()", assumptions = "singleContextAssumption()")
94+
@Specialization(guards = {"isSingleContext()", "func == cachedFunc", "builtinNode != null", "takesSelfArg",
95+
"frame != null || unusedFrame"}, limit = "getCallSiteInlineCacheMaxDepth()")
9796
Object callSelfMethodSingleContext(VirtualFrame frame, @SuppressWarnings("unused") PBuiltinMethod func, Object[] arguments, PKeyword[] keywords,
9897
@SuppressWarnings("unused") @Cached("func") PBuiltinMethod cachedFunc,
9998
@SuppressWarnings("unused") @Cached("takesSelfArg(func)") boolean takesSelfArg,
@@ -102,7 +101,8 @@ Object callSelfMethodSingleContext(VirtualFrame frame, @SuppressWarnings("unused
102101
return builtinNode.varArgExecute(frame, func.getSelf(), arguments, keywords);
103102
}
104103

105-
@Specialization(guards = {"builtinNode != null", "getCallTarget(func, getCt) == ct", "takesSelfArg", "frame != null || unusedFrame"}, limit = "getCallSiteInlineCacheMaxDepth()")
104+
@Specialization(guards = {"builtinNode != null", "getCallTarget(func, getCt) == ct", "takesSelfArg", "frame != null || unusedFrame"}, //
105+
limit = "getCallSiteInlineCacheMaxDepth()")
106106
Object callSelfMethod(VirtualFrame frame, @SuppressWarnings("unused") PBuiltinMethod func, Object[] arguments, PKeyword[] keywords,
107107
@SuppressWarnings("unused") @Cached GetCallTargetNode getCt,
108108
@SuppressWarnings("unused") @Cached("getCallTarget(func, getCt)") RootCallTarget ct,

0 commit comments

Comments
 (0)