Files
ladybird/Tests/LibJS/Bytecode/expected/expression-identifier-number-format.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

18 lines
601 B
Plaintext

$169c53c3 expression-identifier-number-format.js:1:1
Registers: 8
Blocks: 1
Constants:
[0] = Double(1.1e-32)
[1] = Int32(42)
block0:
[ 0] NewObject dst:reg5
[ 10] SetGlobal `x`, src:reg5
[ 28] GetGlobal dst:reg5, `x`
[ 40] NewObject dst:reg6
[ 50] PutByValue base:reg5, property:Double(1.1e-32), src:reg6, kind:Normal (x[Double(1.1e-32)])
[ 68] GetGlobal dst:reg5, `x`
[ 80] GetByValue dst:reg7, base:reg5, property:Double(1.1e-32) (x[Double(1.1e-32)])
[ 98] PutById base:reg7, `foo`, src:Int32(42), kind:Normal (x[1.1e-32].foo)
[ c0] End value:Int32(42)