1
1
package trufflesom .compiler ;
2
2
3
- import static com .oracle .truffle .api .CompilerDirectives .transferToInterpreterAndInvalidate ;
4
3
import static trufflesom .compiler .bc .BytecodeGenerator .emitPOPARGUMENT ;
5
4
import static trufflesom .compiler .bc .BytecodeGenerator .emitPOPLOCAL ;
6
5
import static trufflesom .compiler .bc .BytecodeGenerator .emitPUSHARGUMENT ;
@@ -116,8 +115,6 @@ public Local splitToMergeIntoOuterScope(final int newSlotIndex) {
116
115
117
116
@ Override
118
117
public ExpressionNode getReadNode (final int contextLevel , final long coordinate ) {
119
- transferToInterpreterAndInvalidate ();
120
-
121
118
if (contextLevel == 0 ) {
122
119
return new LocalArgumentReadNode (this ).initialize (coordinate );
123
120
} else {
@@ -128,8 +125,6 @@ public ExpressionNode getReadNode(final int contextLevel, final long coordinate)
128
125
@ Override
129
126
public ExpressionNode getWriteNode (final int contextLevel ,
130
127
final ExpressionNode valueExpr , final long coordinate ) {
131
- transferToInterpreterAndInvalidate ();
132
-
133
128
if (contextLevel == 0 ) {
134
129
return new LocalArgumentWriteNode (this , valueExpr ).initialize (coordinate );
135
130
} else {
@@ -172,7 +167,6 @@ public void init(final FrameDescriptor desc) {
172
167
173
168
@ Override
174
169
public ExpressionNode getReadNode (final int contextLevel , final long coordinate ) {
175
- transferToInterpreterAndInvalidate ();
176
170
if (contextLevel > 0 ) {
177
171
return NonLocalVariableReadNodeGen .create (contextLevel , this ).initialize (coordinate );
178
172
}
@@ -196,7 +190,6 @@ public Local splitToMergeIntoOuterScope(final int newSlotIndex) {
196
190
@ Override
197
191
public ExpressionNode getWriteNode (final int contextLevel ,
198
192
final ExpressionNode valueExpr , final long coordinate ) {
199
- transferToInterpreterAndInvalidate ();
200
193
if (contextLevel > 0 ) {
201
194
return NonLocalVariableWriteNodeGen .create (contextLevel , this , valueExpr )
202
195
.initialize (coordinate );
0 commit comments