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.
31 lines
639 B
Plaintext
31 lines
639 B
Plaintext
$bfb1383b default-param-self-reference.js:2:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `f`
|
|
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, f, arguments:[Int32(1)]
|
|
[ 40] End value:reg5
|
|
|
|
|
|
f$e162c485 default-param-self-reference.js:1:16
|
|
Registers: 5
|
|
Blocks: 3
|
|
Constants:
|
|
[0] = <Empty>
|
|
[1] = Undefined
|
|
|
|
block0:
|
|
[ 0] JumpUndefined condition:arg0, true_target:block1, false_target:block2
|
|
|
|
block1:
|
|
[ 10] Mov dst:arg0, src:<Empty>
|
|
[ 20] ThrowIfTDZ src:arg0
|
|
[ 28] Mov dst:arg0, src:arg0
|
|
|
|
block2:
|
|
[ 38] End value:Undefined
|