Pseudocode: don't write full label name when jump on it
This commit is contained in:
@@ -19,12 +19,12 @@ L0:
|
||||
mark("before")
|
||||
r("before") -> <v0>
|
||||
mark(try { foo() } catch (e: Exception) { val a = e } finally { val a = 1 })
|
||||
jmp?(L2 [onException])
|
||||
jmp?(L3 [onExceptionToFinallyBlock])
|
||||
jmp?(L2)
|
||||
jmp?(L3)
|
||||
3 mark({ foo() })
|
||||
mark(foo())
|
||||
call(foo(), foo) -> <v1>
|
||||
2 jmp(L4 [afterCatches]) USE: in: {} out: {}
|
||||
2 jmp(L4) USE: in: {} out: {}
|
||||
L2 [onException]:
|
||||
3 v(e: Exception) INIT: in: {} out: {e=D}
|
||||
magic[FAKE_INITIALIZER](e: Exception) -> <v2> INIT: in: {e=D} out: {e=D}
|
||||
@@ -33,9 +33,9 @@ L2 [onException]:
|
||||
v(val a = e) INIT: in: {e=ID} out: {a=D, e=ID} USE: in: {e=READ} out: {e=READ}
|
||||
r(e) -> <v3> INIT: in: {a=D, e=ID} out: {a=D, e=ID} USE: in: {} out: {e=READ}
|
||||
w(a|<v3>) INIT: in: {a=D, e=ID} out: {a=ID, e=ID}
|
||||
3 jmp(L4 [afterCatches]) INIT: in: {e=ID} out: {e=ID}
|
||||
3 jmp(L4) INIT: in: {e=ID} out: {e=ID}
|
||||
L4 [afterCatches]:
|
||||
2 jmp(L5 [skipFinallyToErrorBlock]) INIT: in: {} out: {}
|
||||
2 jmp(L5) INIT: in: {} out: {}
|
||||
L3 [onExceptionToFinallyBlock]:
|
||||
L6 [start finally]:
|
||||
3 mark({ val a = 1 })
|
||||
@@ -45,6 +45,7 @@ L6 [start finally]:
|
||||
L7 [finish finally]:
|
||||
2 jmp(error) INIT: in: {} out: {}
|
||||
L5 [skipFinallyToErrorBlock]:
|
||||
L8 [copy of L3, onExceptionToFinallyBlock]:
|
||||
3 mark({ val a = 1 })
|
||||
v(val a = 1) INIT: in: {} out: {a=D}
|
||||
r(1) -> <v4> INIT: in: {a=D} out: {a=D}
|
||||
@@ -58,4 +59,4 @@ error:
|
||||
<ERROR>
|
||||
sink:
|
||||
<SINK> USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
Reference in New Issue
Block a user