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