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

58 lines
1.6 KiB
Plaintext

$2d41d92c computed-string-object-literal.js:15:1
Registers: 8
Blocks: 1
Constants:
[0] = Undefined
[1] = String("x")
block0:
[ 0] GetGlobal dst:reg6, `simple_computed`
[ 18] Call dst:reg5, callee:reg6, this_value:Undefined, simple_computed
[ 38] GetGlobal dst:reg7, `mixed`
[ 50] Call dst:reg6, callee:reg7, this_value:Undefined, mixed
[ 70] GetGlobal dst:reg7, `dynamic`
[ 88] Call dst:reg5, callee:reg7, this_value:Undefined, dynamic, arguments:[String("x")]
[ b0] End value:reg5
simple_computed$4b41b515 computed-string-object-literal.js:6:5
Registers: 6
Blocks: 1
Constants:
[0] = Int32(1)
block0:
[ 0] NewObject dst:reg5
[ 10] InitObjectLiteralProperty object:reg5, `x`, src:Int32(1), shape_cache_index:0, property_slot:0
[ 28] CacheObjectShape object:reg5
[ 38] Return value:reg5
mixed$5c18a76a computed-string-object-literal.js:9:5
Registers: 6
Blocks: 1
Constants:
[0] = Int32(1)
[1] = Int32(2)
block0:
[ 0] NewObject dst:reg5
[ 10] InitObjectLiteralProperty object:reg5, `a`, src:Int32(1), shape_cache_index:0, property_slot:0
[ 28] InitObjectLiteralProperty object:reg5, `b`, src:Int32(2), shape_cache_index:0, property_slot:1
[ 40] CacheObjectShape object:reg5
[ 50] Return value:reg5
dynamic$ae7fe9ae computed-string-object-literal.js:12:5
Registers: 7
Blocks: 1
Constants:
[0] = Int32(1)
block0:
[ 0] NewObject dst:reg5
[ 10] Mov dst:reg6, src:arg0
[ 20] ToPrimitiveWithStringHint dst:reg6, value:reg6
[ 30] PutByValue base:reg5, property:reg6, src:Int32(1), kind:Own
[ 48] Return value:reg5