mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +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.
29 lines
599 B
Plaintext
29 lines
599 B
Plaintext
$f0f9cdaa try-catch-completion-ordering.js:1:1
|
|
Registers: 8
|
|
Blocks: 4
|
|
Locals: e~0
|
|
Constants:
|
|
[0] = Undefined
|
|
[1] = Int32(42)
|
|
[2] = Null
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] Jump target:block3
|
|
|
|
block1:
|
|
[ 10] Catch dst:reg5
|
|
[ 18] SetLexicalEnvironment environment:reg4
|
|
[ 20] Mov3 dst1:e~0, src1:reg5, dst2:reg6, src2:Undefined, dst3:reg6, src3:Int32(42)
|
|
[ 40] Mov dst:reg7, src:reg6
|
|
|
|
block2:
|
|
[ 50] End value:reg7
|
|
|
|
block3:
|
|
[ 58] Mov dst:reg5, src:Undefined
|
|
[ 68] Throw src:Null
|
|
|
|
Exception handlers:
|
|
[ 58 .. 70] => handler block1
|