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.
21 lines
531 B
Plaintext
21 lines
531 B
Plaintext
$68a257fc const-fold-exponentiation.js:1:1
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(1)
|
|
[1] = Int32(-1)
|
|
[2] = Double(inf)
|
|
[3] = Double(nan)
|
|
[4] = Double(-inf)
|
|
[5] = Int32(2)
|
|
[6] = Int32(10)
|
|
[7] = Int32(1024)
|
|
[8] = Undefined
|
|
|
|
block0:
|
|
[ 0] InitializeLexicalBinding `a`, src:Double(nan)
|
|
[ 18] InitializeLexicalBinding `b`, src:Double(nan)
|
|
[ 30] InitializeLexicalBinding `c`, src:Double(nan)
|
|
[ 48] InitializeLexicalBinding `d`, src:Int32(1024)
|
|
[ 60] End value:Undefined
|