mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Teach the Rust bytecode generator to treat the synthetic entry GetLexicalEnvironment as a removable prologue load. We still model reg4 as the saved entry lexical environment during codegen, but assemble() now deletes that load when no emitted instruction refers to the saved environment register. This keeps the semantics of unwinding and environment restoration intact while letting empty functions and other simple bodies start at their first real instruction.
26 lines
783 B
Plaintext
26 lines
783 B
Plaintext
$69cce752 class-computed-key.js:10:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `f`
|
|
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, f
|
|
[ 38] End value:reg5
|
|
|
|
|
|
f$7455d328 class-computed-key.js:4:5
|
|
Registers: 8
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
|
|
[ 18] CreateVariable ``, is_immutable:true, is_global:false, is_strict:false
|
|
[ 28] GetGlobal dst:reg6, `Symbol`
|
|
[ 40] GetById dst:reg7, base:reg6, `iterator` (Symbol.iterator)
|
|
[ 60] SetLexicalEnvironment environment:reg4
|
|
[ 68] NewClass dst:reg6, class_environment:reg5, class_blueprint_index:0, element_keys:[element_keys:reg7]
|
|
[ 90] Return value:reg6
|