Track bytecode-created declarative bindings while generating code so most environment-coordinate operands can be emitted eagerly. Dynamic lookup instructions remain for scopes where eval or object environments can change resolution at runtime. This lets the static coordinate bytecode variants run without cached- vs-uncached branches or eval poison checks, and rebaselines bytecode output for the newly eager coordinate operands.
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
$9d7300ea var-binding-access.js:22:1
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `var_access`
|
|
[ 10] Call dst:reg5, callee:reg6, this_value:Undefined, var_access
|
|
[ 30] GetGlobal dst:reg7, `let_access`
|
|
[ 40] Call dst:reg6, callee:reg7, this_value:Undefined, let_access
|
|
[ 60] End value:reg6
|
|
|
|
|
|
var_access$52e19afb var-binding-access.js:5:5
|
|
Registers: 6
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
|
|
[ 10] InitializeVariableBinding `x`, src:Undefined
|
|
[ 28] SetLexicalBinding `x`, src:Int32(1)
|
|
[ 40] NewFunction dst:reg5, shared_function_data_index:0
|
|
[ 58] GetInitializedBinding dst:reg5, `x`
|
|
[ 70] Return value:reg5
|
|
|
|
|
|
let_access$6d3f61f0 var-binding-access.js:14:5
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:1, is_catch_environment:false
|
|
[ 20] CreateVariable `x`, is_immutable:false, is_global:false, is_strict:false
|
|
[ 30] InitializeLexicalBinding `x`, src:Int32(1)
|
|
[ 48] NewFunction dst:reg6, shared_function_data_index:0
|
|
[ 60] GetBinding dst:reg6, `x`
|
|
[ 78] Return value:reg6
|