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.
77 lines
2.4 KiB
Text
77 lines
2.4 KiB
Text
$6ce1f287 super-method-call-order.js:1:1
|
|
Registers: 9
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] NewObject dst:reg5
|
|
[ 10] NewFunction dst:reg6, shared_function_data_index:0 (m), home_object:reg5
|
|
[ 28] InitObjectLiteralProperty object:reg5, `m`, src:reg6, shape_cache_index:0, property_slot:0
|
|
[ 40] CacheObjectShape object:reg5
|
|
[ 50] SetGlobal `proto`, src:reg5
|
|
[ 60] NewObject dst:reg5
|
|
[ 70] GetGlobal dst:reg6, `proto`
|
|
[ 80] PutById base:reg5, `__proto__`, src:reg6, kind:Prototype
|
|
[ a0] NewFunction dst:reg6, shared_function_data_index:1 (test), home_object:reg5
|
|
[ b8] PutById base:reg5, `test`, src:reg6, kind:Own
|
|
[ d8] NewFunction dst:reg6, shared_function_data_index:2 (get x), home_object:reg5
|
|
[ f0] PutById base:reg5, `x`, src:reg6, kind:Getter
|
|
[ 110] NewFunction dst:reg6, shared_function_data_index:3 (test2), home_object:reg5
|
|
[ 128] PutById base:reg5, `test2`, src:reg6, kind:Own
|
|
[ 148] SetGlobal `obj`, src:reg5
|
|
[ 158] GetGlobal dst:reg6, `obj`
|
|
[ 168] GetById dst:reg7, base:reg6, `test` (obj.test)
|
|
[ 180] Call dst:reg5, callee:reg7, this_value:reg6, obj.test
|
|
[ 1a0] GetGlobal dst:reg7, `obj`
|
|
[ 1b0] GetById dst:reg6, base:reg7, `x` (obj.x)
|
|
[ 1c8] GetGlobal dst:reg7, `obj`
|
|
[ 1d8] GetById dst:reg8, base:reg7, `test2` (obj.test2)
|
|
[ 1f0] Call dst:reg5, callee:reg8, this_value:reg7, obj.test2
|
|
[ 210] End value:reg5
|
|
|
|
|
|
test$ef7af7d7 super-method-call-order.js:5:9
|
|
Registers: 8
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] ResolveThisBinding
|
|
[ 8] ResolveSuperBase dst:reg6
|
|
[ 10] GetByIdWithThis dst:reg7, base:reg6, `m`, this_value:this
|
|
[ 28] Call dst:reg5, callee:reg7, this_value:this, <object>.m
|
|
[ 48] Return value:reg5
|
|
|
|
|
|
m$685877e0
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] End value:Undefined
|
|
|
|
|
|
get x$18e950ea super-method-call-order.js:8:9
|
|
Registers: 8
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] ResolveThisBinding
|
|
[ 8] ResolveSuperBase dst:reg6
|
|
[ 10] GetByIdWithThis dst:reg7, base:reg6, `m`, this_value:this
|
|
[ 28] Call dst:reg5, callee:reg7, this_value:this, <object>.m
|
|
[ 48] Return value:reg5
|
|
|
|
|
|
test2$dbcdbeb3 super-method-call-order.js:11:9
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = String("m")
|
|
|
|
block0:
|
|
[ 0] ResolveThisBinding
|
|
[ 8] ResolveSuperBase dst:reg6
|
|
[ 10] GetByIdWithThis dst:reg7, base:reg6, `m`, this_value:this
|
|
[ 28] Call dst:reg5, callee:reg7, this_value:this, <object>['m']
|
|
[ 48] Return value:reg5
|