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.
167 lines
4.1 KiB
Text
167 lines
4.1 KiB
Text
$f9fa6696 try-finally-continue.js:13:1
|
|
Registers: 11
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `console`
|
|
[ 10] GetById dst:reg7, base:reg6, `log` (console.log)
|
|
[ 28] GetGlobal dst:reg9, `continueThroughFinally`
|
|
[ 38] Call dst:reg8, callee:reg9, this_value:Undefined, continueThroughFinally
|
|
[ 58] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg8]
|
|
[ 80] GetGlobal dst:reg6, `console`
|
|
[ 90] GetById dst:reg8, base:reg6, `log` (console.log)
|
|
[ a8] GetGlobal dst:reg10, `breakThroughFinally`
|
|
[ b8] Call dst:reg9, callee:reg10, this_value:Undefined, breakThroughFinally
|
|
[ d8] Call dst:reg7, callee:reg8, this_value:reg6, console.log, arguments:[reg9]
|
|
[ 100] End value:reg7
|
|
|
|
|
|
continueThroughFinally$49ed363e try-finally-continue.js:2:5
|
|
Registers: 9
|
|
Blocks: 15
|
|
Locals: i~0, result~1
|
|
Constants:
|
|
[0] = Int32(0)
|
|
[1] = Int32(3)
|
|
[2] = Int32(1)
|
|
[3] = Int32(10)
|
|
[4] = Int32(2)
|
|
[5] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] Mov2 dst1:result~1, src1:Int32(0), dst2:i~0, src2:Int32(0)
|
|
[ 20] Jump target:block3
|
|
|
|
block1:
|
|
[ 28] Jump target:block7
|
|
|
|
block2:
|
|
[ 30] PostfixIncrement dst:reg5, src:i~0
|
|
|
|
block3:
|
|
[ 40] JumpLessThan lhs:i~0, rhs:Int32(3), true_target:block1, false_target:block4
|
|
|
|
block4:
|
|
[ 58] Return value:result~1
|
|
|
|
block5:
|
|
[ 60] Catch dst:reg6
|
|
[ 68] SetLexicalEnvironment environment:reg4
|
|
[ 70] Mov dst:reg5, src:Int32(1)
|
|
|
|
block6:
|
|
[ 80] Mov dst:reg8, src:result~1
|
|
[ 90] Add dst:reg7, lhs:reg8, rhs:Int32(10)
|
|
[ a0] Mov dst:result~1, src:reg7
|
|
[ b0] JumpStrictlyEquals lhs:reg5, rhs:Int32(0), true_target:block10, false_target:block11
|
|
|
|
block7:
|
|
[ c8] JumpStrictlyEquals lhs:i~0, rhs:Int32(1), true_target:block8, false_target:block9
|
|
|
|
block8:
|
|
[ e0] Mov dst:reg5, src:Int32(3)
|
|
[ f0] Jump target:block6
|
|
|
|
block9:
|
|
[ f8] Mov dst:reg7, src:result~1
|
|
[ 108] Add dst:reg8, lhs:reg7, rhs:i~0
|
|
[ 118] Mov2 dst1:result~1, src1:reg8, dst2:reg5, src2:Int32(0)
|
|
[ 130] Jump target:block6
|
|
|
|
block10:
|
|
[ 138] Jump target:block2
|
|
|
|
block11:
|
|
[ 140] JumpStrictlyEquals lhs:reg5, rhs:Int32(3), true_target:block2, false_target:block12
|
|
|
|
block12:
|
|
[ 158] JumpStrictlyEquals lhs:reg5, rhs:Int32(2), true_target:block13, false_target:block14
|
|
|
|
block13:
|
|
[ 170] Return value:reg6
|
|
|
|
block14:
|
|
[ 178] Throw src:reg6
|
|
|
|
Exception handlers:
|
|
[ c8 .. 138] => handler block5
|
|
|
|
|
|
breakThroughFinally$d975d962 try-finally-continue.js:16:5
|
|
Registers: 9
|
|
Blocks: 15
|
|
Locals: i~0, result~1
|
|
Constants:
|
|
[0] = Int32(0)
|
|
[1] = Int32(10)
|
|
[2] = Int32(1)
|
|
[3] = Int32(2)
|
|
[4] = Int32(3)
|
|
[5] = Int32(100)
|
|
[6] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] Mov2 dst1:result~1, src1:Int32(0), dst2:i~0, src2:Int32(0)
|
|
[ 20] Jump target:block3
|
|
|
|
block1:
|
|
[ 28] Jump target:block7
|
|
|
|
block2:
|
|
[ 30] PostfixIncrement dst:reg5, src:i~0
|
|
|
|
block3:
|
|
[ 40] JumpLessThan lhs:i~0, rhs:Int32(10), true_target:block1, false_target:block4
|
|
|
|
block4:
|
|
[ 58] Return value:result~1
|
|
|
|
block5:
|
|
[ 60] Catch dst:reg6
|
|
[ 68] SetLexicalEnvironment environment:reg4
|
|
[ 70] Mov dst:reg5, src:Int32(1)
|
|
|
|
block6:
|
|
[ 80] Mov dst:reg8, src:result~1
|
|
[ 90] Add dst:reg7, lhs:reg8, rhs:Int32(100)
|
|
[ a0] Mov dst:result~1, src:reg7
|
|
[ b0] JumpStrictlyEquals lhs:reg5, rhs:Int32(0), true_target:block10, false_target:block11
|
|
|
|
block7:
|
|
[ c8] JumpStrictlyEquals lhs:i~0, rhs:Int32(2), true_target:block8, false_target:block9
|
|
|
|
block8:
|
|
[ e0] Mov dst:reg5, src:Int32(3)
|
|
[ f0] Jump target:block6
|
|
|
|
block9:
|
|
[ f8] Mov dst:reg7, src:result~1
|
|
[ 108] Add dst:reg8, lhs:reg7, rhs:i~0
|
|
[ 118] Mov2 dst1:result~1, src1:reg8, dst2:reg5, src2:Int32(0)
|
|
[ 130] Jump target:block6
|
|
|
|
block10:
|
|
[ 138] Jump target:block2
|
|
|
|
block11:
|
|
[ 140] JumpStrictlyEquals lhs:reg5, rhs:Int32(3), true_target:block4, false_target:block12
|
|
|
|
block12:
|
|
[ 158] JumpStrictlyEquals lhs:reg5, rhs:Int32(2), true_target:block13, false_target:block14
|
|
|
|
block13:
|
|
[ 170] Return value:reg6
|
|
|
|
block14:
|
|
[ 178] Throw src:reg6
|
|
|
|
Exception handlers:
|
|
[ c8 .. 138] => handler block5
|
|
|
|
|
|
32
|
|
301
|