Files
ladybird/Tests/LibJS/Bytecode/expected/computed-string-to-ById.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

71 lines
1.8 KiB
Plaintext

$90ad3082 computed-string-to-ById.js:17:1
Registers: 9
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] GetGlobal dst:reg6, `get_string_prop`
[ 18] NewObject dst:reg7
[ 28] Call dst:reg5, callee:reg6, this_value:Undefined, get_string_prop, arguments:[reg7]
[ 50] GetGlobal dst:reg7, `set_string_prop`
[ 68] NewObject dst:reg8
[ 78] Call dst:reg6, callee:reg7, this_value:Undefined, set_string_prop, arguments:[reg8]
[ a0] GetGlobal dst:reg7, `get_index_prop`
[ b8] NewArray dst:reg8
[ c8] Call dst:reg5, callee:reg7, this_value:Undefined, get_index_prop, arguments:[reg8]
[ f0] GetGlobal dst:reg7, `get_length_prop`
[ 108] NewArray dst:reg8
[ 118] Call dst:reg6, callee:reg7, this_value:Undefined, get_length_prop, arguments:[reg8]
[ 140] End value:reg6
get_string_prop$fa843635 computed-string-to-ById.js:5:5
Registers: 7
Blocks: 1
Constants:
[0] = String("hello")
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] GetById dst:reg6, base:reg5, `hello` (o.hello)
[ 30] Return value:reg6
set_string_prop$5b793bae computed-string-to-ById.js:8:16
Registers: 6
Blocks: 1
Constants:
[0] = String("hello")
[1] = Int32(42)
[2] = Undefined
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] PutById base:reg5, `hello`, src:Int32(42), kind:Normal (o.hello)
[ 38] End value:Undefined
get_index_prop$f6a04ecf computed-string-to-ById.js:11:5
Registers: 7
Blocks: 1
Constants:
[0] = String("0")
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] GetByValue dst:reg6, base:reg5, property:String("0") (o[String("0")])
[ 28] Return value:reg6
get_length_prop$2983fb9b computed-string-to-ById.js:14:5
Registers: 7
Blocks: 1
Constants:
[0] = String("length")
block0:
[ 0] Mov dst:reg5, src:arg0
[ 10] GetLength dst:reg6, base:reg5 (o.length)
[ 28] Return value:reg6