Truly independent web browser
$64b37270 for-loop-scoping.js:8:1
Registers: 9
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] Enter
[ 1] Mov dst:reg5, src:Undefined
[ 4] GetGlobal value_feedback:0, dst:reg6, `console`
[ c] GetById dst:reg7, base:reg6, `log`
[ 13] GetGlobal value_feedback:1, dst:reg8, `forLetClosure`
[ 1b] Call call_feedback:0, dst:reg8, callee:reg8, this_value:Undefined
[ 22] Call call_feedback:1, dst:reg5, callee:reg7, this_value:reg6, arguments:[reg8]
[ 2a] End value:reg5
forLetClosure$ef476903 for-loop-scoping.js:2:15
Registers: 8
Blocks: 4
Locals: fns~0
Constants:
[0] = Int32(0)
block0:
[ 0] Enter
[ 1] GetLexicalEnvironment dst:reg4
[ 3] NewArray dst:fns~0
[ 6] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ 12] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
[ 19] InitializeLexicalBinding `i`, src:Int32(0)
[ 20] GetBinding value_feedback:0, dst:reg6, `i`
[ 29] SetLexicalEnvironment environment:reg4
[ 2b] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ 37] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
[ 3e] InitializeLexicalBinding `i`, src:reg6
[ 45] Jump target:block2
block1:
[ 4a] GetById dst:reg6, base:fns~0, `push`
[ 51] NewFunction dst:reg7, shared_function_data_index:0
[ 58] Call call_feedback:0, dst:reg6, callee:reg6, this_value:fns~0, arguments:[reg7]
[ 60] GetBinding value_feedback:1, dst:reg6, `i`
[ 69] SetLexicalEnvironment environment:reg4
[ 6b] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
[ 77] CreateVariable `i`, is_immutable:false, is_global:false, is_strict:false
[ 7e] InitializeLexicalBinding `i`, src:reg6
[ 85] GetBinding value_feedback:2, dst:reg6, `i`
[ 8e] Increment arith_feedback:0, dst:reg6
[ 92] SetLexicalBinding `i`, src:reg6
block2:
[ 99] GetBinding value_feedback:3, dst:reg6, `i`
[ a2] JumpLessThanLoopRhsInt32 arith_feedback:1, lhs:reg6, rhs:3, true_target:block1, false_target:block3
block3:
[ b2] SetLexicalEnvironment environment:reg4
[ b4] GetById dst:reg5, base:fns~0, `map`
[ bb] NewFunction dst:reg6, shared_function_data_index:1
[ c2] Call call_feedback:1, dst:reg5, callee:reg5, this_value:fns~0, arguments:[reg6]
[ ca] Return value:reg5
map$d1c6bef1 BuiltinFile:275:11
Registers: 6
Blocks: 8
Locals: object~0, length~1, array~2, k~3, kValue~4, mappedValue~5
Constants:
[0] = Value([object RawNativeFunction])
[1] = Undefined
[2] = Int32(0)
block0:
[ 0] Enter
[ 1] ToObject dst:reg5, value:this
[ 4] Mov dst:object~0, src:reg5
[ 7] GetLength keyed_feedback:0, dst:reg5, base:object~0
[ e] ToLength dst:reg5, value:reg5
[ 11] Mov dst:length~1, src:reg5
[ 14] IsCallable dst:reg5, value:arg0
[ 17] Not dst:reg5, src:reg5
[ 1a] JumpFalse condition:reg5, target:block2
block1:
[ 20] ThrowNotAFunction src:arg0
block2:
[ 22] Call call_feedback:0, dst:reg5, callee:Value([object RawNativeFunction]), this_value:Undefined, arguments:[object~0, length~1]
[ 2b] Mov dst:array~2, src:reg5
[ 2e] Mov dst:k~3, src:Int32(0)
[ 31] Jump target:block6
block3:
[ 36] In dst:reg5, lhs:k~3, rhs:object~0
[ 3a] JumpFalse condition:reg5, target:block5
block4:
[ 40] GetByValue keyed_feedback:1, dst:reg5, base:object~0, property:k~3
[ 48] Mov dst:kValue~4, src:reg5
[ 4b] Call call_feedback:1, dst:reg5, callee:arg0, this_value:arg1, arguments:[kValue~4, k~3, object~0]
[ 55] Mov dst:mappedValue~5, src:reg5
[ 58] CreateDataPropertyOrThrow object:array~2, property:k~3, value:mappedValue~5
block5:
[ 5c] Increment arith_feedback:0, dst:k~3
block6:
[ 60] JumpLessThanLoop arith_feedback:1, lhs:k~3, rhs:length~1, true_target:block3, false_target:block7
block7:
[ 6d] Return value:array~2
$bb9c872d for-loop-scoping.js:6:20
Registers: 6
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] Enter
[ 1] Call call_feedback:0, dst:reg5, callee:arg0, this_value:Undefined
[ 8] Return value:reg5
$3aca62ef for-loop-scoping.js:4:18
Registers: 6
Blocks: 1
block0:
[ 0] Enter
[ 1] GetBinding value_feedback:0, dst:reg5, `i`
[ a] Return value:reg5
Array [0, 1, 2]