Files
ladybird/Tests/LibJS/Bytecode/expected/baseline.txt
Andreas Kling fdd7809bd1 Tests/LibJS: Add a big pile of AST, bytecode, and runtime tests
Created these while experimenting with LibJS. Might as well bring them
into the tree and increase our coverage.
2026-02-17 20:44:57 +01:00

16 lines
619 B
Plaintext

JS bytecode executable ""
[ 0] 0: GetLexicalEnvironment dst:reg4
[ 8] GetGlobal dst:reg6, identifier:console
[ 18] GetById dst:reg7, base:reg6, property:log, base_identifier:console
[ 30] GetGlobal dst:reg9, identifier:add
[ 40] Call dst:reg8, callee:reg9, this_value:Undefined, add, arguments:[Int32(1), Int32(2)]
[ 68] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg8]
[ 90] End value:reg5
JS bytecode executable "add"
[ 0] 0: GetLexicalEnvironment dst:reg4
[ 8] Add dst:reg5, lhs:arg0, rhs:arg1
[ 18] Return value:reg5
3