ladybird/Tests/LibJS/Bytecode/expected/computed-string-to-ById.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
1.8 KiB
Text

$dc43d5b2 computed-string-to-ById.js:17:1
Registers: 9
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] GetGlobal dst:reg6, `get_string_prop`
[ 18] NewObject dst:reg7
[ 28] Call dst:reg5, callee:reg6, this_value:Undefined, get_string_prop, arguments:[reg7]
[ 50] GetGlobal dst:reg7, `set_string_prop`
[ 68] NewObject dst:reg8
[ 78] Call dst:reg6, callee:reg7, this_value:Undefined, set_string_prop, arguments:[reg8]
[ a0] GetGlobal dst:reg7, `get_index_prop`
[ b8] NewArray dst:reg8
[ c8] Call dst:reg5, callee:reg7, this_value:Undefined, get_index_prop, arguments:[reg8]
[ f0] GetGlobal dst:reg7, `get_length_prop`
[ 108] NewArray dst:reg8
[ 118] Call dst:reg6, callee:reg7, this_value:Undefined, get_length_prop, arguments:[reg8]
[ 140] End value:reg6
get_string_prop$d6b42da3 computed-string-to-ById.js:5:5
Registers: 7
Blocks: 1
Constants:
[0] = String("hello")
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] GetById dst:reg6, base:reg5, `hello` (o.hello)
[ 30] Return value:reg6
set_string_prop$592a21c7 computed-string-to-ById.js:8:16
Registers: 6
Blocks: 1
Constants:
[0] = String("hello")
[1] = Int32(42)
[2] = Undefined
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] PutById base:reg5, `hello`, src:Int32(42), kind:Normal (o.hello)
[ 38] End value:Undefined
get_index_prop$a54df54e computed-string-to-ById.js:11:5
Registers: 7
Blocks: 1
Constants:
[0] = String("0")
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] GetByValue dst:reg6, base:reg5, property:String("0") (o[String("0")])
[ 28] Return value:reg6
get_length_prop$813e14f1 computed-string-to-ById.js:14:5
Registers: 7
Blocks: 1
Constants:
[0] = String("length")
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] GetLength dst:reg6, base:reg5 (o.length)
[ 28] Return value:reg6