ladybird/Tests/LibJS/Bytecode/expected/for-try-finally-continue.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

82 lines
2 KiB
Text

$6ce1f287 for-try-finally-continue.js:1:1
Registers: 11
Blocks: 16
Locals: e~0
Constants:
[0] = Int32(0)
[1] = Undefined
[2] = Int32(5)
[3] = Int32(1)
[4] = Int32(3)
[5] = Int32(2)
[6] = String("bad")
block0:
[ 0] GetLexicalEnvironment dst:reg4
[ 8] SetGlobal `i`, src:Int32(0)
[ 20] Mov dst:reg5, src:Undefined
[ 30] Jump target:block3
block1:
[ 38] Jump target:block8
block2:
[ 40] GetGlobal dst:reg7, `i`
[ 58] PostfixIncrement dst:reg6, src:reg7
[ 68] SetGlobal `i`, src:reg7
block3:
[ 80] GetGlobal dst:reg6, `i`
[ 98] JumpLessThan lhs:reg6, rhs:Int32(5), true_target:block1, false_target:block4
block4:
[ b0] GetGlobal dst:reg10, `i`
[ c8] StrictlyInequals dst:reg8, lhs:reg10, rhs:Int32(5)
[ d8] Mov dst:reg10, src:Undefined
[ e8] JumpIf condition:reg8, true_target:block14, false_target:block15
block5:
[ f8] Catch dst:reg7
[ 100] SetLexicalEnvironment environment:reg4
[ 108] Mov dst:reg6, src:Int32(1)
block6:
[ 118] Mov dst:reg9, src:Undefined
[ 128] JumpStrictlyEquals lhs:reg6, rhs:Int32(0), true_target:block9, false_target:block10
block7:
[ 140] Catch dst:reg8
[ 148] SetLexicalEnvironment environment:reg4
[ 150] Mov3 dst1:e~0, src1:reg8, dst2:reg9, src2:Undefined, dst3:reg10, src3:reg9
[ 170] Mov dst:reg6, src:Int32(0)
[ 180] Jump target:block6
block8:
[ 188] Mov3 dst1:reg8, src1:Undefined, dst2:reg5, src2:reg8, dst3:reg6, src3:Int32(3)
[ 1a8] Jump target:block6
block9:
[ 1b0] Mov dst:reg5, src:reg10
[ 1c0] Jump target:block2
block10:
[ 1c8] JumpStrictlyEquals lhs:reg6, rhs:Int32(3), true_target:block2, false_target:block11
block11:
[ 1e0] JumpStrictlyEquals lhs:reg6, rhs:Int32(2), true_target:block12, false_target:block13
block12:
[ 1f8] Return value:reg7
block13:
[ 200] Throw src:reg7
block14:
[ 208] Throw src:String("bad")
block15:
[ 210] End value:reg10
Exception handlers:
[ 140 .. 188] => handler block5
[ 188 .. 1b0] => handler block7