ladybird/Tests/LibJS/Bytecode/expected/nested-for-loop-completion.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

45 lines
1 KiB
Text

$700813fb nested-for-loop-completion.js:4:1
Registers: 9
Blocks: 8
Constants:
[0] = Int32(4)
[1] = Undefined
[2] = Int32(7)
[3] = Int32(1)
[4] = Int32(0)
[5] = Int32(2)
block0:
[ 0] SetGlobal `n`, src:Int32(4)
[ 18] Mov dst:reg5, src:Undefined
[ 28] Jump target:block3
block1:
[ 30] SetGlobal `depth`, src:Int32(0)
[ 48] Mov dst:reg6, src:Undefined
[ 58] Jump target:block6
block2:
[ 60] GetGlobal dst:reg7, `n`
[ 78] Add dst:reg6, lhs:reg7, rhs:Int32(1)
[ 88] SetGlobal `n`, src:reg6
block3:
[ a0] GetGlobal dst:reg6, `n`
[ b8] JumpLessThanEquals lhs:reg6, rhs:Int32(7), true_target:block1, false_target:block4
block4:
[ d0] End value:reg5
block5:
[ d8] GetGlobal dst:reg8, `depth`
[ f0] Add dst:reg7, lhs:reg8, rhs:Int32(2)
[ 100] SetGlobal `depth`, src:reg7
block6:
[ 118] GetGlobal dst:reg7, `depth`
[ 130] JumpLessThanEquals lhs:reg7, rhs:Int32(0), true_target:block5, false_target:block7
block7:
[ 148] Mov dst:reg5, src:reg6
[ 158] Jump target:block2