Files
ladybird/Tests/LibJS/Bytecode/expected/assign-to-parameter.txt
Andreas Kling 3a08f7b95f LibJS: Drop dead entry GetLexicalEnvironment loads
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.
2026-04-13 18:29:43 +02:00

22 lines
412 B
Plaintext

$b05eae7c assign-to-parameter.js:8:1
Registers: 7
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] GetGlobal dst:reg6, `isect`
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, isect
[ 38] End value:reg5
isect$96caa89c assign-to-parameter.js:5:9
Registers: 5
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] Mov dst:arg0, src:arg1
[ 10] End value:Undefined