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.
70 lines
1.8 KiB
Text
70 lines
1.8 KiB
Text
$e1cbb7d2 computed-string-to-ById.js:17:1
|
|
Registers: 9
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `get_string_prop`
|
|
[ 10] NewObject dst:reg7
|
|
[ 20] Call dst:reg5, callee:reg6, this_value:Undefined, get_string_prop, arguments:[reg7]
|
|
[ 48] GetGlobal dst:reg7, `set_string_prop`
|
|
[ 58] NewObject dst:reg8
|
|
[ 68] Call dst:reg6, callee:reg7, this_value:Undefined, set_string_prop, arguments:[reg8]
|
|
[ 90] GetGlobal dst:reg7, `get_index_prop`
|
|
[ a0] NewArray dst:reg8
|
|
[ b0] Call dst:reg5, callee:reg7, this_value:Undefined, get_index_prop, arguments:[reg8]
|
|
[ d8] GetGlobal dst:reg7, `get_length_prop`
|
|
[ e8] NewArray dst:reg8
|
|
[ f8] Call dst:reg6, callee:reg7, this_value:Undefined, get_length_prop, arguments:[reg8]
|
|
[ 120] End value:reg6
|
|
|
|
|
|
get_string_prop$5816262b computed-string-to-ById.js:5:5
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = String("hello")
|
|
|
|
block0:
|
|
[ 0] Mov dst:reg5, src:arg0
|
|
[ 10] GetById dst:reg6, base:reg5, `hello` (o.hello)
|
|
[ 28] Return value:reg6
|
|
|
|
|
|
set_string_prop$d240471f computed-string-to-ById.js:8:16
|
|
Registers: 6
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = String("hello")
|
|
[1] = Int32(42)
|
|
[2] = Undefined
|
|
|
|
block0:
|
|
[ 0] Mov dst:reg5, src:arg0
|
|
[ 10] PutById base:reg5, `hello`, src:Int32(42), kind:Normal (o.hello)
|
|
[ 30] End value:Undefined
|
|
|
|
|
|
get_index_prop$a54df54e computed-string-to-ById.js:11:5
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = String("0")
|
|
|
|
block0:
|
|
[ 0] Mov dst:reg5, src:arg0
|
|
[ 10] GetByValue dst:reg6, base:reg5, property:String("0") (o[String("0")])
|
|
[ 28] Return value:reg6
|
|
|
|
|
|
get_length_prop$813e14f1 computed-string-to-ById.js:14:5
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = String("length")
|
|
|
|
block0:
|
|
[ 0] Mov dst:reg5, src:arg0
|
|
[ 10] GetLength dst:reg6, base:reg5 (o.length)
|
|
[ 28] Return value:reg6
|