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: mixed | 6 pool type: mixed |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return y; | 64 return y; |
65 " | 65 " |
66 frame size: 2 | 66 frame size: 2 |
67 parameter count: 1 | 67 parameter count: 1 |
68 bytecode array length: 48 | 68 bytecode array length: 48 |
69 bytecodes: [ | 69 bytecodes: [ |
70 /* 30 E> */ B(StackCheck), | 70 /* 30 E> */ B(StackCheck), |
71 /* 42 S> */ B(LdaZero), | 71 /* 42 S> */ B(LdaZero), |
72 B(Star), R(0), | 72 B(Star), R(0), |
73 /* 53 S> */ B(LdaSmi), U8(1), | 73 /* 53 S> */ B(LdaSmi), U8(1), |
74 /* 53 E> */ B(Star), R(1), | 74 B(Star), R(1), |
75 /* 65 S> */ B(LdaSmi), U8(10), | 75 /* 65 S> */ B(LdaSmi), U8(10), |
76 /* 65 E> */ B(TestLessThan), R(0), | 76 /* 65 E> */ B(TestLessThan), R(0), |
77 B(JumpIfFalse), U8(33), | 77 B(JumpIfFalse), U8(33), |
78 /* 56 E> */ B(StackCheck), | 78 /* 56 E> */ B(StackCheck), |
79 /* 75 S> */ B(LdaSmi), U8(12), | 79 /* 75 S> */ B(LdaSmi), U8(12), |
80 B(Mul), R(1), | 80 B(Mul), R(1), |
81 B(Star), R(1), | 81 B(Star), R(1), |
82 /* 89 S> */ B(LdaSmi), U8(1), | 82 /* 89 S> */ B(LdaSmi), U8(1), |
83 B(Add), R(0), | 83 B(Add), R(0), |
84 B(Star), R(0), | 84 B(Star), R(0), |
(...skipping 26 matching lines...) Expand all Loading... |
111 i = i + 1; | 111 i = i + 1; |
112 } | 112 } |
113 return i; | 113 return i; |
114 " | 114 " |
115 frame size: 1 | 115 frame size: 1 |
116 parameter count: 1 | 116 parameter count: 1 |
117 bytecode array length: 55 | 117 bytecode array length: 55 |
118 bytecodes: [ | 118 bytecodes: [ |
119 /* 30 E> */ B(StackCheck), | 119 /* 30 E> */ B(StackCheck), |
120 /* 42 S> */ B(LdaZero), | 120 /* 42 S> */ B(LdaZero), |
121 /* 42 E> */ B(Star), R(0), | 121 B(Star), R(0), |
122 /* 45 E> */ B(StackCheck), | 122 /* 45 E> */ B(StackCheck), |
123 /* 62 S> */ B(LdaZero), | 123 /* 62 S> */ B(LdaZero), |
124 /* 68 E> */ B(TestLessThan), R(0), | 124 /* 68 E> */ B(TestLessThan), R(0), |
125 B(JumpIfFalse), U8(4), | 125 B(JumpIfFalse), U8(4), |
126 /* 73 S> */ B(Jump), U8(40), | 126 /* 73 S> */ B(Jump), U8(40), |
127 /* 85 S> */ B(LdaSmi), U8(3), | 127 /* 85 S> */ B(LdaSmi), U8(3), |
128 /* 91 E> */ B(TestEqual), R(0), | 128 /* 91 E> */ B(TestEqual), R(0), |
129 B(JumpIfFalse), U8(4), | 129 B(JumpIfFalse), U8(4), |
130 /* 97 S> */ B(Jump), U8(34), | 130 /* 97 S> */ B(Jump), U8(34), |
131 /* 106 S> */ B(LdaSmi), U8(4), | 131 /* 106 S> */ B(LdaSmi), U8(4), |
132 /* 112 E> */ B(TestEqual), R(0), | 132 /* 112 E> */ B(TestEqual), R(0), |
133 B(JumpIfFalse), U8(4), | 133 B(JumpIfFalse), U8(4), |
134 /* 118 S> */ B(Jump), U8(26), | 134 /* 118 S> */ B(Jump), U8(26), |
135 /* 127 S> */ B(LdaSmi), U8(10), | 135 /* 127 S> */ B(LdaSmi), U8(10), |
136 /* 133 E> */ B(TestEqual), R(0), | 136 /* 133 E> */ B(TestEqual), R(0), |
137 B(JumpIfFalse), U8(4), | 137 B(JumpIfFalse), U8(4), |
138 /* 140 S> */ B(Jump), U8(16), | 138 /* 140 S> */ B(Jump), U8(16), |
139 /* 152 S> */ B(LdaSmi), U8(5), | 139 /* 152 S> */ B(LdaSmi), U8(5), |
140 /* 158 E> */ B(TestEqual), R(0), | 140 /* 158 E> */ B(TestEqual), R(0), |
141 B(JumpIfFalse), U8(4), | 141 B(JumpIfFalse), U8(4), |
142 /* 164 S> */ B(Jump), U8(10), | 142 /* 164 S> */ B(Jump), U8(10), |
143 /* 173 S> */ B(LdaSmi), U8(1), | 143 /* 173 S> */ B(LdaSmi), U8(1), |
144 B(Add), R(0), | 144 B(Add), R(0), |
145 /* 175 E> */ B(Star), R(0), | 145 B(Star), R(0), |
146 B(Jump), U8(-46), | 146 B(Jump), U8(-46), |
147 /* 186 S> */ B(Ldar), R(0), | 147 /* 186 S> */ B(Ldar), R(0), |
148 /* 196 S> */ B(Return), | 148 /* 196 S> */ B(Return), |
149 ] | 149 ] |
150 constant pool: [ | 150 constant pool: [ |
151 ] | 151 ] |
152 handlers: [ | 152 handlers: [ |
153 ] | 153 ] |
154 | 154 |
155 --- | 155 --- |
156 snippet: " | 156 snippet: " |
157 var i = 0; | 157 var i = 0; |
158 while (true) { | 158 while (true) { |
159 while (i < 3) { | 159 while (i < 3) { |
160 if (i == 2) break; | 160 if (i == 2) break; |
161 i = i + 1; | 161 i = i + 1; |
162 } | 162 } |
163 i = i + 1; | 163 i = i + 1; |
164 break; | 164 break; |
165 } | 165 } |
166 return i; | 166 return i; |
167 " | 167 " |
168 frame size: 1 | 168 frame size: 1 |
169 parameter count: 1 | 169 parameter count: 1 |
170 bytecode array length: 41 | 170 bytecode array length: 41 |
171 bytecodes: [ | 171 bytecodes: [ |
172 /* 30 E> */ B(StackCheck), | 172 /* 30 E> */ B(StackCheck), |
173 /* 42 S> */ B(LdaZero), | 173 /* 42 S> */ B(LdaZero), |
174 /* 42 E> */ B(Star), R(0), | 174 B(Star), R(0), |
175 /* 45 E> */ B(StackCheck), | 175 /* 45 E> */ B(StackCheck), |
176 /* 71 S> */ B(LdaSmi), U8(3), | 176 /* 71 S> */ B(LdaSmi), U8(3), |
177 /* 71 E> */ B(TestLessThan), R(0), | 177 /* 71 E> */ B(TestLessThan), R(0), |
178 B(JumpIfFalse), U8(19), | 178 B(JumpIfFalse), U8(19), |
179 /* 62 E> */ B(StackCheck), | 179 /* 62 E> */ B(StackCheck), |
180 /* 82 S> */ B(LdaSmi), U8(2), | 180 /* 82 S> */ B(LdaSmi), U8(2), |
181 /* 88 E> */ B(TestEqual), R(0), | 181 /* 88 E> */ B(TestEqual), R(0), |
182 B(JumpIfFalse), U8(4), | 182 B(JumpIfFalse), U8(4), |
183 /* 94 S> */ B(Jump), U8(10), | 183 /* 94 S> */ B(Jump), U8(10), |
184 /* 105 S> */ B(LdaSmi), U8(1), | 184 /* 105 S> */ B(LdaSmi), U8(1), |
185 B(Add), R(0), | 185 B(Add), R(0), |
186 /* 107 E> */ B(Star), R(0), | 186 B(Star), R(0), |
187 B(Jump), U8(-21), | 187 B(Jump), U8(-21), |
188 /* 122 S> */ B(LdaSmi), U8(1), | 188 /* 122 S> */ B(LdaSmi), U8(1), |
189 B(Add), R(0), | 189 B(Add), R(0), |
190 B(Star), R(0), | 190 B(Star), R(0), |
191 /* 135 S> */ B(Jump), U8(4), | 191 /* 135 S> */ B(Jump), U8(4), |
192 B(Jump), U8(-32), | 192 B(Jump), U8(-32), |
193 /* 144 S> */ B(Ldar), R(0), | 193 /* 144 S> */ B(Ldar), R(0), |
194 /* 154 S> */ B(Return), | 194 /* 154 S> */ B(Return), |
195 ] | 195 ] |
196 constant pool: [ | 196 constant pool: [ |
(...skipping 12 matching lines...) Expand all Loading... |
209 return y; | 209 return y; |
210 " | 210 " |
211 frame size: 2 | 211 frame size: 2 |
212 parameter count: 1 | 212 parameter count: 1 |
213 bytecode array length: 31 | 213 bytecode array length: 31 |
214 bytecodes: [ | 214 bytecodes: [ |
215 /* 30 E> */ B(StackCheck), | 215 /* 30 E> */ B(StackCheck), |
216 /* 42 S> */ B(LdaSmi), U8(10), | 216 /* 42 S> */ B(LdaSmi), U8(10), |
217 B(Star), R(0), | 217 B(Star), R(0), |
218 /* 54 S> */ B(LdaSmi), U8(1), | 218 /* 54 S> */ B(LdaSmi), U8(1), |
219 /* 54 E> */ B(Star), R(1), | 219 B(Star), R(1), |
220 /* 64 S> */ B(Ldar), R(0), | 220 /* 64 S> */ B(Ldar), R(0), |
221 B(JumpIfToBooleanFalse), U8(17), | 221 B(JumpIfToBooleanFalse), U8(17), |
222 /* 57 E> */ B(StackCheck), | 222 /* 57 E> */ B(StackCheck), |
223 /* 71 S> */ B(LdaSmi), U8(12), | 223 /* 71 S> */ B(LdaSmi), U8(12), |
224 B(Mul), R(1), | 224 B(Mul), R(1), |
225 B(Star), R(1), | 225 B(Star), R(1), |
226 /* 85 S> */ B(LdaSmi), U8(1), | 226 /* 85 S> */ B(LdaSmi), U8(1), |
227 B(Sub), R(0), | 227 B(Sub), R(0), |
228 /* 87 E> */ B(Star), R(0), | 228 B(Star), R(0), |
229 B(Jump), U8(-17), | 229 B(Jump), U8(-17), |
230 /* 98 S> */ B(Ldar), R(1), | 230 /* 98 S> */ B(Ldar), R(1), |
231 /* 108 S> */ B(Return), | 231 /* 108 S> */ B(Return), |
232 ] | 232 ] |
233 constant pool: [ | 233 constant pool: [ |
234 ] | 234 ] |
235 handlers: [ | 235 handlers: [ |
236 ] | 236 ] |
237 | 237 |
238 --- | 238 --- |
239 snippet: " | 239 snippet: " |
240 var x = 0; var y = 1; | 240 var x = 0; var y = 1; |
241 do { | 241 do { |
242 y = y * 10; | 242 y = y * 10; |
243 if (x == 5) break; | 243 if (x == 5) break; |
244 if (x == 6) continue; | 244 if (x == 6) continue; |
245 x = x + 1; | 245 x = x + 1; |
246 } while (x < 10); | 246 } while (x < 10); |
247 return y; | 247 return y; |
248 " | 248 " |
249 frame size: 2 | 249 frame size: 2 |
250 parameter count: 1 | 250 parameter count: 1 |
251 bytecode array length: 46 | 251 bytecode array length: 46 |
252 bytecodes: [ | 252 bytecodes: [ |
253 /* 30 E> */ B(StackCheck), | 253 /* 30 E> */ B(StackCheck), |
254 /* 42 S> */ B(LdaZero), | 254 /* 42 S> */ B(LdaZero), |
255 B(Star), R(0), | 255 B(Star), R(0), |
256 /* 53 S> */ B(LdaSmi), U8(1), | 256 /* 53 S> */ B(LdaSmi), U8(1), |
257 /* 53 E> */ B(Star), R(1), | 257 B(Star), R(1), |
258 /* 56 E> */ B(StackCheck), | 258 /* 56 E> */ B(StackCheck), |
259 /* 63 S> */ B(LdaSmi), U8(10), | 259 /* 63 S> */ B(LdaSmi), U8(10), |
260 B(Mul), R(1), | 260 B(Mul), R(1), |
261 B(Star), R(1), | 261 B(Star), R(1), |
262 /* 77 S> */ B(LdaSmi), U8(5), | 262 /* 77 S> */ B(LdaSmi), U8(5), |
263 /* 83 E> */ B(TestEqual), R(0), | 263 /* 83 E> */ B(TestEqual), R(0), |
264 B(JumpIfFalse), U8(4), | 264 B(JumpIfFalse), U8(4), |
265 /* 89 S> */ B(Jump), U8(22), | 265 /* 89 S> */ B(Jump), U8(22), |
266 /* 98 S> */ B(LdaSmi), U8(6), | 266 /* 98 S> */ B(LdaSmi), U8(6), |
267 /* 104 E> */ B(TestEqual), R(0), | 267 /* 104 E> */ B(TestEqual), R(0), |
268 B(JumpIfFalse), U8(4), | 268 B(JumpIfFalse), U8(4), |
269 /* 110 S> */ B(Jump), U8(8), | 269 /* 110 S> */ B(Jump), U8(8), |
270 /* 122 S> */ B(LdaSmi), U8(1), | 270 /* 122 S> */ B(LdaSmi), U8(1), |
271 B(Add), R(0), | 271 B(Add), R(0), |
272 /* 124 E> */ B(Star), R(0), | 272 B(Star), R(0), |
273 /* 144 S> */ B(LdaSmi), U8(10), | 273 /* 144 S> */ B(LdaSmi), U8(10), |
274 /* 144 E> */ B(TestLessThan), R(0), | 274 /* 144 E> */ B(TestLessThan), R(0), |
275 B(JumpIfTrue), U8(-33), | 275 B(JumpIfTrue), U8(-33), |
276 /* 151 S> */ B(Ldar), R(1), | 276 /* 151 S> */ B(Ldar), R(1), |
277 /* 161 S> */ B(Return), | 277 /* 161 S> */ B(Return), |
278 ] | 278 ] |
279 constant pool: [ | 279 constant pool: [ |
280 ] | 280 ] |
281 handlers: [ | 281 handlers: [ |
282 ] | 282 ] |
283 | 283 |
284 --- | 284 --- |
285 snippet: " | 285 snippet: " |
286 var x = 10; | 286 var x = 10; |
287 var y = 1; | 287 var y = 1; |
288 do { | 288 do { |
289 y = y * 12; | 289 y = y * 12; |
290 x = x - 1; | 290 x = x - 1; |
291 } while (x); | 291 } while (x); |
292 return y; | 292 return y; |
293 " | 293 " |
294 frame size: 2 | 294 frame size: 2 |
295 parameter count: 1 | 295 parameter count: 1 |
296 bytecode array length: 29 | 296 bytecode array length: 29 |
297 bytecodes: [ | 297 bytecodes: [ |
298 /* 30 E> */ B(StackCheck), | 298 /* 30 E> */ B(StackCheck), |
299 /* 42 S> */ B(LdaSmi), U8(10), | 299 /* 42 S> */ B(LdaSmi), U8(10), |
300 B(Star), R(0), | 300 B(Star), R(0), |
301 /* 54 S> */ B(LdaSmi), U8(1), | 301 /* 54 S> */ B(LdaSmi), U8(1), |
302 /* 54 E> */ B(Star), R(1), | 302 B(Star), R(1), |
303 /* 57 E> */ B(StackCheck), | 303 /* 57 E> */ B(StackCheck), |
304 /* 64 S> */ B(LdaSmi), U8(12), | 304 /* 64 S> */ B(LdaSmi), U8(12), |
305 B(Mul), R(1), | 305 B(Mul), R(1), |
306 B(Star), R(1), | 306 B(Star), R(1), |
307 /* 78 S> */ B(LdaSmi), U8(1), | 307 /* 78 S> */ B(LdaSmi), U8(1), |
308 B(Sub), R(0), | 308 B(Sub), R(0), |
309 /* 80 E> */ B(Star), R(0), | 309 B(Star), R(0), |
310 /* 98 S> */ B(Ldar), R(0), | 310 /* 98 S> */ B(Ldar), R(0), |
311 B(JumpIfToBooleanTrue), U8(-15), | 311 B(JumpIfToBooleanTrue), U8(-15), |
312 /* 102 S> */ B(Ldar), R(1), | 312 /* 102 S> */ B(Ldar), R(1), |
313 /* 112 S> */ B(Return), | 313 /* 112 S> */ B(Return), |
314 ] | 314 ] |
315 constant pool: [ | 315 constant pool: [ |
316 ] | 316 ] |
317 handlers: [ | 317 handlers: [ |
318 ] | 318 ] |
319 | 319 |
320 --- | 320 --- |
321 snippet: " | 321 snippet: " |
322 var x = 0; var y = 1; | 322 var x = 0; var y = 1; |
323 do { | 323 do { |
324 y = y * 10; | 324 y = y * 10; |
325 if (x == 5) break; | 325 if (x == 5) break; |
326 x = x + 1; | 326 x = x + 1; |
327 if (x == 6) continue; | 327 if (x == 6) continue; |
328 } while (false); | 328 } while (false); |
329 return y; | 329 return y; |
330 " | 330 " |
331 frame size: 2 | 331 frame size: 2 |
332 parameter count: 1 | 332 parameter count: 1 |
333 bytecode array length: 40 | 333 bytecode array length: 40 |
334 bytecodes: [ | 334 bytecodes: [ |
335 /* 30 E> */ B(StackCheck), | 335 /* 30 E> */ B(StackCheck), |
336 /* 42 S> */ B(LdaZero), | 336 /* 42 S> */ B(LdaZero), |
337 B(Star), R(0), | 337 B(Star), R(0), |
338 /* 53 S> */ B(LdaSmi), U8(1), | 338 /* 53 S> */ B(LdaSmi), U8(1), |
339 /* 53 E> */ B(Star), R(1), | 339 B(Star), R(1), |
340 /* 56 E> */ B(StackCheck), | 340 /* 56 E> */ B(StackCheck), |
341 /* 63 S> */ B(LdaSmi), U8(10), | 341 /* 63 S> */ B(LdaSmi), U8(10), |
342 B(Mul), R(1), | 342 B(Mul), R(1), |
343 B(Star), R(1), | 343 B(Star), R(1), |
344 /* 77 S> */ B(LdaSmi), U8(5), | 344 /* 77 S> */ B(LdaSmi), U8(5), |
345 /* 83 E> */ B(TestEqual), R(0), | 345 /* 83 E> */ B(TestEqual), R(0), |
346 B(JumpIfFalse), U8(4), | 346 B(JumpIfFalse), U8(4), |
347 /* 89 S> */ B(Jump), U8(16), | 347 /* 89 S> */ B(Jump), U8(16), |
348 /* 98 S> */ B(LdaSmi), U8(1), | 348 /* 98 S> */ B(LdaSmi), U8(1), |
349 B(Add), R(0), | 349 B(Add), R(0), |
(...skipping 22 matching lines...) Expand all Loading... |
372 return y; | 372 return y; |
373 " | 373 " |
374 frame size: 2 | 374 frame size: 2 |
375 parameter count: 1 | 375 parameter count: 1 |
376 bytecode array length: 42 | 376 bytecode array length: 42 |
377 bytecodes: [ | 377 bytecodes: [ |
378 /* 30 E> */ B(StackCheck), | 378 /* 30 E> */ B(StackCheck), |
379 /* 42 S> */ B(LdaZero), | 379 /* 42 S> */ B(LdaZero), |
380 B(Star), R(0), | 380 B(Star), R(0), |
381 /* 53 S> */ B(LdaSmi), U8(1), | 381 /* 53 S> */ B(LdaSmi), U8(1), |
382 /* 53 E> */ B(Star), R(1), | 382 B(Star), R(1), |
383 /* 56 E> */ B(StackCheck), | 383 /* 56 E> */ B(StackCheck), |
384 /* 63 S> */ B(LdaSmi), U8(10), | 384 /* 63 S> */ B(LdaSmi), U8(10), |
385 B(Mul), R(1), | 385 B(Mul), R(1), |
386 B(Star), R(1), | 386 B(Star), R(1), |
387 /* 77 S> */ B(LdaSmi), U8(5), | 387 /* 77 S> */ B(LdaSmi), U8(5), |
388 /* 83 E> */ B(TestEqual), R(0), | 388 /* 83 E> */ B(TestEqual), R(0), |
389 B(JumpIfFalse), U8(4), | 389 B(JumpIfFalse), U8(4), |
390 /* 89 S> */ B(Jump), U8(18), | 390 /* 89 S> */ B(Jump), U8(18), |
391 /* 98 S> */ B(LdaSmi), U8(1), | 391 /* 98 S> */ B(LdaSmi), U8(1), |
392 B(Add), R(0), | 392 B(Add), R(0), |
(...skipping 19 matching lines...) Expand all Loading... |
412 if (x == 2) continue; | 412 if (x == 2) continue; |
413 x = x + 1; | 413 x = x + 1; |
414 } | 414 } |
415 " | 415 " |
416 frame size: 1 | 416 frame size: 1 |
417 parameter count: 1 | 417 parameter count: 1 |
418 bytecode array length: 31 | 418 bytecode array length: 31 |
419 bytecodes: [ | 419 bytecodes: [ |
420 /* 30 E> */ B(StackCheck), | 420 /* 30 E> */ B(StackCheck), |
421 /* 42 S> */ B(LdaZero), | 421 /* 42 S> */ B(LdaZero), |
422 /* 42 E> */ B(Star), R(0), | 422 B(Star), R(0), |
423 /* 45 E> */ B(StackCheck), | 423 /* 45 E> */ B(StackCheck), |
424 /* 58 S> */ B(LdaSmi), U8(1), | 424 /* 58 S> */ B(LdaSmi), U8(1), |
425 /* 64 E> */ B(TestEqual), R(0), | 425 /* 64 E> */ B(TestEqual), R(0), |
426 B(JumpIfFalse), U8(4), | 426 B(JumpIfFalse), U8(4), |
427 /* 70 S> */ B(Jump), U8(18), | 427 /* 70 S> */ B(Jump), U8(18), |
428 /* 79 S> */ B(LdaSmi), U8(2), | 428 /* 79 S> */ B(LdaSmi), U8(2), |
429 /* 85 E> */ B(TestEqual), R(0), | 429 /* 85 E> */ B(TestEqual), R(0), |
430 B(JumpIfFalse), U8(4), | 430 B(JumpIfFalse), U8(4), |
431 /* 91 S> */ B(Jump), U8(8), | 431 /* 91 S> */ B(Jump), U8(8), |
432 /* 103 S> */ B(LdaSmi), U8(1), | 432 /* 103 S> */ B(LdaSmi), U8(1), |
433 B(Add), R(0), | 433 B(Add), R(0), |
434 /* 105 E> */ B(Star), R(0), | 434 B(Star), R(0), |
435 B(Jump), U8(-23), | 435 B(Jump), U8(-23), |
436 B(LdaUndefined), | 436 B(LdaUndefined), |
437 /* 116 S> */ B(Return), | 437 /* 116 S> */ B(Return), |
438 ] | 438 ] |
439 constant pool: [ | 439 constant pool: [ |
440 ] | 440 ] |
441 handlers: [ | 441 handlers: [ |
442 ] | 442 ] |
443 | 443 |
444 --- | 444 --- |
445 snippet: " | 445 snippet: " |
446 for (var x = 0;;) { | 446 for (var x = 0;;) { |
447 if (x == 1) break; | 447 if (x == 1) break; |
448 if (x == 2) continue; | 448 if (x == 2) continue; |
449 x = x + 1; | 449 x = x + 1; |
450 } | 450 } |
451 " | 451 " |
452 frame size: 1 | 452 frame size: 1 |
453 parameter count: 1 | 453 parameter count: 1 |
454 bytecode array length: 31 | 454 bytecode array length: 31 |
455 bytecodes: [ | 455 bytecodes: [ |
456 /* 30 E> */ B(StackCheck), | 456 /* 30 E> */ B(StackCheck), |
457 /* 47 S> */ B(LdaZero), | 457 /* 47 S> */ B(LdaZero), |
458 /* 47 E> */ B(Star), R(0), | 458 B(Star), R(0), |
459 /* 34 E> */ B(StackCheck), | 459 /* 34 E> */ B(StackCheck), |
460 /* 56 S> */ B(LdaSmi), U8(1), | 460 /* 56 S> */ B(LdaSmi), U8(1), |
461 /* 62 E> */ B(TestEqual), R(0), | 461 /* 62 E> */ B(TestEqual), R(0), |
462 B(JumpIfFalse), U8(4), | 462 B(JumpIfFalse), U8(4), |
463 /* 68 S> */ B(Jump), U8(18), | 463 /* 68 S> */ B(Jump), U8(18), |
464 /* 77 S> */ B(LdaSmi), U8(2), | 464 /* 77 S> */ B(LdaSmi), U8(2), |
465 /* 83 E> */ B(TestEqual), R(0), | 465 /* 83 E> */ B(TestEqual), R(0), |
466 B(JumpIfFalse), U8(4), | 466 B(JumpIfFalse), U8(4), |
467 /* 89 S> */ B(Jump), U8(8), | 467 /* 89 S> */ B(Jump), U8(8), |
468 /* 101 S> */ B(LdaSmi), U8(1), | 468 /* 101 S> */ B(LdaSmi), U8(1), |
469 B(Add), R(0), | 469 B(Add), R(0), |
470 /* 103 E> */ B(Star), R(0), | 470 B(Star), R(0), |
471 B(Jump), U8(-23), | 471 B(Jump), U8(-23), |
472 B(LdaUndefined), | 472 B(LdaUndefined), |
473 /* 114 S> */ B(Return), | 473 /* 114 S> */ B(Return), |
474 ] | 474 ] |
475 constant pool: [ | 475 constant pool: [ |
476 ] | 476 ] |
477 handlers: [ | 477 handlers: [ |
478 ] | 478 ] |
479 | 479 |
480 --- | 480 --- |
481 snippet: " | 481 snippet: " |
482 var x = 0; | 482 var x = 0; |
483 for (;; x = x + 1) { | 483 for (;; x = x + 1) { |
484 if (x == 1) break; | 484 if (x == 1) break; |
485 if (x == 2) continue; | 485 if (x == 2) continue; |
486 } | 486 } |
487 " | 487 " |
488 frame size: 1 | 488 frame size: 1 |
489 parameter count: 1 | 489 parameter count: 1 |
490 bytecode array length: 31 | 490 bytecode array length: 31 |
491 bytecodes: [ | 491 bytecodes: [ |
492 /* 30 E> */ B(StackCheck), | 492 /* 30 E> */ B(StackCheck), |
493 /* 42 S> */ B(LdaZero), | 493 /* 42 S> */ B(LdaZero), |
494 /* 42 E> */ B(Star), R(0), | 494 B(Star), R(0), |
495 /* 45 E> */ B(StackCheck), | 495 /* 45 E> */ B(StackCheck), |
496 /* 68 S> */ B(LdaSmi), U8(1), | 496 /* 68 S> */ B(LdaSmi), U8(1), |
497 /* 74 E> */ B(TestEqual), R(0), | 497 /* 74 E> */ B(TestEqual), R(0), |
498 B(JumpIfFalse), U8(4), | 498 B(JumpIfFalse), U8(4), |
499 /* 80 S> */ B(Jump), U8(18), | 499 /* 80 S> */ B(Jump), U8(18), |
500 /* 89 S> */ B(LdaSmi), U8(2), | 500 /* 89 S> */ B(LdaSmi), U8(2), |
501 /* 95 E> */ B(TestEqual), R(0), | 501 /* 95 E> */ B(TestEqual), R(0), |
502 B(JumpIfFalse), U8(4), | 502 B(JumpIfFalse), U8(4), |
503 /* 101 S> */ B(Jump), U8(2), | 503 /* 101 S> */ B(Jump), U8(2), |
504 /* 55 S> */ B(LdaSmi), U8(1), | 504 /* 55 S> */ B(LdaSmi), U8(1), |
505 B(Add), R(0), | 505 B(Add), R(0), |
506 /* 55 E> */ B(Star), R(0), | 506 B(Star), R(0), |
507 B(Jump), U8(-23), | 507 B(Jump), U8(-23), |
508 B(LdaUndefined), | 508 B(LdaUndefined), |
509 /* 113 S> */ B(Return), | 509 /* 113 S> */ B(Return), |
510 ] | 510 ] |
511 constant pool: [ | 511 constant pool: [ |
512 ] | 512 ] |
513 handlers: [ | 513 handlers: [ |
514 ] | 514 ] |
515 | 515 |
516 --- | 516 --- |
517 snippet: " | 517 snippet: " |
518 for (var x = 0;; x = x + 1) { | 518 for (var x = 0;; x = x + 1) { |
519 if (x == 1) break; | 519 if (x == 1) break; |
520 if (x == 2) continue; | 520 if (x == 2) continue; |
521 } | 521 } |
522 " | 522 " |
523 frame size: 1 | 523 frame size: 1 |
524 parameter count: 1 | 524 parameter count: 1 |
525 bytecode array length: 31 | 525 bytecode array length: 31 |
526 bytecodes: [ | 526 bytecodes: [ |
527 /* 30 E> */ B(StackCheck), | 527 /* 30 E> */ B(StackCheck), |
528 /* 47 S> */ B(LdaZero), | 528 /* 47 S> */ B(LdaZero), |
529 /* 47 E> */ B(Star), R(0), | 529 B(Star), R(0), |
530 /* 34 E> */ B(StackCheck), | 530 /* 34 E> */ B(StackCheck), |
531 /* 66 S> */ B(LdaSmi), U8(1), | 531 /* 66 S> */ B(LdaSmi), U8(1), |
532 /* 72 E> */ B(TestEqual), R(0), | 532 /* 72 E> */ B(TestEqual), R(0), |
533 B(JumpIfFalse), U8(4), | 533 B(JumpIfFalse), U8(4), |
534 /* 78 S> */ B(Jump), U8(18), | 534 /* 78 S> */ B(Jump), U8(18), |
535 /* 87 S> */ B(LdaSmi), U8(2), | 535 /* 87 S> */ B(LdaSmi), U8(2), |
536 /* 93 E> */ B(TestEqual), R(0), | 536 /* 93 E> */ B(TestEqual), R(0), |
537 B(JumpIfFalse), U8(4), | 537 B(JumpIfFalse), U8(4), |
538 /* 99 S> */ B(Jump), U8(2), | 538 /* 99 S> */ B(Jump), U8(2), |
539 /* 53 S> */ B(LdaSmi), U8(1), | 539 /* 53 S> */ B(LdaSmi), U8(1), |
540 B(Add), R(0), | 540 B(Add), R(0), |
541 /* 53 E> */ B(Star), R(0), | 541 B(Star), R(0), |
542 B(Jump), U8(-23), | 542 B(Jump), U8(-23), |
543 B(LdaUndefined), | 543 B(LdaUndefined), |
544 /* 111 S> */ B(Return), | 544 /* 111 S> */ B(Return), |
545 ] | 545 ] |
546 constant pool: [ | 546 constant pool: [ |
547 ] | 547 ] |
548 handlers: [ | 548 handlers: [ |
549 ] | 549 ] |
550 | 550 |
551 --- | 551 --- |
552 snippet: " | 552 snippet: " |
553 var u = 0; | 553 var u = 0; |
554 for (var i = 0; i < 100; i = i + 1) { | 554 for (var i = 0; i < 100; i = i + 1) { |
555 u = u + 1; | 555 u = u + 1; |
556 continue; | 556 continue; |
557 } | 557 } |
558 " | 558 " |
559 frame size: 2 | 559 frame size: 2 |
560 parameter count: 1 | 560 parameter count: 1 |
561 bytecode array length: 32 | 561 bytecode array length: 32 |
562 bytecodes: [ | 562 bytecodes: [ |
563 /* 30 E> */ B(StackCheck), | 563 /* 30 E> */ B(StackCheck), |
564 /* 42 S> */ B(LdaZero), | 564 /* 42 S> */ B(LdaZero), |
565 B(Star), R(0), | 565 B(Star), R(0), |
566 /* 58 S> */ B(LdaZero), | 566 /* 58 S> */ B(LdaZero), |
567 /* 58 E> */ B(Star), R(1), | 567 B(Star), R(1), |
568 /* 63 S> */ B(LdaSmi), U8(100), | 568 /* 63 S> */ B(LdaSmi), U8(100), |
569 /* 63 E> */ B(TestLessThan), R(1), | 569 /* 63 E> */ B(TestLessThan), R(1), |
570 B(JumpIfFalse), U8(19), | 570 B(JumpIfFalse), U8(19), |
571 /* 45 E> */ B(StackCheck), | 571 /* 45 E> */ B(StackCheck), |
572 /* 85 S> */ B(LdaSmi), U8(1), | 572 /* 85 S> */ B(LdaSmi), U8(1), |
573 B(Add), R(0), | 573 B(Add), R(0), |
574 B(Star), R(0), | 574 B(Star), R(0), |
575 /* 98 S> */ B(Jump), U8(2), | 575 /* 98 S> */ B(Jump), U8(2), |
576 /* 72 S> */ B(LdaSmi), U8(1), | 576 /* 72 S> */ B(LdaSmi), U8(1), |
577 B(Add), R(1), | 577 B(Add), R(1), |
578 /* 72 E> */ B(Star), R(1), | 578 B(Star), R(1), |
579 B(Jump), U8(-21), | 579 B(Jump), U8(-21), |
580 B(LdaUndefined), | 580 B(LdaUndefined), |
581 /* 110 S> */ B(Return), | 581 /* 110 S> */ B(Return), |
582 ] | 582 ] |
583 constant pool: [ | 583 constant pool: [ |
584 ] | 584 ] |
585 handlers: [ | 585 handlers: [ |
586 ] | 586 ] |
587 | 587 |
588 --- | 588 --- |
589 snippet: " | 589 snippet: " |
590 var y = 1; | 590 var y = 1; |
591 for (var x = 10; x; --x) { | 591 for (var x = 10; x; --x) { |
592 y = y * 12; | 592 y = y * 12; |
593 } | 593 } |
594 return y; | 594 return y; |
595 " | 595 " |
596 frame size: 2 | 596 frame size: 2 |
597 parameter count: 1 | 597 parameter count: 1 |
598 bytecode array length: 30 | 598 bytecode array length: 30 |
599 bytecodes: [ | 599 bytecodes: [ |
600 /* 30 E> */ B(StackCheck), | 600 /* 30 E> */ B(StackCheck), |
601 /* 42 S> */ B(LdaSmi), U8(1), | 601 /* 42 S> */ B(LdaSmi), U8(1), |
602 B(Star), R(0), | 602 B(Star), R(0), |
603 /* 58 S> */ B(LdaSmi), U8(10), | 603 /* 58 S> */ B(LdaSmi), U8(10), |
604 /* 58 E> */ B(Star), R(1), | 604 B(Star), R(1), |
605 /* 62 S> */ B(Ldar), R(1), | 605 /* 62 S> */ B(Ldar), R(1), |
606 B(JumpIfToBooleanFalse), U8(16), | 606 B(JumpIfToBooleanFalse), U8(16), |
607 /* 45 E> */ B(StackCheck), | 607 /* 45 E> */ B(StackCheck), |
608 /* 74 S> */ B(LdaSmi), U8(12), | 608 /* 74 S> */ B(LdaSmi), U8(12), |
609 B(Mul), R(0), | 609 B(Mul), R(0), |
610 /* 76 E> */ B(Star), R(0), | 610 B(Star), R(0), |
611 /* 67 S> */ B(Ldar), R(1), | 611 /* 67 S> */ B(Ldar), R(1), |
612 B(Dec), | 612 B(Dec), |
613 /* 67 E> */ B(Star), R(1), | 613 B(Star), R(1), |
614 B(Jump), U8(-16), | 614 B(Jump), U8(-16), |
615 /* 88 S> */ B(Ldar), R(0), | 615 /* 88 S> */ B(Ldar), R(0), |
616 /* 98 S> */ B(Return), | 616 /* 98 S> */ B(Return), |
617 ] | 617 ] |
618 constant pool: [ | 618 constant pool: [ |
619 ] | 619 ] |
620 handlers: [ | 620 handlers: [ |
621 ] | 621 ] |
622 | 622 |
623 --- | 623 --- |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 return x; | 655 return x; |
656 " | 656 " |
657 frame size: 2 | 657 frame size: 2 |
658 parameter count: 1 | 658 parameter count: 1 |
659 bytecode array length: 32 | 659 bytecode array length: 32 |
660 bytecodes: [ | 660 bytecodes: [ |
661 /* 30 E> */ B(StackCheck), | 661 /* 30 E> */ B(StackCheck), |
662 /* 42 S> */ B(LdaZero), | 662 /* 42 S> */ B(LdaZero), |
663 B(Star), R(0), | 663 B(Star), R(0), |
664 /* 58 S> */ B(LdaZero), | 664 /* 58 S> */ B(LdaZero), |
665 /* 58 E> */ B(Star), R(1), | 665 B(Star), R(1), |
666 /* 45 E> */ B(StackCheck), | 666 /* 45 E> */ B(StackCheck), |
667 /* 76 S> */ B(LdaSmi), U8(1), | 667 /* 76 S> */ B(LdaSmi), U8(1), |
668 B(Add), R(0), | 668 B(Add), R(0), |
669 B(Star), R(0), | 669 B(Star), R(0), |
670 /* 89 S> */ B(LdaSmi), U8(20), | 670 /* 89 S> */ B(LdaSmi), U8(20), |
671 /* 95 E> */ B(TestEqual), R(0), | 671 /* 95 E> */ B(TestEqual), R(0), |
672 B(JumpIfFalse), U8(4), | 672 B(JumpIfFalse), U8(4), |
673 /* 102 S> */ B(Jump), U8(9), | 673 /* 102 S> */ B(Jump), U8(9), |
674 /* 69 S> */ B(Ldar), R(1), | 674 /* 69 S> */ B(Ldar), R(1), |
675 B(Inc), | 675 B(Inc), |
676 /* 69 E> */ B(Star), R(1), | 676 B(Star), R(1), |
677 B(Jump), U8(-20), | 677 B(Jump), U8(-20), |
678 /* 112 S> */ B(Ldar), R(0), | 678 /* 112 S> */ B(Ldar), R(0), |
679 /* 122 S> */ B(Return), | 679 /* 122 S> */ B(Return), |
680 ] | 680 ] |
681 constant pool: [ | 681 constant pool: [ |
682 ] | 682 ] |
683 handlers: [ | 683 handlers: [ |
684 ] | 684 ] |
685 | 685 |
686 --- | 686 --- |
687 snippet: " | 687 snippet: " |
688 var a = 0; | 688 var a = 0; |
689 while (a) { | 689 while (a) { |
690 { | 690 { |
691 let z = 1; | 691 let z = 1; |
692 function f() { z = 2; } | 692 function f() { z = 2; } |
693 if (z) continue; | 693 if (z) continue; |
694 z++; | 694 z++; |
695 } | 695 } |
696 } | 696 } |
697 " | 697 " |
698 frame size: 7 | 698 frame size: 7 |
699 parameter count: 1 | 699 parameter count: 1 |
700 bytecode array length: 119 | 700 bytecode array length: 119 |
701 bytecodes: [ | 701 bytecodes: [ |
702 /* 30 E> */ B(StackCheck), | 702 /* 30 E> */ B(StackCheck), |
703 /* 42 S> */ B(LdaZero), | 703 /* 42 S> */ B(LdaZero), |
704 /* 42 E> */ B(Star), R(1), | 704 B(Star), R(1), |
705 /* 52 S> */ B(Ldar), R(1), | 705 /* 52 S> */ B(Ldar), R(1), |
706 B(JumpIfToBooleanFalse), U8(111), | 706 B(JumpIfToBooleanFalse), U8(111), |
707 /* 45 E> */ B(StackCheck), | 707 /* 45 E> */ B(StackCheck), |
708 B(LdaConstant), U8(0), | 708 B(LdaConstant), U8(0), |
709 B(Star), R(4), | 709 B(Star), R(4), |
710 B(Mov), R(closure), R(5), | 710 B(Mov), R(closure), R(5), |
711 B(CallRuntime), U16(Runtime::kPushBlockContext), R(4), U8(2), | 711 B(CallRuntime), U16(Runtime::kPushBlockContext), R(4), U8(2), |
712 B(PushContext), R(3), | 712 B(PushContext), R(3), |
713 B(LdaTheHole), | 713 B(LdaTheHole), |
714 B(StaContextSlot), R(context), U8(4), | 714 B(StaContextSlot), R(context), U8(4), |
(...skipping 17 matching lines...) Expand all Loading... |
732 B(PopContext), R(3), | 732 B(PopContext), R(3), |
733 B(Jump), U8(43), | 733 B(Jump), U8(43), |
734 /* 126 S> */ B(LdaContextSlot), R(context), U8(4), | 734 /* 126 S> */ B(LdaContextSlot), R(context), U8(4), |
735 B(JumpIfNotHole), U8(11), | 735 B(JumpIfNotHole), U8(11), |
736 B(LdaConstant), U8(3), | 736 B(LdaConstant), U8(3), |
737 B(Star), R(4), | 737 B(Star), R(4), |
738 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 738 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
739 B(ToNumber), | 739 B(ToNumber), |
740 B(Star), R(4), | 740 B(Star), R(4), |
741 B(Inc), | 741 B(Inc), |
742 /* 127 E> */ B(Star), R(5), | 742 B(Star), R(5), |
743 B(LdaContextSlot), R(context), U8(4), | 743 /* 127 E> */ B(LdaContextSlot), R(context), U8(4), |
744 B(JumpIfNotHole), U8(11), | 744 B(JumpIfNotHole), U8(11), |
745 B(LdaConstant), U8(3), | 745 B(LdaConstant), U8(3), |
746 B(Star), R(6), | 746 B(Star), R(6), |
747 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), | 747 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), |
748 B(Ldar), R(5), | 748 B(Ldar), R(5), |
749 B(StaContextSlot), R(context), U8(4), | 749 B(StaContextSlot), R(context), U8(4), |
750 B(PopContext), R(3), | 750 B(PopContext), R(3), |
751 B(Jump), U8(-111), | 751 B(Jump), U8(-111), |
752 B(LdaUndefined), | 752 B(LdaUndefined), |
753 /* 137 S> */ B(Return), | 753 /* 137 S> */ B(Return), |
754 ] | 754 ] |
755 constant pool: [ | 755 constant pool: [ |
756 InstanceType::FIXED_ARRAY_TYPE, | 756 InstanceType::FIXED_ARRAY_TYPE, |
757 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 757 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
758 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 758 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
759 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 759 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
760 ] | 760 ] |
761 handlers: [ | 761 handlers: [ |
762 ] | 762 ] |
763 | 763 |
OLD | NEW |