ladybird/Tests/LibJS/Bytecode/expected/parameter-createvariable-order.txt
Andreas Kling 1ce4242b4b LibJS: Store bytecode cache indexes instead of pointers
Store compact cache indexes in bytecode instructions instead of raw
pointers to the executable cache vectors. This keeps the instruction
stream independent from heap addresses and removes pointer fixups when
materializing cached bytecode.

Resolve the mutable cache pointers at execution time from the current
Executable. Bytecode test expectations are updated for the smaller cache
operands and resulting instruction offsets.
2026-05-18 20:35:14 +02:00

47 lines
1.4 KiB
Text

$516a2e0b parameter-createvariable-order.js:7:1
Registers: 7
Blocks: 1
Constants:
[0] = Undefined
[1] = Int32(1)
[2] = Int32(2)
[3] = Int32(3)
block0:
[ 0] GetGlobal dst:reg6, `f`
[ 10] Call dst:reg5, callee:reg6, this_value:Undefined, f, arguments:[Int32(1), Int32(2), Int32(3)]
[ 40] End value:reg5
f$8982c134 parameter-createvariable-order.js:2:5
Registers: 6
Blocks: 1
Locals: inner~0
Constants:
[0] = Undefined
block0:
[ 0] CreateVariable `a`, is_immutable:false, is_global:false, is_strict:false
[ 10] CreateVariable `b`, is_immutable:false, is_global:false, is_strict:false
[ 20] CreateVariable `c`, is_immutable:false, is_global:false, is_strict:false
[ 30] InitializeLexicalBinding `a`, src:arg0
[ 48] InitializeLexicalBinding `b`, src:arg1
[ 60] InitializeLexicalBinding `c`, src:arg2
[ 78] Mov dst:inner~0, src:Undefined
[ 88] NewFunction dst:reg5, shared_function_data_index:0 (inner)
[ a0] Mov dst:inner~0, src:reg5
[ b0] Call dst:reg5, callee:inner~0, this_value:Undefined, inner
[ d0] Return value:reg5
inner$9e8c0b51 parameter-createvariable-order.js:3:9
Registers: 8
Blocks: 1
block0:
[ 0] GetBinding dst:reg5, `a`
[ 18] GetBinding dst:reg6, `b`
[ 30] Add dst:reg7, lhs:reg5, rhs:reg6
[ 40] GetBinding dst:reg5, `c`
[ 58] Add dst:reg6, lhs:reg7, rhs:reg5
[ 68] Return value:reg6