Files
ladybird/Tests/LibJS/Bytecode/expected/block-function-declaration-order.txt
Andreas Kling bc4379983f LibJS: Improve bytecode executable dump format
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.
2026-03-20 00:51:23 -05:00

22 lines
831 B
Plaintext

$7ec14918 block-function-declaration-order.js:1:1
Registers: 7
Blocks: 1
Constants:
[0] = Undefined
block0:
[ 0] GetLexicalEnvironment dst:reg4
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
[ 18] CreateMutableBinding environment:reg5, `f1`, can_be_deleted:false
[ 28] NewFunction dst:reg6, shared_function_data_index:0
[ 40] InitializeLexicalBinding `f1`, src:reg6
[ 58] CreateMutableBinding environment:reg5, `f2`, can_be_deleted:false
[ 68] NewFunction dst:reg6, shared_function_data_index:1
[ 80] InitializeLexicalBinding `f2`, src:reg6
[ 98] GetBinding dst:reg6, `f1`
[ b0] SetVariableBinding `f1`, src:reg6
[ c8] GetBinding dst:reg6, `f2`
[ e0] SetVariableBinding `f2`, src:reg6
[ f8] SetLexicalEnvironment environment:reg4
[ 100] End value:Undefined