mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
Created these while experimenting with LibJS. Might as well bring them into the tree and increase our coverage.
16 lines
619 B
Plaintext
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
|