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 x = 0; return x; | 10 var x = 0; return x; |
11 " | 11 " |
12 frame size: 1 | 12 frame size: 2 |
13 parameter count: 1 | 13 parameter count: 1 |
14 bytecode array length: 6 | 14 bytecode array length: 10 |
15 bytecodes: [ | 15 bytecodes: [ |
16 /* 30 E> */ B(StackCheck), | 16 /* 30 E> */ B(StackCheck), |
17 /* 42 S> */ B(LdaZero), | 17 /* 42 S> */ B(LdaConstant), U8(0), |
| 18 B(Star), R(1), |
| 19 B(LdaZero), |
18 B(Star), R(0), | 20 B(Star), R(0), |
19 /* 45 S> */ B(Nop), | 21 /* 45 S> */ B(Nop), |
20 /* 55 S> */ B(Return), | 22 /* 55 S> */ B(Return), |
21 ] | 23 ] |
22 constant pool: [ | 24 constant pool: [ |
| 25 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
23 ] | 26 ] |
24 handlers: [ | 27 handlers: [ |
25 ] | 28 ] |
26 | 29 |
27 --- | 30 --- |
28 snippet: " | 31 snippet: " |
29 var x = 0; return x + 3; | 32 var x = 0; return x + 3; |
30 " | 33 " |
31 frame size: 1 | 34 frame size: 2 |
32 parameter count: 1 | 35 parameter count: 1 |
33 bytecode array length: 10 | 36 bytecode array length: 14 |
34 bytecodes: [ | 37 bytecodes: [ |
35 /* 30 E> */ B(StackCheck), | 38 /* 30 E> */ B(StackCheck), |
36 /* 42 S> */ B(LdaZero), | 39 /* 42 S> */ B(LdaConstant), U8(0), |
| 40 B(Star), R(1), |
| 41 B(LdaZero), |
37 B(Star), R(0), | 42 B(Star), R(0), |
38 /* 45 S> */ B(LdaSmi), I8(3), | 43 /* 45 S> */ B(LdaSmi), I8(3), |
39 /* 54 E> */ B(Add), R(0), U8(2), | 44 /* 54 E> */ B(Add), R(0), U8(4), |
40 /* 59 S> */ B(Return), | 45 /* 59 S> */ B(Return), |
41 ] | 46 ] |
42 constant pool: [ | 47 constant pool: [ |
| 48 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
43 ] | 49 ] |
44 handlers: [ | 50 handlers: [ |
45 ] | 51 ] |
46 | 52 |
47 --- | 53 --- |
48 snippet: " | 54 snippet: " |
49 var x = 0; return x - 3; | 55 var x = 0; return x - 3; |
50 " | 56 " |
51 frame size: 1 | 57 frame size: 2 |
52 parameter count: 1 | 58 parameter count: 1 |
53 bytecode array length: 10 | 59 bytecode array length: 14 |
54 bytecodes: [ | 60 bytecodes: [ |
55 /* 30 E> */ B(StackCheck), | 61 /* 30 E> */ B(StackCheck), |
56 /* 42 S> */ B(LdaZero), | 62 /* 42 S> */ B(LdaConstant), U8(0), |
| 63 B(Star), R(1), |
| 64 B(LdaZero), |
57 B(Star), R(0), | 65 B(Star), R(0), |
58 /* 45 S> */ B(LdaSmi), I8(3), | 66 /* 45 S> */ B(LdaSmi), I8(3), |
59 /* 54 E> */ B(Sub), R(0), U8(2), | 67 /* 54 E> */ B(Sub), R(0), U8(4), |
60 /* 59 S> */ B(Return), | 68 /* 59 S> */ B(Return), |
61 ] | 69 ] |
62 constant pool: [ | 70 constant pool: [ |
| 71 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
63 ] | 72 ] |
64 handlers: [ | 73 handlers: [ |
65 ] | 74 ] |
66 | 75 |
67 --- | 76 --- |
68 snippet: " | 77 snippet: " |
69 var x = 4; return x * 3; | 78 var x = 4; return x * 3; |
70 " | 79 " |
71 frame size: 1 | 80 frame size: 2 |
72 parameter count: 1 | 81 parameter count: 1 |
73 bytecode array length: 11 | 82 bytecode array length: 15 |
74 bytecodes: [ | 83 bytecodes: [ |
75 /* 30 E> */ B(StackCheck), | 84 /* 30 E> */ B(StackCheck), |
76 /* 42 S> */ B(LdaSmi), I8(4), | 85 /* 42 S> */ B(LdaConstant), U8(0), |
| 86 B(Star), R(1), |
| 87 B(LdaSmi), I8(4), |
77 B(Star), R(0), | 88 B(Star), R(0), |
78 /* 45 S> */ B(LdaSmi), I8(3), | 89 /* 45 S> */ B(LdaSmi), I8(3), |
79 /* 54 E> */ B(Mul), R(0), U8(2), | 90 /* 54 E> */ B(Mul), R(0), U8(4), |
80 /* 59 S> */ B(Return), | 91 /* 59 S> */ B(Return), |
81 ] | 92 ] |
82 constant pool: [ | 93 constant pool: [ |
| 94 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
83 ] | 95 ] |
84 handlers: [ | 96 handlers: [ |
85 ] | 97 ] |
86 | 98 |
87 --- | 99 --- |
88 snippet: " | 100 snippet: " |
89 var x = 4; return x / 3; | 101 var x = 4; return x / 3; |
90 " | 102 " |
91 frame size: 1 | 103 frame size: 2 |
92 parameter count: 1 | 104 parameter count: 1 |
93 bytecode array length: 11 | 105 bytecode array length: 15 |
94 bytecodes: [ | 106 bytecodes: [ |
95 /* 30 E> */ B(StackCheck), | 107 /* 30 E> */ B(StackCheck), |
96 /* 42 S> */ B(LdaSmi), I8(4), | 108 /* 42 S> */ B(LdaConstant), U8(0), |
| 109 B(Star), R(1), |
| 110 B(LdaSmi), I8(4), |
97 B(Star), R(0), | 111 B(Star), R(0), |
98 /* 45 S> */ B(LdaSmi), I8(3), | 112 /* 45 S> */ B(LdaSmi), I8(3), |
99 /* 54 E> */ B(Div), R(0), U8(2), | 113 /* 54 E> */ B(Div), R(0), U8(4), |
100 /* 59 S> */ B(Return), | 114 /* 59 S> */ B(Return), |
101 ] | 115 ] |
102 constant pool: [ | 116 constant pool: [ |
| 117 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
103 ] | 118 ] |
104 handlers: [ | 119 handlers: [ |
105 ] | 120 ] |
106 | 121 |
107 --- | 122 --- |
108 snippet: " | 123 snippet: " |
109 var x = 4; return x % 3; | 124 var x = 4; return x % 3; |
110 " | 125 " |
111 frame size: 1 | 126 frame size: 2 |
112 parameter count: 1 | 127 parameter count: 1 |
113 bytecode array length: 11 | 128 bytecode array length: 15 |
114 bytecodes: [ | 129 bytecodes: [ |
115 /* 30 E> */ B(StackCheck), | 130 /* 30 E> */ B(StackCheck), |
116 /* 42 S> */ B(LdaSmi), I8(4), | 131 /* 42 S> */ B(LdaConstant), U8(0), |
| 132 B(Star), R(1), |
| 133 B(LdaSmi), I8(4), |
117 B(Star), R(0), | 134 B(Star), R(0), |
118 /* 45 S> */ B(LdaSmi), I8(3), | 135 /* 45 S> */ B(LdaSmi), I8(3), |
119 /* 54 E> */ B(Mod), R(0), U8(2), | 136 /* 54 E> */ B(Mod), R(0), U8(4), |
120 /* 59 S> */ B(Return), | 137 /* 59 S> */ B(Return), |
121 ] | 138 ] |
122 constant pool: [ | 139 constant pool: [ |
| 140 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
123 ] | 141 ] |
124 handlers: [ | 142 handlers: [ |
125 ] | 143 ] |
126 | 144 |
127 --- | 145 --- |
128 snippet: " | 146 snippet: " |
129 var x = 1; return x | 2; | 147 var x = 1; return x | 2; |
130 " | 148 " |
131 frame size: 1 | 149 frame size: 2 |
132 parameter count: 1 | 150 parameter count: 1 |
133 bytecode array length: 11 | 151 bytecode array length: 15 |
134 bytecodes: [ | 152 bytecodes: [ |
135 /* 30 E> */ B(StackCheck), | 153 /* 30 E> */ B(StackCheck), |
136 /* 42 S> */ B(LdaSmi), I8(1), | 154 /* 42 S> */ B(LdaConstant), U8(0), |
| 155 B(Star), R(1), |
| 156 B(LdaSmi), I8(1), |
137 B(Star), R(0), | 157 B(Star), R(0), |
138 /* 45 S> */ B(LdaSmi), I8(2), | 158 /* 45 S> */ B(LdaSmi), I8(2), |
139 /* 54 E> */ B(BitwiseOr), R(0), U8(2), | 159 /* 54 E> */ B(BitwiseOr), R(0), U8(4), |
140 /* 59 S> */ B(Return), | 160 /* 59 S> */ B(Return), |
141 ] | 161 ] |
142 constant pool: [ | 162 constant pool: [ |
| 163 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
143 ] | 164 ] |
144 handlers: [ | 165 handlers: [ |
145 ] | 166 ] |
146 | 167 |
147 --- | 168 --- |
148 snippet: " | 169 snippet: " |
149 var x = 1; return x ^ 2; | 170 var x = 1; return x ^ 2; |
150 " | 171 " |
151 frame size: 1 | 172 frame size: 2 |
152 parameter count: 1 | 173 parameter count: 1 |
153 bytecode array length: 11 | 174 bytecode array length: 15 |
154 bytecodes: [ | 175 bytecodes: [ |
155 /* 30 E> */ B(StackCheck), | 176 /* 30 E> */ B(StackCheck), |
156 /* 42 S> */ B(LdaSmi), I8(1), | 177 /* 42 S> */ B(LdaConstant), U8(0), |
| 178 B(Star), R(1), |
| 179 B(LdaSmi), I8(1), |
157 B(Star), R(0), | 180 B(Star), R(0), |
158 /* 45 S> */ B(LdaSmi), I8(2), | 181 /* 45 S> */ B(LdaSmi), I8(2), |
159 /* 54 E> */ B(BitwiseXor), R(0), U8(2), | 182 /* 54 E> */ B(BitwiseXor), R(0), U8(4), |
160 /* 59 S> */ B(Return), | 183 /* 59 S> */ B(Return), |
161 ] | 184 ] |
162 constant pool: [ | 185 constant pool: [ |
| 186 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
163 ] | 187 ] |
164 handlers: [ | 188 handlers: [ |
165 ] | 189 ] |
166 | 190 |
167 --- | 191 --- |
168 snippet: " | 192 snippet: " |
169 var x = 1; return x & 2; | 193 var x = 1; return x & 2; |
170 " | 194 " |
171 frame size: 1 | 195 frame size: 2 |
172 parameter count: 1 | 196 parameter count: 1 |
173 bytecode array length: 11 | 197 bytecode array length: 15 |
174 bytecodes: [ | 198 bytecodes: [ |
175 /* 30 E> */ B(StackCheck), | 199 /* 30 E> */ B(StackCheck), |
176 /* 42 S> */ B(LdaSmi), I8(1), | 200 /* 42 S> */ B(LdaConstant), U8(0), |
| 201 B(Star), R(1), |
| 202 B(LdaSmi), I8(1), |
177 B(Star), R(0), | 203 B(Star), R(0), |
178 /* 45 S> */ B(LdaSmi), I8(2), | 204 /* 45 S> */ B(LdaSmi), I8(2), |
179 /* 54 E> */ B(BitwiseAnd), R(0), U8(2), | 205 /* 54 E> */ B(BitwiseAnd), R(0), U8(4), |
180 /* 59 S> */ B(Return), | 206 /* 59 S> */ B(Return), |
181 ] | 207 ] |
182 constant pool: [ | 208 constant pool: [ |
| 209 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
183 ] | 210 ] |
184 handlers: [ | 211 handlers: [ |
185 ] | 212 ] |
186 | 213 |
187 --- | 214 --- |
188 snippet: " | 215 snippet: " |
189 var x = 10; return x << 3; | 216 var x = 10; return x << 3; |
190 " | 217 " |
191 frame size: 1 | 218 frame size: 2 |
192 parameter count: 1 | 219 parameter count: 1 |
193 bytecode array length: 11 | 220 bytecode array length: 15 |
194 bytecodes: [ | 221 bytecodes: [ |
195 /* 30 E> */ B(StackCheck), | 222 /* 30 E> */ B(StackCheck), |
196 /* 42 S> */ B(LdaSmi), I8(10), | 223 /* 42 S> */ B(LdaConstant), U8(0), |
| 224 B(Star), R(1), |
| 225 B(LdaSmi), I8(10), |
197 B(Star), R(0), | 226 B(Star), R(0), |
198 /* 46 S> */ B(LdaSmi), I8(3), | 227 /* 46 S> */ B(LdaSmi), I8(3), |
199 /* 55 E> */ B(ShiftLeft), R(0), U8(2), | 228 /* 55 E> */ B(ShiftLeft), R(0), U8(4), |
200 /* 61 S> */ B(Return), | 229 /* 61 S> */ B(Return), |
201 ] | 230 ] |
202 constant pool: [ | 231 constant pool: [ |
| 232 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
203 ] | 233 ] |
204 handlers: [ | 234 handlers: [ |
205 ] | 235 ] |
206 | 236 |
207 --- | 237 --- |
208 snippet: " | 238 snippet: " |
209 var x = 10; return x >> 3; | 239 var x = 10; return x >> 3; |
210 " | 240 " |
211 frame size: 1 | 241 frame size: 2 |
212 parameter count: 1 | 242 parameter count: 1 |
213 bytecode array length: 11 | 243 bytecode array length: 15 |
214 bytecodes: [ | 244 bytecodes: [ |
215 /* 30 E> */ B(StackCheck), | 245 /* 30 E> */ B(StackCheck), |
216 /* 42 S> */ B(LdaSmi), I8(10), | 246 /* 42 S> */ B(LdaConstant), U8(0), |
| 247 B(Star), R(1), |
| 248 B(LdaSmi), I8(10), |
217 B(Star), R(0), | 249 B(Star), R(0), |
218 /* 46 S> */ B(LdaSmi), I8(3), | 250 /* 46 S> */ B(LdaSmi), I8(3), |
219 /* 55 E> */ B(ShiftRight), R(0), U8(2), | 251 /* 55 E> */ B(ShiftRight), R(0), U8(4), |
220 /* 61 S> */ B(Return), | 252 /* 61 S> */ B(Return), |
221 ] | 253 ] |
222 constant pool: [ | 254 constant pool: [ |
| 255 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
223 ] | 256 ] |
224 handlers: [ | 257 handlers: [ |
225 ] | 258 ] |
226 | 259 |
227 --- | 260 --- |
228 snippet: " | 261 snippet: " |
229 var x = 10; return x >>> 3; | 262 var x = 10; return x >>> 3; |
230 " | 263 " |
231 frame size: 1 | 264 frame size: 2 |
232 parameter count: 1 | 265 parameter count: 1 |
233 bytecode array length: 11 | 266 bytecode array length: 15 |
234 bytecodes: [ | 267 bytecodes: [ |
235 /* 30 E> */ B(StackCheck), | 268 /* 30 E> */ B(StackCheck), |
236 /* 42 S> */ B(LdaSmi), I8(10), | 269 /* 42 S> */ B(LdaConstant), U8(0), |
| 270 B(Star), R(1), |
| 271 B(LdaSmi), I8(10), |
237 B(Star), R(0), | 272 B(Star), R(0), |
238 /* 46 S> */ B(LdaSmi), I8(3), | 273 /* 46 S> */ B(LdaSmi), I8(3), |
239 /* 55 E> */ B(ShiftRightLogical), R(0), U8(2), | 274 /* 55 E> */ B(ShiftRightLogical), R(0), U8(4), |
240 /* 62 S> */ B(Return), | 275 /* 62 S> */ B(Return), |
241 ] | 276 ] |
242 constant pool: [ | 277 constant pool: [ |
| 278 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
243 ] | 279 ] |
244 handlers: [ | 280 handlers: [ |
245 ] | 281 ] |
246 | 282 |
247 --- | 283 --- |
248 snippet: " | 284 snippet: " |
249 var x = 0; return (x, 3); | 285 var x = 0; return (x, 3); |
250 " | 286 " |
251 frame size: 1 | 287 frame size: 2 |
252 parameter count: 1 | 288 parameter count: 1 |
253 bytecode array length: 7 | 289 bytecode array length: 11 |
254 bytecodes: [ | 290 bytecodes: [ |
255 /* 30 E> */ B(StackCheck), | 291 /* 30 E> */ B(StackCheck), |
256 /* 42 S> */ B(LdaZero), | 292 /* 42 S> */ B(LdaConstant), U8(0), |
| 293 B(Star), R(1), |
| 294 B(LdaZero), |
257 B(Star), R(0), | 295 B(Star), R(0), |
258 /* 45 S> */ B(LdaSmi), I8(3), | 296 /* 45 S> */ B(LdaSmi), I8(3), |
259 /* 60 S> */ B(Return), | 297 /* 60 S> */ B(Return), |
260 ] | 298 ] |
261 constant pool: [ | 299 constant pool: [ |
| 300 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
262 ] | 301 ] |
263 handlers: [ | 302 handlers: [ |
264 ] | 303 ] |
265 | 304 |
OLD | NEW |