OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: yes | 6 wrap: yes |
7 | 7 |
8 --- | 8 --- |
9 snippet: " | 9 snippet: " |
10 var ld_a = 1; | 10 var ld_a = 1; |
11 while(true) { | 11 while(true) { |
12 ld_a = ld_a + ld_a; | 12 ld_a = ld_a + ld_a; |
13 if (ld_a > 10) break; | 13 if (ld_a > 10) break; |
14 } | 14 } |
15 return ld_a; | 15 return ld_a; |
16 " | 16 " |
17 frame size: 1 | 17 frame size: 1 |
18 parameter count: 1 | 18 parameter count: 1 |
19 bytecode array length: 28 | 19 bytecode array length: 28 |
20 bytecodes: [ | 20 bytecodes: [ |
21 /* 30 E> */ B(StackCheck), | 21 /* 30 E> */ B(StackCheck), |
22 /* 45 S> */ B(LdaSmi), U8(1), | 22 /* 45 S> */ B(LdaSmi), I8(1), |
23 B(Star), R(0), | 23 B(Star), R(0), |
24 /* 48 E> */ B(StackCheck), | 24 /* 48 E> */ B(StackCheck), |
25 /* 64 S> */ B(Ldar), R(0), | 25 /* 64 S> */ B(Ldar), R(0), |
26 /* 76 E> */ B(Add), R(0), U8(2), | 26 /* 76 E> */ B(Add), R(0), U8(2), |
27 B(Star), R(0), | 27 B(Star), R(0), |
28 /* 86 S> */ B(LdaSmi), U8(10), | 28 /* 86 S> */ B(LdaSmi), I8(10), |
29 /* 95 E> */ B(TestGreaterThan), R(0), U8(3), | 29 /* 95 E> */ B(TestGreaterThan), R(0), U8(3), |
30 B(JumpIfFalse), U8(4), | 30 B(JumpIfFalse), U8(4), |
31 /* 101 S> */ B(Jump), U8(5), | 31 /* 101 S> */ B(Jump), U8(5), |
32 B(JumpLoop), U8(17), U8(0), | 32 B(JumpLoop), U8(17), I8(0), |
33 /* 110 S> */ B(Ldar), R(0), | 33 /* 110 S> */ B(Ldar), R(0), |
34 /* 123 S> */ B(Return), | 34 /* 123 S> */ B(Return), |
35 ] | 35 ] |
36 constant pool: [ | 36 constant pool: [ |
37 ] | 37 ] |
38 handlers: [ | 38 handlers: [ |
39 ] | 39 ] |
40 | 40 |
41 --- | 41 --- |
42 snippet: " | 42 snippet: " |
43 var ld_a = 1; | 43 var ld_a = 1; |
44 do { | 44 do { |
45 ld_a = ld_a + ld_a; | 45 ld_a = ld_a + ld_a; |
46 if (ld_a > 10) continue; | 46 if (ld_a > 10) continue; |
47 } while(false); | 47 } while(false); |
48 return ld_a; | 48 return ld_a; |
49 " | 49 " |
50 frame size: 1 | 50 frame size: 1 |
51 parameter count: 1 | 51 parameter count: 1 |
52 bytecode array length: 24 | 52 bytecode array length: 24 |
53 bytecodes: [ | 53 bytecodes: [ |
54 /* 30 E> */ B(StackCheck), | 54 /* 30 E> */ B(StackCheck), |
55 /* 45 S> */ B(LdaSmi), U8(1), | 55 /* 45 S> */ B(LdaSmi), I8(1), |
56 B(Star), R(0), | 56 B(Star), R(0), |
57 /* 48 E> */ B(StackCheck), | 57 /* 48 E> */ B(StackCheck), |
58 /* 55 S> */ B(Nop), | 58 /* 55 S> */ B(Nop), |
59 /* 67 E> */ B(Add), R(0), U8(2), | 59 /* 67 E> */ B(Add), R(0), U8(2), |
60 B(Star), R(0), | 60 B(Star), R(0), |
61 /* 77 S> */ B(LdaSmi), U8(10), | 61 /* 77 S> */ B(LdaSmi), I8(10), |
62 /* 86 E> */ B(TestGreaterThan), R(0), U8(3), | 62 /* 86 E> */ B(TestGreaterThan), R(0), U8(3), |
63 B(JumpIfFalse), U8(4), | 63 B(JumpIfFalse), U8(4), |
64 /* 92 S> */ B(Jump), U8(2), | 64 /* 92 S> */ B(Jump), U8(2), |
65 /* 118 S> */ B(Ldar), R(0), | 65 /* 118 S> */ B(Ldar), R(0), |
66 /* 131 S> */ B(Return), | 66 /* 131 S> */ B(Return), |
67 ] | 67 ] |
68 constant pool: [ | 68 constant pool: [ |
69 ] | 69 ] |
70 handlers: [ | 70 handlers: [ |
71 ] | 71 ] |
72 | 72 |
73 --- | 73 --- |
74 snippet: " | 74 snippet: " |
75 var ld_a = 1; | 75 var ld_a = 1; |
76 ld_a = ld_a + ld_a; | 76 ld_a = ld_a + ld_a; |
77 return ld_a; | 77 return ld_a; |
78 " | 78 " |
79 frame size: 1 | 79 frame size: 1 |
80 parameter count: 1 | 80 parameter count: 1 |
81 bytecode array length: 13 | 81 bytecode array length: 13 |
82 bytecodes: [ | 82 bytecodes: [ |
83 /* 30 E> */ B(StackCheck), | 83 /* 30 E> */ B(StackCheck), |
84 /* 45 S> */ B(LdaSmi), U8(1), | 84 /* 45 S> */ B(LdaSmi), I8(1), |
85 B(Star), R(0), | 85 B(Star), R(0), |
86 /* 50 S> */ B(Nop), | 86 /* 50 S> */ B(Nop), |
87 /* 62 E> */ B(Add), R(0), U8(2), | 87 /* 62 E> */ B(Add), R(0), U8(2), |
88 B(Star), R(0), | 88 B(Star), R(0), |
89 /* 72 S> */ B(Nop), | 89 /* 72 S> */ B(Nop), |
90 /* 85 S> */ B(Return), | 90 /* 85 S> */ B(Return), |
91 ] | 91 ] |
92 constant pool: [ | 92 constant pool: [ |
93 ] | 93 ] |
94 handlers: [ | 94 handlers: [ |
95 ] | 95 ] |
96 | 96 |
OLD | NEW |