ladybird/Tests/LibJS/Bytecode/expected/async-await.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

51 lines
1.3 KiB
Text

$fd650eed async-await.js:9:1
Registers: 7
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] GetGlobal dst:reg6, `f`
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, f
[ 38] End value:reg5
f$efa3ed5e async-await.js:7:5
Registers: 10
Blocks: 8
Constants:
[0] = Undefined
[1] = Int32(42)
[2] = Int32(1)
block0:
[ 0] Yield continuation_label:block1, value:Undefined
block1:
[ 10] GetGlobal dst:reg6, `Promise`
[ 28] GetById dst:reg7, base:reg6, `resolve` (Promise.resolve)
[ 48] Call dst:reg5, callee:reg7, this_value:reg6, Promise.resolve, arguments:[Int32(42)]
[ 70] Mov dst:reg7, src:reg0
[ 80] Await continuation_label:block2, argument:reg5
block2:
[ 90] Mov dst:reg7, src:reg0
[ a0] GetCompletionFields type_dst:reg6, value_dst:reg8, completion:reg7
[ b0] JumpStrictlyEquals lhs:reg6, rhs:Int32(1), true_target:block3, false_target:block4
block3:
[ c8] Await continuation_label:block5, argument:reg8
block4:
[ d8] Throw src:reg8
block5:
[ e0] Mov dst:reg5, src:reg0
[ f0] GetCompletionFields type_dst:reg7, value_dst:reg6, completion:reg5
[ 100] JumpStrictlyEquals lhs:reg7, rhs:Int32(1), true_target:block6, false_target:block7
block6:
[ 118] Yield value:reg6
block7:
[ 128] Throw src:reg6