Skip to content

Commit 8adcc68

Browse files
cosminbascatomasstupka
authored andcommitted
SetupWithNode: do not bind descriptors (are bound elsewhere)
1 parent af15b02 commit 8adcc68

File tree

1 file changed

+0
-5
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode

1 file changed

+0
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode/SetupWithNode.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import com.oracle.graal.python.nodes.PRaiseNode;
5151
import com.oracle.graal.python.nodes.call.special.CallUnaryMethodNode;
5252
import com.oracle.graal.python.nodes.call.special.LookupSpecialMethodSlotNode;
53-
import com.oracle.graal.python.nodes.call.special.MaybeBindDescriptorNode;
5453
import com.oracle.graal.python.nodes.object.GetClassNode;
5554
import com.oracle.truffle.api.dsl.Cached;
5655
import com.oracle.truffle.api.dsl.GenerateUncached;
@@ -69,8 +68,6 @@ static int setup(Frame virtualFrame, int stackTopIn, Frame localFrame,
6968
@Cached GetClassNode getClassNode,
7069
@Cached(parameters = "Enter") LookupSpecialMethodSlotNode lookupEnter,
7170
@Cached(parameters = "Exit") LookupSpecialMethodSlotNode lookupExit,
72-
@Cached MaybeBindDescriptorNode bindEnter,
73-
@Cached MaybeBindDescriptorNode bindExit,
7471
@Cached CallUnaryMethodNode callEnter,
7572
@Cached BranchProfile errorProfile,
7673
@Cached PRaiseNode raiseNode) {
@@ -82,13 +79,11 @@ static int setup(Frame virtualFrame, int stackTopIn, Frame localFrame,
8279
errorProfile.enter();
8380
throw raiseNode.raise(AttributeError, new Object[]{__ENTER__});
8481
}
85-
enter = bindEnter.execute(virtualFrame, enter, contextManager, type);
8682
Object exit = lookupExit.execute(virtualFrame, type, contextManager);
8783
if (exit == PNone.NO_VALUE) {
8884
errorProfile.enter();
8985
throw raiseNode.raise(AttributeError, new Object[]{__EXIT__});
9086
}
91-
exit = bindExit.execute(virtualFrame, exit, contextManager, type);
9287
Object res = callEnter.executeObject(virtualFrame, enter, contextManager);
9388
localFrame.setObject(++stackTop, exit);
9489
localFrame.setObject(++stackTop, res);

0 commit comments

Comments
 (0)