Skip to content

Commit 5d5b9e7

Browse files
timfelmsimacek
authored andcommitted
address code clarity review comments
1 parent 97e3670 commit 5d5b9e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,7 @@ private void copyArgs(Object[] args, Frame localFrame) {
922922
continue;
923923
}
924924
}
925+
CompilerDirectives.transferToInterpreterAndInvalidate();
925926
generalizeVariableStores(i);
926927
variableTypes[i] = QuickeningTypes.OBJECT;
927928
localFrame.setObject(i, arg);
@@ -2095,7 +2096,7 @@ private Object bytecodeLoop(VirtualFrame virtualFrame, Frame localFrame, Bytecod
20952096
continue;
20962097
}
20972098
default:
2098-
throw raiseUnkownBytecodeError(bc);
2099+
throw raiseUnknownBytecodeError(bc);
20992100
}
21002101
// prepare next loop
21012102
oparg = 0;
@@ -2715,7 +2716,7 @@ private void chainPythonExceptions(VirtualFrame virtualFrame, MutableLoopData mu
27152716
}
27162717
}
27172718

2718-
private PException raiseUnkownBytecodeError(final byte bc) {
2719+
private PException raiseUnknownBytecodeError(final byte bc) {
27192720
CompilerDirectives.transferToInterpreterAndInvalidate();
27202721
throw PRaiseNode.raiseUncached(this, SystemError, toTruffleStringUncached("not implemented bytecode %s"), OpCodes.fromOpCode(bc));
27212722
}

0 commit comments

Comments
 (0)