mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 09:27:00 +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.
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
$97607366 using-declaration-non-local-env.js:1:1
|
|
Registers: 9
|
|
Blocks: 4
|
|
Locals: e~0
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
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:reg7, src3:reg6
|
|
|
|
block2:
|
|
[ 40] End value:reg6
|
|
|
|
block3:
|
|
[ 48] Mov dst:reg5, src:Undefined
|
|
[ 58] NewFunction dst:reg8, shared_function_data_index:0
|
|
[ 70] Call dst:reg6, callee:reg8, this_value:Undefined
|
|
[ 90] Mov2 dst1:reg5, src1:reg6, dst2:reg6, src2:reg5
|
|
[ a8] End value:reg6
|
|
|
|
Exception handlers:
|
|
[ 48 .. b0] => handler block1
|
|
|
|
|
|
$21ba43fc using-declaration-non-local-env.js:1:21
|
|
Registers: 8
|
|
Blocks: 2
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
|
|
[ 18] CreateImmutableBinding environment:reg5, `x`, strict_binding:true
|
|
[ 28] NewTypeError dst:reg6, TODO: UsingDeclaration
|
|
[ 38] SetLexicalEnvironment environment:reg4
|
|
[ 40] Throw src:reg6
|
|
|
|
block1:
|
|
[ 48] NewFunction dst:reg7, shared_function_data_index:0
|
|
[ 60] Call dst:reg6, callee:reg7, this_value:Undefined
|
|
[ 80] SetLexicalEnvironment environment:reg4
|
|
[ 88] End value:Undefined
|