ladybird/Tests/LibJS/Bytecode/expected/for-in-block-order.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

41 lines
935 B
Text

$916dd419 for-in-block-order.js:5:1
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] GetGlobal dst:reg6, `foo`
[ 18] NewObject dst:reg7
[ 28] Call dst:reg5, callee:reg6, this_value:Undefined, foo, arguments:[reg7]
[ 50] End value:reg5
foo$3b347bf9 for-in-block-order.js:2:16
Registers: 8
Blocks: 6
Locals: k~0
Constants:
[0] = Undefined
block0:
[ 0] Mov dst:k~0, src:Undefined
[ 10] JumpNullish condition:arg0, true_target:block3, false_target:block4
block1:
[ 20] End value:Undefined
block2:
[ 28] ObjectPropertyIteratorNext dst_value:reg6, dst_done:reg7, iterator_object:reg5
[ 38] JumpIf condition:reg7, true_target:block1, false_target:block5
block3:
[ 48] Jump target:block1
block4:
[ 50] GetObjectPropertyIterator dst_iterator:reg5, object:arg0
[ 68] Jump target:block2
block5:
[ 70] Mov dst:k~0, src:reg6
[ 80] Jump target:block2