ladybird/Tests/LibJS/Bytecode/expected/try-finally-continue.txt
Andreas Kling 029708b2cf Tests: Rebaseline bytecode tests after handler/finalizer collapse
The exception handler dump format changed from showing both handler
and finalizer offsets to showing only a single handler offset.
2026-02-09 16:35:39 +01:00

74 lines
No EOL
3.3 KiB
Text

JS bytecode executable ""
[ 0] 0: GetLexicalEnvironment dst:reg4
[ 8] GetGlobal dst:reg6, identifier:console
[ 18] GetById dst:reg7, base:reg6, property:log, base_identifier:console
[ 30] GetGlobal dst:reg9, identifier:continueThroughFinally
[ 40] Call dst:reg8, callee:reg9, this_value:Undefined, continueThroughFinally
[ 60] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg8]
[ 88] GetGlobal dst:reg6, identifier:console
[ 98] GetById dst:reg8, base:reg6, property:log, base_identifier:console
[ b0] GetGlobal dst:reg10, identifier:breakThroughFinally
[ c0] Call dst:reg9, callee:reg10, this_value:Undefined, breakThroughFinally
[ e0] Call dst:reg7, callee:reg8, this_value:reg6, console.log, arguments:[reg9]
[ 108] End value:reg7
JS bytecode executable "continueThroughFinally"
[ 0] 0: GetLexicalEnvironment dst:reg4
[ 8] Mov dst:result~1, src:Int32(0)
[ 18] Mov dst:i~0, src:Int32(0)
[ 28] Jump target:@48
[ 30] 1: Jump target:@b0
[ 38] 2: PostfixIncrement dst:reg5, src:i~0
[ 48] 3: JumpLessThan lhs:i~0, rhs:Int32(3), true_target:@30, false_target:@60
[ 60] 4: Return value:result~1
[ 68] 5: Catch dst:reg6
[ 70] SetLexicalEnvironment environment:reg4
[ 78] Mov dst:reg5, src:Int32(1)
[ 88] 6: Add dst:result~1, lhs:result~1, rhs:Int32(10)
[ 98] JumpStrictlyEquals lhs:reg5, rhs:Int32(0), true_target:@108, false_target:@110
[ b0] 7: JumpStrictlyEquals lhs:i~0, rhs:Int32(1), true_target:@c8, false_target:@e0
[ c8] 8: Mov dst:reg5, src:Int32(3)
[ d8] Jump target:@88
[ e0] 9: Add dst:result~1, lhs:result~1, rhs:i~0
[ f0] Mov dst:reg5, src:Int32(0)
[ 100] Jump target:@88
[ 108] 10: Jump target:@38
[ 110] 11: JumpStrictlyEquals lhs:reg5, rhs:Int32(3), true_target:@38, false_target:@128
[ 128] 12: JumpStrictlyEquals lhs:reg5, rhs:Int32(2), true_target:@140, false_target:@148
[ 140] 13: Return value:reg6
[ 148] 14: Throw src:reg6
Exception handlers:
from b0 to 108 handler 68
JS bytecode executable "breakThroughFinally"
[ 0] 0: GetLexicalEnvironment dst:reg4
[ 8] Mov dst:result~1, src:Int32(0)
[ 18] Mov dst:i~0, src:Int32(0)
[ 28] Jump target:@48
[ 30] 1: Jump target:@b0
[ 38] 2: PostfixIncrement dst:reg5, src:i~0
[ 48] 3: JumpLessThan lhs:i~0, rhs:Int32(10), true_target:@30, false_target:@60
[ 60] 4: Return value:result~1
[ 68] 5: Catch dst:reg6
[ 70] SetLexicalEnvironment environment:reg4
[ 78] Mov dst:reg5, src:Int32(1)
[ 88] 6: Add dst:result~1, lhs:result~1, rhs:Int32(100)
[ 98] JumpStrictlyEquals lhs:reg5, rhs:Int32(0), true_target:@108, false_target:@110
[ b0] 7: JumpStrictlyEquals lhs:i~0, rhs:Int32(2), true_target:@c8, false_target:@e0
[ c8] 8: Mov dst:reg5, src:Int32(3)
[ d8] Jump target:@88
[ e0] 9: Add dst:result~1, lhs:result~1, rhs:i~0
[ f0] Mov dst:reg5, src:Int32(0)
[ 100] Jump target:@88
[ 108] 10: Jump target:@38
[ 110] 11: JumpStrictlyEquals lhs:reg5, rhs:Int32(3), true_target:@60, false_target:@128
[ 128] 12: JumpStrictlyEquals lhs:reg5, rhs:Int32(2), true_target:@140, false_target:@148
[ 140] 13: Return value:reg6
[ 148] 14: Throw src:reg6
Exception handlers:
from b0 to 108 handler 68
32
301