mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 08:33:28 +02:00
Add a metadata header showing register count, block count, local variable names, and the constants table. Resolve jump targets to block labels (e.g. "block1") instead of raw hex addresses, and add visual separation between basic blocks. Make identifier and property key formatting more concise by using backtick quoting and showing base_identifier as a trailing parenthetical hint that joins the base and property names. Generate a stable name for each executable by hashing the source text it covers (stable across codegen changes). Named functions show as "foo$9beb91ec", anonymous ones as "$43362f3f". Also show the source filename, line, and column.
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
$69cce752 destructure-array-rest.js:9:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] GetGlobal dst:reg6, `f`
|
|
[ 20] Call dst:reg5, callee:reg6, this_value:Undefined, f
|
|
[ 40] End value:reg5
|
|
|
|
|
|
f$e318a32c destructure-array-rest.js:6:5
|
|
Registers: 12
|
|
Blocks: 6
|
|
Locals: a~0, b~1
|
|
Constants:
|
|
[0] = Bool(false)
|
|
[1] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] NewPrimitiveArray dst:reg5, elements:[1, 2, 3]
|
|
[ 30] Mov dst:reg6, src:Bool(false)
|
|
[ 40] GetIterator dst_iterator_object:reg7, dst_iterator_next:reg8, dst_iterator_done:reg9, iterable:reg5
|
|
[ 58] IteratorNextUnpack dst_value:reg10, dst_done:reg6, iterator_object:reg7, iterator_next:reg8, iterator_done:reg9
|
|
[ 70] JumpFalse condition:reg6, target:block2
|
|
|
|
block1:
|
|
[ 80] Mov dst:reg10, src:Undefined
|
|
[ 90] Jump target:block2
|
|
|
|
block2:
|
|
[ 98] Mov dst:a~0, src:reg10
|
|
[ a8] JumpFalse condition:reg6, target:block4
|
|
|
|
block3:
|
|
[ b8] NewArray dst:reg11
|
|
[ c8] Jump target:block5
|
|
|
|
block4:
|
|
[ d0] IteratorToArray dst:reg11, iterator_object:reg7, iterator_next_method:reg8, iterator_done_property:reg9
|
|
|
|
block5:
|
|
[ e8] Mov dst:b~1, src:reg11
|
|
[ f8] ThrowIfTDZ src:b~1
|
|
[ 100] Return value:b~1
|