mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
Created these while experimenting with LibJS. Might as well bring them into the tree and increase our coverage.
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
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:sequentialTryCatch
|
|
[ 40] Call dst:reg8, callee:reg9, this_value:Undefined, sequentialTryCatch
|
|
[ 60] Call dst:reg5, callee:reg7, this_value:reg6, console.log, arguments:[reg8]
|
|
[ 88] End value:reg5
|
|
|
|
JS bytecode executable "sequentialTryCatch"
|
|
[ 0] 0: GetLexicalEnvironment dst:reg4
|
|
[ 8] Mov dst:result~2, src:String("")
|
|
[ 18] Jump target:@58
|
|
[ 20] 1: Catch dst:reg5
|
|
[ 28] SetLexicalEnvironment environment:reg4
|
|
[ 30] Mov dst:e~0, src:reg5
|
|
[ 40] Add dst:result~2, lhs:result~2, rhs:String("b")
|
|
[ 50] 2: Jump target:@a8
|
|
[ 58] 3: Add dst:result~2, lhs:result~2, rhs:String("a")
|
|
[ 68] Throw src:Int32(1)
|
|
[ 70] 4: Catch dst:reg5
|
|
[ 78] SetLexicalEnvironment environment:reg4
|
|
[ 80] Mov dst:e~1, src:reg5
|
|
[ 90] Add dst:result~2, lhs:result~2, rhs:String("d")
|
|
[ a0] 5: Return value:result~2
|
|
[ a8] 6: Add dst:result~2, lhs:result~2, rhs:String("c")
|
|
[ b8] Throw src:Int32(2)
|
|
|
|
Exception handlers:
|
|
from 58 to 70 handler 20
|
|
from a8 to c0 handler 70
|
|
|
|
"abcd"
|