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 x = 0; | 12 var x = 0; |
13 while (x != 10) { | 13 while (x != 10) { |
14 x = x + 10; | 14 x = x + 10; |
15 } | 15 } |
16 return x; | 16 return x; |
17 " | 17 " |
18 frame size: 1 | 18 frame size: 1 |
19 parameter count: 1 | 19 parameter count: 1 |
20 bytecode array length: 21 | 20 bytecode array length: 22 |
21 bytecodes: [ | 21 bytecodes: [ |
22 /* 30 E> */ B(StackCheck), | 22 /* 30 E> */ B(StackCheck), |
23 /* 42 S> */ B(LdaZero), | 23 /* 42 S> */ B(LdaZero), |
24 B(Star), R(0), | 24 B(Star), R(0), |
25 /* 54 S> */ B(LdaSmi), U8(10), | 25 /* 54 S> */ B(LdaSmi), U8(10), |
26 /* 54 E> */ B(TestEqual), R(0), | 26 /* 54 E> */ B(TestEqual), R(0), |
27 B(JumpIfTrue), U8(10), | 27 B(JumpIfTrue), U8(11), |
28 /* 45 E> */ B(StackCheck), | 28 /* 45 E> */ B(StackCheck), |
29 /* 65 S> */ B(AddSmi), U8(10), R(0), | 29 /* 65 S> */ B(AddSmi), U8(10), R(0), U8(1), |
30 B(Star), R(0), | 30 B(Star), R(0), |
31 B(Jump), U8(-12), | 31 B(Jump), U8(-13), |
32 /* 79 S> */ B(Ldar), R(0), | 32 /* 79 S> */ B(Ldar), R(0), |
33 /* 89 S> */ B(Return), | 33 /* 89 S> */ B(Return), |
34 ] | 34 ] |
35 constant pool: [ | 35 constant pool: [ |
36 ] | 36 ] |
37 handlers: [ | 37 handlers: [ |
38 ] | 38 ] |
39 | 39 |
40 --- | 40 --- |
41 snippet: " | 41 snippet: " |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 ] | 90 ] |
91 | 91 |
92 --- | 92 --- |
93 snippet: " | 93 snippet: " |
94 var x = 1234; | 94 var x = 1234; |
95 var y = void (x * x - 1); | 95 var y = void (x * x - 1); |
96 return y; | 96 return y; |
97 " | 97 " |
98 frame size: 4 | 98 frame size: 4 |
99 parameter count: 1 | 99 parameter count: 1 |
100 bytecode array length: 22 | 100 bytecode array length: 23 |
101 bytecodes: [ | 101 bytecodes: [ |
102 /* 30 E> */ B(StackCheck), | 102 /* 30 E> */ B(StackCheck), |
103 /* 42 S> */ B(Wide), B(LdaSmi), U16(1234), | 103 /* 42 S> */ B(Wide), B(LdaSmi), U16(1234), |
104 B(Star), R(0), | 104 B(Star), R(0), |
105 /* 56 S> */ B(Nop), | 105 /* 56 S> */ B(Nop), |
106 /* 66 E> */ B(Mul), R(0), U8(1), | 106 /* 66 E> */ B(Mul), R(0), U8(1), |
107 B(Star), R(3), | 107 B(Star), R(3), |
108 B(SubSmi), U8(1), R(3), | 108 B(SubSmi), U8(1), R(3), U8(2), |
109 B(LdrUndefined), R(1), | 109 B(LdrUndefined), R(1), |
110 B(Ldar), R(1), | 110 B(Ldar), R(1), |
111 /* 74 S> */ B(Nop), | 111 /* 74 S> */ B(Nop), |
112 /* 84 S> */ B(Return), | 112 /* 84 S> */ B(Return), |
113 ] | 113 ] |
114 constant pool: [ | 114 constant pool: [ |
115 ] | 115 ] |
116 handlers: [ | 116 handlers: [ |
117 ] | 117 ] |
118 | 118 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 B(Star), R(0), | 172 B(Star), R(0), |
173 /* 46 S> */ B(LdaSmi), U8(-1), | 173 /* 46 S> */ B(LdaSmi), U8(-1), |
174 B(Mul), R(0), U8(1), | 174 B(Mul), R(0), U8(1), |
175 /* 57 S> */ B(Return), | 175 /* 57 S> */ B(Return), |
176 ] | 176 ] |
177 constant pool: [ | 177 constant pool: [ |
178 ] | 178 ] |
179 handlers: [ | 179 handlers: [ |
180 ] | 180 ] |
181 | 181 |
OLD | NEW |