mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
Created these while experimenting with LibJS. Might as well bring them into the tree and increase our coverage.
23 lines
1012 B
Plaintext
23 lines
1012 B
Plaintext
JS bytecode executable ""
|
|
[ 0] 0: GetLexicalEnvironment dst:reg4
|
|
[ 8] SetGlobal identifier:n, src:Int32(4)
|
|
[ 18] Mov dst:reg5, src:Undefined
|
|
[ 28] Jump target:@88
|
|
[ 30] 1: SetGlobal identifier:depth, src:Int32(0)
|
|
[ 40] Mov dst:reg6, src:Undefined
|
|
[ 50] Jump target:@e8
|
|
[ 58] 2: GetGlobal dst:reg7, identifier:n
|
|
[ 68] Add dst:reg6, lhs:reg7, rhs:Int32(1)
|
|
[ 78] SetGlobal identifier:n, src:reg6
|
|
[ 88] 3: GetGlobal dst:reg6, identifier:n
|
|
[ 98] JumpLessThanEquals lhs:reg6, rhs:Int32(7), true_target:@30, false_target:@b0
|
|
[ b0] 4: End value:reg5
|
|
[ b8] 5: GetGlobal dst:reg8, identifier:depth
|
|
[ c8] Add dst:reg7, lhs:reg8, rhs:Int32(2)
|
|
[ d8] SetGlobal identifier:depth, src:reg7
|
|
[ e8] 6: GetGlobal dst:reg7, identifier:depth
|
|
[ f8] JumpLessThanEquals lhs:reg7, rhs:Int32(0), true_target:@b8, false_target:@110
|
|
[ 110] 7: Mov dst:reg5, src:reg6
|
|
[ 120] Mov dst:reg5, src:reg6
|
|
[ 130] Jump target:@58
|