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.
67 lines
1.7 KiB
Text
67 lines
1.7 KiB
Text
$3c59d5bd sequential-try-blocks.js:17:1
|
|
Registers: 10
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `console`
|
|
[ 10] GetById dst:reg7, base:reg6, `log` (console.log)
|
|
[ 28] GetGlobal dst:reg9, `sequentialTryCatch`
|
|
[ 38] Call dst:reg8, callee:reg9, this_value:Undefined, sequentialTryCatch
|
|
[ 58] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg8]
|
|
[ 80] End value:reg5
|
|
|
|
|
|
sequentialTryCatch$0a8456ee sequential-try-blocks.js:2:5
|
|
Registers: 8
|
|
Blocks: 5
|
|
Locals: e~0, e~1, result~2
|
|
Constants:
|
|
[0] = String("")
|
|
[1] = String("b")
|
|
[2] = String("a")
|
|
[3] = Int32(1)
|
|
[4] = String("d")
|
|
[5] = String("c")
|
|
[6] = Int32(2)
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] Mov dst:result~2, src:String("")
|
|
[ 18] Jump target:block2
|
|
|
|
block1:
|
|
[ 20] Catch dst:reg5
|
|
[ 28] SetLexicalEnvironment environment:reg4
|
|
[ 30] Mov2 dst1:e~0, src1:reg5, dst2:reg6, src2:result~2
|
|
[ 48] Add dst:reg7, lhs:reg6, rhs:String("b")
|
|
[ 58] Mov dst:result~2, src:reg7
|
|
[ 68] Jump target:block4
|
|
|
|
block2:
|
|
[ 70] Mov dst:reg5, src:result~2
|
|
[ 80] Add dst:reg7, lhs:reg5, rhs:String("a")
|
|
[ 90] Mov dst:result~2, src:reg7
|
|
[ a0] Throw src:Int32(1)
|
|
|
|
block3:
|
|
[ a8] Catch dst:reg7
|
|
[ b0] SetLexicalEnvironment environment:reg4
|
|
[ b8] Mov2 dst1:e~1, src1:reg7, dst2:reg5, src2:result~2
|
|
[ d0] Add dst:reg6, lhs:reg5, rhs:String("d")
|
|
[ e0] Mov dst:result~2, src:reg6
|
|
[ f0] Return value:result~2
|
|
|
|
block4:
|
|
[ f8] Mov dst:reg7, src:result~2
|
|
[ 108] Add dst:reg6, lhs:reg7, rhs:String("c")
|
|
[ 118] Mov dst:result~2, src:reg6
|
|
[ 128] Throw src:Int32(2)
|
|
|
|
Exception handlers:
|
|
[ 70 .. a8] => handler block1
|
|
[ f8 .. 130] => handler block3
|
|
|
|
|
|
"abcd"
|