ladybird/Tests/LibJS/Bytecode/expected/generator-yield-finally.txt
Andreas Kling 21cbfb3cb1 LibJS: Drop source ranges from bytecode source maps
Store source map locations as bytecode offset, line, and column.
Runtime consumers only emit the start line and column, so source end
positions and source text offsets do not need to be carried through
Executable source maps, bytecode cache serialization, or the Rust FFI.

Keep SourceCode's internal position cache able to track source text
offsets so callers can still translate source offsets to line and
column pairs when needed. Hash dump-bytecode IDs from the name, first
source position, and bytecode size instead of source slices that need
end offsets.

Bump the bytecode cache format version for the slimmer serialized
source map entry shape.
2026-05-14 09:41:03 +02:00

110 lines
2.6 KiB
Text

$ba9d77cf generator-yield-finally.js:11:1
Registers: 7
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] GetGlobal dst:reg6, `f`
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, f
[ 38] End value:reg5
f$6b17ea44 generator-yield-finally.js:4:5
Registers: 13
Blocks: 24
Constants:
[0] = Undefined
[1] = Int32(1)
[2] = Int32(5)
[3] = Int32(2)
[4] = Int32(0)
[5] = Int32(3)
block0:
[ 0] GetLexicalEnvironment dst:reg4
[ 8] Yield continuation_label:block1, value:Undefined
block1:
[ 18] Jump target:block4
block2:
[ 20] Catch dst:reg6
[ 28] SetLexicalEnvironment environment:reg4
[ 30] Mov dst:reg5, src:Int32(1)
block3:
[ 40] Mov dst:reg10, src:reg1
[ 50] Yield continuation_label:block15, value:Int32(3)
block4:
[ 60] Yield continuation_label:block5, value:Int32(1)
block5:
[ 70] Mov dst:reg7, src:reg0
[ 80] GetCompletionFields type_dst:reg8, value_dst:reg9, completion:reg7
[ 90] JumpStrictlyEquals lhs:reg8, rhs:Int32(1), true_target:block6, false_target:block7
block6:
[ a8] Yield continuation_label:block10, value:Int32(2)
block7:
[ b8] JumpStrictlyEquals lhs:reg8, rhs:Int32(5), true_target:block8, false_target:block9
block8:
[ d0] Throw src:reg9
block9:
[ d8] Mov2 dst1:reg6, src1:reg9, dst2:reg5, src2:Int32(2)
[ f0] Jump target:block3
block10:
[ f8] Mov dst:reg9, src:reg0
[ 108] GetCompletionFields type_dst:reg7, value_dst:reg8, completion:reg9
[ 118] JumpStrictlyEquals lhs:reg7, rhs:Int32(1), true_target:block11, false_target:block12
block11:
[ 130] Mov dst:reg5, src:Int32(0)
[ 140] Jump target:block3
block12:
[ 148] JumpStrictlyEquals lhs:reg7, rhs:Int32(5), true_target:block13, false_target:block14
block13:
[ 160] Throw src:reg8
block14:
[ 168] Mov2 dst1:reg6, src1:reg8, dst2:reg5, src2:Int32(2)
[ 180] Jump target:block3
block15:
[ 188] Mov2 dst1:reg1, src1:reg10, dst2:reg8, src2:reg0
[ 1a0] GetCompletionFields type_dst:reg9, value_dst:reg7, completion:reg8
[ 1b0] JumpStrictlyEquals lhs:reg9, rhs:Int32(1), true_target:block16, false_target:block17
block16:
[ 1c8] JumpStrictlyEquals lhs:reg5, rhs:Int32(0), true_target:block20, false_target:block21
block17:
[ 1e0] JumpStrictlyEquals lhs:reg9, rhs:Int32(5), true_target:block18, false_target:block19
block18:
[ 1f8] Throw src:reg7
block19:
[ 200] Yield value:reg7
block20:
[ 210] Yield value:Undefined
block21:
[ 220] JumpStrictlyEquals lhs:reg5, rhs:Int32(2), true_target:block22, false_target:block23
block22:
[ 238] Yield value:reg6
block23:
[ 248] Throw src:reg6
Exception handlers:
[ 60 .. 188] => handler block2