Skip to content

Commit fec0c36

Browse files
author
Adam Hrbac
committed
Fix incorrect merge
1 parent 5071f32 commit fec0c36

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,12 @@ private Object bytecodeLoop(VirtualFrame virtualFrame, Frame localFrame, Bytecod
10721072
Object[] arguments = virtualFrame.getArguments();
10731073
Object globals = PArguments.getGlobals(arguments);
10741074
Object locals = PArguments.getSpecialArgument(arguments);
1075+
1076+
boolean isGeneratorOrCoroutine = co.isGeneratorOrCoroutine();
1077+
if (inCompiledCode && !isGeneratorOrCoroutine) {
1078+
unboxVariables(localFrame);
1079+
}
1080+
10751081
final PythonLanguage language;
10761082
if (cachedLanguage == null) {
10771083
CompilerDirectives.transferToInterpreterAndInvalidate();
@@ -2162,7 +2168,7 @@ private Object bytecodeLoop(VirtualFrame virtualFrame, Frame localFrame, Bytecod
21622168
}
21632169
}
21642170

2165-
int targetIndex = findHandler(bci);
2171+
int targetIndex = findHandler(beginBci);
21662172
CompilerAsserts.partialEvaluationConstant(targetIndex);
21672173
if (pe != null) {
21682174
if (mutableData.localException != null) {

0 commit comments

Comments
 (0)