ladybird/Tests/LibJS/Bytecode/expected/computed-string-object-literal.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

57 lines
1.6 KiB
Text

$7d035d6b computed-string-object-literal.js:15:1
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
[1] = String("x")
block0:
[ 0] GetGlobal dst:reg6, `simple_computed`
[ 10] Call dst:reg5, callee:reg6, this_value:Undefined, simple_computed
[ 30] GetGlobal dst:reg7, `mixed`
[ 40] Call dst:reg6, callee:reg7, this_value:Undefined, mixed
[ 60] GetGlobal dst:reg7, `dynamic`
[ 70] Call dst:reg5, callee:reg7, this_value:Undefined, dynamic, arguments:[String("x")]
[ 98] End value:reg5
simple_computed$ee1d99de computed-string-object-literal.js:6:5
Registers: 6
Blocks: 1
Constants:
[0] = Int32(1)
block0:
[ 0] NewObject dst:reg5
[ 10] InitObjectLiteralProperty object:reg5, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
[ 28] CacheObjectShape object:reg5
[ 38] Return value:reg5
mixed$9f3e333c computed-string-object-literal.js:9:5
Registers: 6
Blocks: 1
Constants:
[0] = Int32(1)
[1] = Int32(2)
block0:
[ 0] NewObject dst:reg5
[ 10] InitObjectLiteralProperty object:reg5, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
[ 28] InitObjectLiteralProperty object:reg5, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
[ 40] CacheObjectShape object:reg5
[ 50] Return value:reg5
dynamic$fd0d2731 computed-string-object-literal.js:12:5
Registers: 7
Blocks: 1
Constants:
[0] = Int32(1)
block0:
[ 0] NewObject dst:reg5
[ 10] Mov dst:reg6, src:arg0
[ 20] ToPrimitiveWithStringHint dst:reg6, value:reg6
[ 30] PutByValue base:reg5, property:reg6, src:Int32(1), kind:Own
[ 48] Return value:reg5