mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 09:27:00 +02:00
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.
32 lines
950 B
Plaintext
32 lines
950 B
Plaintext
$4b4a3d70 nested-member-base-identifier.js:9:1
|
|
Registers: 9
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(1)
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `assign_nested`
|
|
[ 18] NewObject dst:reg7
|
|
[ 28] InitObjectLiteralProperty object:reg7, `shader`, src:Int32(1), shape_cache_index:0, property_slot:0
|
|
[ 40] CacheObjectShape object:reg7
|
|
[ 50] NewArray dst:reg8, elements:[reg7]
|
|
[ 68] Call dst:reg5, callee:reg6, this_value:Undefined, assign_nested, arguments:[reg8, Int32(1)]
|
|
[ 90] End value:reg5
|
|
|
|
|
|
assign_nested$ab9ddddc nested-member-base-identifier.js:6:8
|
|
Registers: 8
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(1)
|
|
[1] = Int32(0)
|
|
[2] = Undefined
|
|
|
|
block0:
|
|
[ 0] Mov dst:reg5, src:arg0
|
|
[ 10] Sub dst:reg6, lhs:arg1, rhs:Int32(1)
|
|
[ 20] GetByValue dst:reg7, base:reg5, property:reg6 (arr[reg6])
|
|
[ 38] PutById base:reg7, `shader`, src:Int32(0), kind:Normal (arr.shader)
|
|
[ 60] End value:Undefined
|