Skip to content

Commit 7351fb5

Browse files
committed
Remove redundant transferToInterpreterAndInvalidate()
Should be ensured in the caller. Signed-off-by: Stefan Marr <[email protected]>
1 parent 9c1faed commit 7351fb5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/trufflesom/src/trufflesom/compiler/Variable.java

-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package trufflesom.compiler;
22

3-
import static com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate;
43
import static trufflesom.compiler.bc.BytecodeGenerator.emitPOPARGUMENT;
54
import static trufflesom.compiler.bc.BytecodeGenerator.emitPOPLOCAL;
65
import static trufflesom.compiler.bc.BytecodeGenerator.emitPUSHARGUMENT;
@@ -116,8 +115,6 @@ public Local splitToMergeIntoOuterScope(final int newSlotIndex) {
116115

117116
@Override
118117
public ExpressionNode getReadNode(final int contextLevel, final long coordinate) {
119-
transferToInterpreterAndInvalidate();
120-
121118
if (contextLevel == 0) {
122119
return new LocalArgumentReadNode(this).initialize(coordinate);
123120
} else {
@@ -128,8 +125,6 @@ public ExpressionNode getReadNode(final int contextLevel, final long coordinate)
128125
@Override
129126
public ExpressionNode getWriteNode(final int contextLevel,
130127
final ExpressionNode valueExpr, final long coordinate) {
131-
transferToInterpreterAndInvalidate();
132-
133128
if (contextLevel == 0) {
134129
return new LocalArgumentWriteNode(this, valueExpr).initialize(coordinate);
135130
} else {
@@ -172,7 +167,6 @@ public void init(final FrameDescriptor desc) {
172167

173168
@Override
174169
public ExpressionNode getReadNode(final int contextLevel, final long coordinate) {
175-
transferToInterpreterAndInvalidate();
176170
if (contextLevel > 0) {
177171
return NonLocalVariableReadNodeGen.create(contextLevel, this).initialize(coordinate);
178172
}
@@ -196,7 +190,6 @@ public Local splitToMergeIntoOuterScope(final int newSlotIndex) {
196190
@Override
197191
public ExpressionNode getWriteNode(final int contextLevel,
198192
final ExpressionNode valueExpr, final long coordinate) {
199-
transferToInterpreterAndInvalidate();
200193
if (contextLevel > 0) {
201194
return NonLocalVariableWriteNodeGen.create(contextLevel, this, valueExpr)
202195
.initialize(coordinate);

0 commit comments

Comments
 (0)