Files
ladybird/Tests/LibJS/Bytecode/expected/numeric-getter-no-lhs-name.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

26 lines
681 B
Plaintext

$d8d3a626 numeric-getter-no-lhs-name.js:1:1
Registers: 7
Blocks: 1
Constants:
[0] = Int32(0)
block0:
[ 0] NewObject dst:reg5
[ 10] ToPrimitiveWithStringHint dst:Int32(0), value:Int32(0)
[ 20] NewFunction dst:reg6, shared_function_data_index:0, home_object:reg5
[ 38] PutByValue base:reg5, property:Int32(0), src:reg6, kind:Getter
[ 50] SetGlobal `obj`, src:reg5
[ 68] GetGlobal dst:reg5, `obj`
[ 80] GetByValue dst:reg6, base:reg5, property:Int32(0) (obj[Int32(0)])
[ 98] End value:reg6
get 0$52a40bc0 numeric-getter-no-lhs-name.js:3:9
Registers: 5
Blocks: 1
Constants:
[0] = Int32(42)
block0:
[ 0] Return value:Int32(42)