ladybird/Tests/LibJS/Bytecode/expected/computed-string-object-literal.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

57 lines
1.6 KiB
Text

$f8dd73d3 computed-string-object-literal.js:15:1
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
[1] = String("x")
block0:
[ 0] GetGlobal dst:reg6, `simple_computed`
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, simple_computed
[ 38] GetGlobal dst:reg7, `mixed`
[ 50] Call dst:reg6, callee:reg7, this_value:Undefined, mixed
[ 70] GetGlobal dst:reg7, `dynamic`
[ 88] Call dst:reg5, callee:reg7, this_value:Undefined, dynamic, arguments:[String("x")]
[ b0] End value:reg5
simple_computed$ee1d99de computed-string-object-literal.js:6:5
Registers: 6
Blocks: 1
Constants:
[0] = Int32(1)
block0:
[ 0] NewObject dst:reg5
[ 10] InitObjectLiteralProperty object:reg5, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
[ 28] CacheObjectShape object:reg5
[ 38] Return value:reg5
mixed$9f3e333c computed-string-object-literal.js:9:5
Registers: 6
Blocks: 1
Constants:
[0] = Int32(1)
[1] = Int32(2)
block0:
[ 0] NewObject dst:reg5
[ 10] InitObjectLiteralProperty object:reg5, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
[ 28] InitObjectLiteralProperty object:reg5, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
[ 40] CacheObjectShape object:reg5
[ 50] Return value:reg5
dynamic$fd0d2731 computed-string-object-literal.js:12:5
Registers: 7
Blocks: 1
Constants:
[0] = Int32(1)
block0:
[ 0] NewObject dst:reg5
[ 10] Mov dst:reg6, src:arg0
[ 20] ToPrimitiveWithStringHint dst:reg6, value:reg6
[ 30] PutByValue base:reg5, property:reg6, src:Int32(1), kind:Own
[ 48] Return value:reg5