$c7ca75d8 switch-local-only-let.js:15:1 Registers: 11 Blocks: 1 Constants: [0] = Undefined [1] = Int32(1) [2] = Int32(2) [3] = Int32(3) block0: [ 0] GetGlobal dst:reg6, `console` [ 18] GetById dst:reg7, base:reg6, `log` (console.log) [ 38] GetGlobal dst:reg9, `switchLocalOnly` [ 50] Call dst:reg8, callee:reg9, this_value:Undefined, switchLocalOnly, arguments:[Int32(1)] [ 78] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg8] [ a0] GetGlobal dst:reg6, `console` [ b8] GetById dst:reg8, base:reg6, `log` (console.log) [ d8] GetGlobal dst:reg10, `switchLocalOnly` [ f0] Call dst:reg9, callee:reg10, this_value:Undefined, switchLocalOnly, arguments:[Int32(2)] [ 118] Call dst:reg7, callee:reg8, this_value:reg6, console.log, arguments:[reg9] [ 140] GetGlobal dst:reg8, `console` [ 158] GetById dst:reg6, base:reg8, `log` (console.log) [ 178] GetGlobal dst:reg10, `switchLocalOnly` [ 190] Call dst:reg9, callee:reg10, this_value:Undefined, switchLocalOnly, arguments:[Int32(3)] [ 1b8] Call dst:reg5, callee:reg6, this_value:reg8, console.log, arguments:[reg9] [ 1e0] End value:reg5 switchLocalOnly$fc47fb27 switch-local-only-let.js:4:5 Registers: 6 Blocks: 7 Locals: a~0, b~1 Constants: [0] = Int32(1) [1] = Int32(2) [2] = Int32(10) [3] = Int32(20) [4] = Int32(0) [5] = Undefined block0: [ 0] JumpStrictlyEquals lhs:Int32(1), rhs:arg0, true_target:block3, false_target:block1 block1: [ 18] JumpStrictlyEquals lhs:Int32(2), rhs:arg0, true_target:block4, false_target:block2 block2: [ 30] Return value:Int32(0) block3: [ 38] Mov dst:a~0, src:Int32(10) [ 48] Return value:a~0 block4: [ 50] Mov dst:b~1, src:Int32(20) [ 60] Return value:b~1 block5: [ 68] Return value:Int32(0) block6: [ 70] End value:Undefined 10 20 0