ladybird/Tests/LibJS/Bytecode/expected/chained-member-call.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

70 lines
2 KiB
Text

$82bdc9cb chained-member-call.js:12:1
Registers: 10
Blocks: 7
Constants:
[0] = Undefined
[1] = Int32(0)
block0:
[ 0] GetLexicalEnvironment dst:reg4
[ 8] Jump target:block3
block1:
[ 10] Catch dst:reg5
[ 18] SetLexicalEnvironment environment:reg4
[ 20] Mov2 dst1:reg6, src1:Undefined, dst2:reg7, src2:reg6
block2:
[ 38] Jump target:block6
block3:
[ 40] Mov dst:reg5, src:Undefined
[ 50] GetGlobal dst:reg8, `chained_computed_call`
[ 68] Call dst:reg6, callee:reg8, this_value:Undefined, chained_computed_call, arguments:[Int32(0), Int32(0), Int32(0)]
[ 98] Mov2 dst1:reg5, src1:reg6, dst2:reg6, src2:reg5
[ b0] Jump target:block2
block4:
[ b8] Catch dst:reg5
[ c0] SetLexicalEnvironment environment:reg4
[ c8] Mov2 dst1:reg7, src1:Undefined, dst2:reg8, src2:reg7
block5:
[ e0] End value:reg7
block6:
[ e8] Mov dst:reg5, src:Undefined
[ f8] GetGlobal dst:reg9, `chained_dot_call`
[ 110] Call dst:reg7, callee:reg9, this_value:Undefined, chained_dot_call, arguments:[Int32(0)]
[ 138] Mov2 dst1:reg5, src1:reg7, dst2:reg7, src2:reg5
[ 150] End value:reg7
Exception handlers:
[ 40 .. b8] => handler block1
[ e8 .. 158] => handler block4
chained_computed_call$78bf026a chained-member-call.js:5:5
Registers: 8
Blocks: 1
block0:
[ 0] Mov dst:reg6, src:arg0
[ 10] GetByValue dst:reg7, base:reg6, property:arg1 (a[arg1])
[ 28] GetByValue dst:reg6, base:reg7, property:arg2 (a[j][arg2])
[ 40] GetById dst:reg7, base:reg6, `foo` (a[j][k].foo)
[ 60] Call dst:reg5, callee:reg7, this_value:reg6, a[j][k].foo
[ 80] Return value:reg5
chained_dot_call$4ef00940 chained-member-call.js:9:5
Registers: 8
Blocks: 1
block0:
[ 0] Mov dst:reg6, src:arg0
[ 10] GetById dst:reg7, base:reg6, `b` (a.b)
[ 30] GetById dst:reg6, base:reg7, `c` (a.b.c)
[ 50] GetById dst:reg7, base:reg6, `bar` (a.b.c.bar)
[ 70] Call dst:reg5, callee:reg7, this_value:reg6, a.b.c.bar
[ 90] Return value:reg5