Files
ladybird/Tests/LibJS/Bytecode/expected/named-function-expression.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

16 lines
580 B
Plaintext

$46e6a760 named-function-expression.js:4:6
Registers: 8
Blocks: 1
block0:
[ 0] GetLexicalEnvironment dst:reg4
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0
[ 18] CreateVariable `Oops`, is_immutable:true, is_global:false, is_strict:false
[ 28] NewFunction dst:reg6, shared_function_data_index:0
[ 40] InitializeLexicalBinding `Oops`, src:reg6
[ 58] SetLexicalEnvironment environment:reg4
[ 60] SetGlobal `Oops`, src:reg6
[ 78] GetGlobal dst:reg5, `Oops`
[ 90] GetById dst:reg7, base:reg5, `x` (Oops.x)
[ b0] End value:reg7