Fixed: label copies should be added to all labels

This commit is contained in:
Svetlana Isakova
2014-09-05 15:45:37 +04:00
parent 976d5ab030
commit f5feb3bf33
6 changed files with 31 additions and 6 deletions
@@ -23,6 +23,7 @@ L4 [start finally]:
L5 [finish finally]:
2 jmp(error) NEXT:[<ERROR>]
L3 [skipFinallyToErrorBlock]:
L6 [copy of L2, onExceptionToFinallyBlock]:
3 mark({ test() }) PREV:[jmp(L3)]
mark(test())
call(test(), test) -> <v0>
@@ -33,4 +34,4 @@ error:
<ERROR> PREV:[jmp(error)]
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
=====================
@@ -24,6 +24,7 @@ L4 [start finally]:
L5 [finish finally]:
- 2 jmp(error) NEXT:[<ERROR>] PREV:[]
L3 [skipFinallyToErrorBlock]:
L6 [copy of L2, onExceptionToFinallyBlock]:
3 mark({ return test() }) PREV:[jmp(L3)]
mark(test())
call(test(), test) -> <v0>
@@ -35,4 +36,4 @@ error:
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
=====================
@@ -37,6 +37,7 @@ L6 [start finally]:
L7 [finish finally]:
2 jmp(error) NEXT:[<ERROR>]
L5 [skipFinallyToErrorBlock]:
L8 [copy of L3, onExceptionToFinallyBlock]:
3 mark({ test() }) PREV:[jmp(L5)]
mark(test())
call(test(), test) -> <v3>
@@ -47,4 +48,4 @@ error:
<ERROR> PREV:[jmp(error)]
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
=====================