Updated tests for control flow: call instruction stores call element
instead of callee expression
This commit is contained in:
@@ -17,7 +17,7 @@ L0:
|
||||
jmp?(L3 [onExceptionToFinallyBlock]) NEXT:[mark({ test() }), mark({ test() })]
|
||||
3 mark({ test() })
|
||||
mark(test())
|
||||
call(test, test) -> <v0>
|
||||
call(test(), test) -> <v0>
|
||||
2 jmp(L4 [afterCatches]) NEXT:[jmp(L5 [skipFinallyToErrorBlock])]
|
||||
L2 [onException]:
|
||||
3 v(any : Exception) PREV:[jmp?(L2 [onException])]
|
||||
@@ -25,7 +25,7 @@ L2 [onException]:
|
||||
w(any|<v1>)
|
||||
4 mark({ test() })
|
||||
mark(test())
|
||||
call(test, test) -> <v2>
|
||||
call(test(), test) -> <v2>
|
||||
3 jmp(L4 [afterCatches])
|
||||
L4 [afterCatches]:
|
||||
2 jmp(L5 [skipFinallyToErrorBlock]) NEXT:[mark({ test() })] PREV:[jmp(L4 [afterCatches]), jmp(L4 [afterCatches])]
|
||||
@@ -33,13 +33,13 @@ L3 [onExceptionToFinallyBlock]:
|
||||
L6 [start finally]:
|
||||
3 mark({ test() }) PREV:[jmp?(L3 [onExceptionToFinallyBlock])]
|
||||
mark(test())
|
||||
call(test, test) -> <v3>
|
||||
call(test(), test) -> <v3>
|
||||
L7 [finish finally]:
|
||||
2 jmp(error) NEXT:[<ERROR>]
|
||||
L5 [skipFinallyToErrorBlock]:
|
||||
3 mark({ test() }) PREV:[jmp(L5 [skipFinallyToErrorBlock])]
|
||||
mark(test())
|
||||
call(test, test) -> <v3>
|
||||
call(test(), test) -> <v3>
|
||||
2 merge(try { test() } catch (any : Exception) { test() } finally { test() }|<v0>, <v2>) -> <v4>
|
||||
L1:
|
||||
1 <END> NEXT:[<SINK>]
|
||||
|
||||
Reference in New Issue
Block a user