Files
ladybird/Tests/LibJS/Bytecode/expected/postfix-update-in-logical-and.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

31 lines
735 B
Plaintext

$e8ebe331 postfix-update-in-logical-and.js:4:1
Registers: 7
Blocks: 1
Constants:
[0] = Undefined
[1] = Int32(5)
block0:
[ 0] GetGlobal dst:reg6, `postfixInLogicalAnd`
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, postfixInLogicalAnd, arguments:[Int32(5)]
[ 40] End value:reg5
postfixInLogicalAnd$34f13720 postfix-update-in-logical-and.js:2:5
Registers: 8
Blocks: 3
Constants:
[0] = Int32(0)
block0:
[ 0] GreaterThan dst:reg5, lhs:arg0, rhs:Int32(0)
[ 10] Mov dst:reg6, src:reg5
[ 20] JumpFalse condition:reg5, target:block2
block1:
[ 30] PostfixDecrement dst:reg7, src:arg0
[ 40] Mov2 dst1:arg0, src1:arg0, dst2:reg6, src2:reg7
block2:
[ 58] Return value:reg6