ladybird/Tests/LibJS/Bytecode/expected/computed-member-access.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

37 lines
1 KiB
Text

$41132570 computed-member-access.js:12:1
Registers: 9
Blocks: 1
Constants:
[0] = Undefined
[1] = Int32(0)
block0:
[ 0] GetGlobal dst:reg6, `computed_read`
[ 10] NewPrimitiveArray dst:reg7, elements:[1]
[ 28] Call dst:reg5, callee:reg6, this_value:Undefined, computed_read, arguments:[reg7]
[ 50] GetGlobal dst:reg7, `computed_read_expression`
[ 60] NewPrimitiveArray dst:reg8, elements:[1]
[ 78] Call dst:reg6, callee:reg7, this_value:Undefined, computed_read_expression, arguments:[reg8, Int32(0)]
[ a0] End value:reg6
computed_read$f0ef6ac1 computed-member-access.js:5:5
Registers: 7
Blocks: 1
Constants:
[0] = Int32(0)
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] GetByValue dst:reg6, base:reg5, property:Int32(0) (a[Int32(0)])
[ 28] Return value:reg6
computed_read_expression$c18fd380 computed-member-access.js:9:5
Registers: 7
Blocks: 1
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] GetByValue dst:reg6, base:reg5, property:arg1 (a[arg1])
[ 28] Return value:reg6