Files
ladybird/Tests/LibJS/Bytecode/expected/numeric-index-object-literal.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

33 lines
950 B
Plaintext

$d99dc022 numeric-index-object-literal.js:4:1
Registers: 7
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] GetGlobal dst:reg6, `test`
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, test
[ 38] End value:reg5
test$9f6ed6e2 numeric-index-object-literal.js:2:5
Registers: 6
Blocks: 1
Constants:
[0] = Int32(100)
[1] = Int32(1)
[2] = Int32(200)
[3] = Int32(2)
[4] = Int32(300)
[5] = Int32(3)
block0:
[ 0] NewObject dst:reg5
[ 10] ToPrimitiveWithStringHint dst:Int32(100), value:Int32(100)
[ 20] PutByValue base:reg5, property:Int32(100), src:Int32(1), kind:Own
[ 38] ToPrimitiveWithStringHint dst:Int32(200), value:Int32(200)
[ 48] PutByValue base:reg5, property:Int32(200), src:Int32(2), kind:Own
[ 60] ToPrimitiveWithStringHint dst:Int32(300), value:Int32(300)
[ 70] PutByValue base:reg5, property:Int32(300), src:Int32(3), kind:Own
[ 88] Return value:reg5