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.
16 lines
384 B
Text
16 lines
384 B
Text
$afbf6828 global-variables.js:4:1
|
|
Registers: 9
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] SetGlobal `x`, src:Int32(1)
|
|
[ 10] GetGlobal dst:reg6, `console`
|
|
[ 20] GetById dst:reg7, base:reg6, `log` (console.log)
|
|
[ 38] GetGlobal dst:reg8, `x`
|
|
[ 48] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg8]
|
|
[ 70] End value:reg5
|
|
|
|
|
|
1
|