Skip to content

Commit

Permalink
Remove redundant transferToInterpreterAndInvalidate()
Browse files Browse the repository at this point in the history
Should be ensured in the caller.

Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Dec 3, 2023
1 parent 9c1faed commit 7351fb5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/trufflesom/src/trufflesom/compiler/Variable.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package trufflesom.compiler;

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

@Override
public ExpressionNode getReadNode(final int contextLevel, final long coordinate) {
transferToInterpreterAndInvalidate();

if (contextLevel == 0) {
return new LocalArgumentReadNode(this).initialize(coordinate);
} else {
Expand All @@ -128,8 +125,6 @@ public ExpressionNode getReadNode(final int contextLevel, final long coordinate)
@Override
public ExpressionNode getWriteNode(final int contextLevel,
final ExpressionNode valueExpr, final long coordinate) {
transferToInterpreterAndInvalidate();

if (contextLevel == 0) {
return new LocalArgumentWriteNode(this, valueExpr).initialize(coordinate);
} else {
Expand Down Expand Up @@ -172,7 +167,6 @@ public void init(final FrameDescriptor desc) {

@Override
public ExpressionNode getReadNode(final int contextLevel, final long coordinate) {
transferToInterpreterAndInvalidate();
if (contextLevel > 0) {
return NonLocalVariableReadNodeGen.create(contextLevel, this).initialize(coordinate);
}
Expand All @@ -196,7 +190,6 @@ public Local splitToMergeIntoOuterScope(final int newSlotIndex) {
@Override
public ExpressionNode getWriteNode(final int contextLevel,
final ExpressionNode valueExpr, final long coordinate) {
transferToInterpreterAndInvalidate();
if (contextLevel > 0) {
return NonLocalVariableWriteNodeGen.create(contextLevel, this, valueExpr)
.initialize(coordinate);
Expand Down

0 comments on commit 7351fb5

Please sign in to comment.