ladybird/Tests/LibJS/Bytecode/expected/block-scoped-function-no-tdz.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

40 lines
1,004 B
Text

$d36729be block-scoped-function-no-tdz.js:10:1
Registers: 7
Blocks: 1
Constants:
[0] = String("use strict")
[1] = Undefined
block0:
[ 0] GetGlobal dst:reg6, `test`
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, test
[ 38] End value:reg5
test$65d0907d block-scoped-function-no-tdz.js:3:5
Registers: 7
Blocks: 1
Locals: foo~0, result~1
Constants:
[0] = Undefined
block0:
[ 0] GetLexicalEnvironment dst:reg4
[ 8] Mov dst:result~1, src:Undefined
[ 18] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
[ 28] NewFunction dst:reg6, shared_function_data_index:0
[ 40] Mov dst:foo~0, src:reg6
[ 50] Call dst:reg6, callee:foo~0, this_value:Undefined, foo
[ 70] Mov dst:result~1, src:reg6
[ 80] SetLexicalEnvironment environment:reg4
[ 88] Return value:result~1
foo$f46a9b04 block-scoped-function-no-tdz.js:5:26
Registers: 5
Blocks: 1
Constants:
[0] = Int32(42)
block0:
[ 0] Return value:Int32(42)