You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/compiler/bytecode_dsl/RootNodeCompiler.java
+21-21
Original file line number
Diff line number
Diff line change
@@ -4072,25 +4072,25 @@ public Void visit(StmtTy.Try node) {
4072
4072
* @formatter:off
4073
4073
* try {
4074
4074
* try_catch_else
4075
-
* } finally {
4076
-
* finally_body
4077
4075
* } catch uncaught_ex {
4078
4076
* save current exception
4079
4077
* set the current exception to uncaught_ex
4080
4078
* markCaught(uncaught_ex)
4081
4079
* try {
4082
4080
* finally_body
4083
-
* } finally {
4084
-
* restore current exception
4085
4081
* } catch handler_ex {
4086
4082
* restore current exception
4087
4083
* markCaught(handler_ex)
4088
4084
* reraise handler_ex
4085
+
* } otherwise {
4086
+
* restore current exception
4089
4087
* }
4090
4088
* reraise uncaught_ex
4089
+
* } otherwise {
4090
+
* finally_body
4091
4091
* }
4092
4092
*/
4093
-
b.beginTryFinallyCatch(() -> {
4093
+
b.beginTryCatchOtherwise(() -> {
4094
4094
b.beginBlock(); // finally
4095
4095
visitSequence(node.finalBody);
4096
4096
b.endBlock();
@@ -4107,7 +4107,7 @@ public Void visit(StmtTy.Try node) {
Copy file name to clipboardexpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode_dsl/PBytecodeDSLRootNode.java
0 commit comments