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.
52 lines
1.1 KiB
Text
52 lines
1.1 KiB
Text
$dd76a6f8 local-variables.js:20:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `simple_let`
|
|
[ 10] Call dst:reg5, callee:reg6, this_value:Undefined, simple_let
|
|
[ 30] GetGlobal dst:reg7, `simple_const`
|
|
[ 40] Call dst:reg6, callee:reg7, this_value:Undefined, simple_const
|
|
[ 60] GetGlobal dst:reg7, `multiple_locals`
|
|
[ 70] Call dst:reg5, callee:reg7, this_value:Undefined, multiple_locals
|
|
[ 90] End value:reg5
|
|
|
|
|
|
simple_let$40478631 local-variables.js:5:5
|
|
Registers: 5
|
|
Blocks: 1
|
|
Locals: x~0
|
|
Constants:
|
|
[0] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] Mov dst:x~0, src:Int32(1)
|
|
[ 10] Return value:x~0
|
|
|
|
|
|
simple_const$80d5d79e local-variables.js:10:5
|
|
Registers: 5
|
|
Blocks: 1
|
|
Locals: y~0
|
|
Constants:
|
|
[0] = Int32(2)
|
|
|
|
block0:
|
|
[ 0] Mov dst:y~0, src:Int32(2)
|
|
[ 10] Return value:y~0
|
|
|
|
|
|
multiple_locals$77559ec6 local-variables.js:15:5
|
|
Registers: 6
|
|
Blocks: 1
|
|
Locals: a~0, b~1
|
|
Constants:
|
|
[0] = Int32(1)
|
|
[1] = Int32(2)
|
|
|
|
block0:
|
|
[ 0] Mov2 dst1:a~0, src1:Int32(1), dst2:b~1, src2:Int32(2)
|
|
[ 18] Add dst:reg5, lhs:a~0, rhs:b~1
|
|
[ 28] Return value:reg5
|