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.
15 lines
608 B
Text
15 lines
608 B
Text
$615c3fdf named-function-expression.js:4:6
|
|
Registers: 8
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0, is_catch_environment:false
|
|
[ 20] CreateVariable `Oops`, is_immutable:true, is_global:false, is_strict:false
|
|
[ 30] NewFunction dst:reg6, shared_function_data_index:0
|
|
[ 48] InitializeLexicalBinding `Oops`, src:reg6
|
|
[ 60] SetLexicalEnvironment environment:reg4
|
|
[ 68] SetGlobal `Oops`, src:reg6
|
|
[ 78] GetGlobal dst:reg5, `Oops`
|
|
[ 88] GetById dst:reg7, base:reg5, `x` (Oops.x)
|
|
[ a0] End value:reg7
|