mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 01:22:43 +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.
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
$0c699965 update-member-expression.js:13:1
|
|
Registers: 9
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetGlobal dst:reg6, `postfix_increment`
|
|
[ 18] NewObject dst:reg7
|
|
[ 28] Call dst:reg5, callee:reg6, this_value:Undefined, postfix_increment, arguments:[reg7]
|
|
[ 50] GetGlobal dst:reg7, `prefix_decrement`
|
|
[ 68] NewObject dst:reg8
|
|
[ 78] Call dst:reg6, callee:reg7, this_value:Undefined, prefix_decrement, arguments:[reg8]
|
|
[ a0] End value:reg6
|
|
|
|
|
|
postfix_increment$8ce50e3d update-member-expression.js:6:14
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetById dst:reg5, base:arg0, `count` (obj.count)
|
|
[ 20] PostfixIncrement dst:reg6, src:reg5
|
|
[ 30] PutById base:arg0, `count`, src:reg5, kind:Normal
|
|
[ 58] End value:Undefined
|
|
|
|
|
|
prefix_decrement$41bc97a7 update-member-expression.js:10:5
|
|
Registers: 6
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetById dst:reg5, base:arg0, `count` (obj.count)
|
|
[ 20] Decrement dst:reg5
|
|
[ 28] PutById base:arg0, `count`, src:reg5, kind:Normal
|
|
[ 50] End value:Undefined
|