50
50
import com .oracle .graal .python .nodes .PRaiseNode ;
51
51
import com .oracle .graal .python .nodes .call .special .CallUnaryMethodNode ;
52
52
import com .oracle .graal .python .nodes .call .special .LookupSpecialMethodSlotNode ;
53
- import com .oracle .graal .python .nodes .call .special .MaybeBindDescriptorNode ;
54
53
import com .oracle .graal .python .nodes .object .GetClassNode ;
55
54
import com .oracle .truffle .api .dsl .Cached ;
56
55
import com .oracle .truffle .api .dsl .GenerateUncached ;
@@ -69,8 +68,6 @@ static int setup(Frame virtualFrame, int stackTopIn, Frame localFrame,
69
68
@ Cached GetClassNode getClassNode ,
70
69
@ Cached (parameters = "Enter" ) LookupSpecialMethodSlotNode lookupEnter ,
71
70
@ Cached (parameters = "Exit" ) LookupSpecialMethodSlotNode lookupExit ,
72
- @ Cached MaybeBindDescriptorNode bindEnter ,
73
- @ Cached MaybeBindDescriptorNode bindExit ,
74
71
@ Cached CallUnaryMethodNode callEnter ,
75
72
@ Cached BranchProfile errorProfile ,
76
73
@ Cached PRaiseNode raiseNode ) {
@@ -82,13 +79,11 @@ static int setup(Frame virtualFrame, int stackTopIn, Frame localFrame,
82
79
errorProfile .enter ();
83
80
throw raiseNode .raise (AttributeError , new Object []{__ENTER__ });
84
81
}
85
- enter = bindEnter .execute (virtualFrame , enter , contextManager , type );
86
82
Object exit = lookupExit .execute (virtualFrame , type , contextManager );
87
83
if (exit == PNone .NO_VALUE ) {
88
84
errorProfile .enter ();
89
85
throw raiseNode .raise (AttributeError , new Object []{__EXIT__ });
90
86
}
91
- exit = bindExit .execute (virtualFrame , exit , contextManager , type );
92
87
Object res = callEnter .executeObject (virtualFrame , enter , contextManager );
93
88
localFrame .setObject (++stackTop , exit );
94
89
localFrame .setObject (++stackTop , res );
0 commit comments