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.
17 lines
601 B
Text
17 lines
601 B
Text
$091ab4cd expression-identifier-number-format.js:1:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Double(1.1e-32)
|
|
[1] = Int32(42)
|
|
|
|
block0:
|
|
[ 0] NewObject dst:reg5
|
|
[ 10] SetGlobal `x`, src:reg5
|
|
[ 20] GetGlobal dst:reg5, `x`
|
|
[ 30] NewObject dst:reg6
|
|
[ 40] PutByValue base:reg5, property:Double(1.1e-32), src:reg6, kind:Normal (x[Double(1.1e-32)])
|
|
[ 58] GetGlobal dst:reg5, `x`
|
|
[ 68] GetByValue dst:reg7, base:reg5, property:Double(1.1e-32) (x[Double(1.1e-32)])
|
|
[ 80] PutById base:reg7, `foo`, src:Int32(42), kind:Normal (x[1.1e-32].foo)
|
|
[ a0] End value:Int32(42)
|