ladybird/Tests/LibJS/Bytecode/expected/computed-member-compound-assign.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

50 lines
1.6 KiB
Text

$7fc74e7b computed-member-compound-assign.js:15:1
Registers: 9
Blocks: 1
Constants:
[0] = Undefined
[1] = String("x")
[2] = Int32(1)
block0:
[ 0] GetGlobal dst:reg6, `compound_computed`
[ 18] NewObject dst:reg7
[ 28] Call dst:reg5, callee:reg6, this_value:Undefined, compound_computed, arguments:[reg7, String("x")]
[ 50] GetGlobal dst:reg7, `compound_then_assign`
[ 68] NewObject dst:reg8
[ 78] InitObjectLiteralProperty object:reg8, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
[ 90] CacheObjectShape object:reg8
[ a0] Call dst:reg6, callee:reg7, this_value:Undefined, compound_then_assign, arguments:[reg8, String("x")]
[ c8] End value:reg6
compound_computed$811bdddb computed-member-compound-assign.js:7:14
Registers: 8
Blocks: 1
Constants:
[0] = Int32(1)
[1] = Undefined
block0:
[ 0] GetByValue dst:reg5, base:arg0, property:arg1 (obj[arg1])
[ 18] Mov dst:reg6, src:arg1
[ 28] Add dst:reg7, lhs:reg5, rhs:Int32(1)
[ 38] PutByValue base:arg0, property:reg6, src:reg7, kind:Normal
[ 50] End value:Undefined
compound_then_assign$aead8c3c computed-member-compound-assign.js:11:13
Registers: 8
Blocks: 1
Constants:
[0] = Int32(0)
[1] = Undefined
block0:
[ 0] GetByValue dst:reg5, base:arg0, property:arg1 (imag[arg1])
[ 18] Mov dst:reg6, src:arg1
[ 28] Add dst:reg7, lhs:reg5, rhs:Int32(0)
[ 38] PutByValue base:arg0, property:reg6, src:reg7, kind:Normal
[ 50] Mov2 dst1:reg7, src1:arg0, dst2:reg5, src2:arg1
[ 68] PutByValue base:reg7, property:reg5, src:arg1, kind:Normal (imag[reg5])
[ 80] End value:Undefined