Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/BasicLoops.golden

Issue 1998203002: [Interpreter] Preserve source positions in peephole optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nitlet on last patch set. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 ---
11 snippet: " 11 snippet: "
12 var x = 0; 12 var x = 0;
13 while (false) { x = 99; break; continue; } 13 while (false) { x = 99; break; continue; }
14 return x; 14 return x;
15 " 15 "
16 frame size: 1 16 frame size: 1
17 parameter count: 1 17 parameter count: 1
18 bytecode array length: 5 18 bytecode array length: 6
19 bytecodes: [ 19 bytecodes: [
20 /* 30 E> */ B(StackCheck), 20 /* 30 E> */ B(StackCheck),
21 /* 42 S> */ B(LdaZero), 21 /* 42 S> */ B(LdaZero),
22 /* 42 E> */ B(Star), R(0), 22 B(Star), R(0),
23 /* 88 S> */ B(Nop),
23 /* 98 S> */ B(Return), 24 /* 98 S> */ B(Return),
24 ] 25 ]
25 constant pool: [ 26 constant pool: [
26 ] 27 ]
27 handlers: [ 28 handlers: [
28 ] 29 ]
29 30
30 --- 31 ---
31 snippet: " 32 snippet: "
32 var x = 0; 33 var x = 0;
33 while (false) { 34 while (false) {
34 x = x + 1; 35 x = x + 1;
35 }; 36 };
36 return x; 37 return x;
37 " 38 "
38 frame size: 1 39 frame size: 1
39 parameter count: 1 40 parameter count: 1
40 bytecode array length: 5 41 bytecode array length: 6
41 bytecodes: [ 42 bytecodes: [
42 /* 30 E> */ B(StackCheck), 43 /* 30 E> */ B(StackCheck),
43 /* 42 S> */ B(LdaZero), 44 /* 42 S> */ B(LdaZero),
44 /* 42 E> */ B(Star), R(0), 45 B(Star), R(0),
46 /* 77 S> */ B(Nop),
45 /* 87 S> */ B(Return), 47 /* 87 S> */ B(Return),
46 ] 48 ]
47 constant pool: [ 49 constant pool: [
48 ] 50 ]
49 handlers: [ 51 handlers: [
50 ] 52 ]
51 53
52 --- 54 ---
53 snippet: " 55 snippet: "
54 var x = 0; 56 var x = 0;
55 var y = 1; 57 var y = 1;
56 while (x < 10) { 58 while (x < 10) {
57 y = y * 12; 59 y = y * 12;
58 x = x + 1; 60 x = x + 1;
59 if (x == 3) continue; 61 if (x == 3) continue;
60 if (x == 4) break; 62 if (x == 4) break;
61 } 63 }
62 return y; 64 return y;
63 " 65 "
64 frame size: 3 66 frame size: 3
65 parameter count: 1 67 parameter count: 1
66 bytecode array length: 66 68 bytecode array length: 66
67 bytecodes: [ 69 bytecodes: [
68 /* 30 E> */ B(StackCheck), 70 /* 30 E> */ B(StackCheck),
69 /* 42 S> */ B(LdaZero), 71 /* 42 S> */ B(LdaZero),
70 /* 42 E> */ B(Star), R(0), 72 B(Star), R(0),
71 /* 53 S> */ B(LdaSmi), U8(1), 73 /* 53 S> */ B(LdaSmi), U8(1),
72 /* 53 E> */ B(Star), R(1), 74 /* 53 E> */ B(Star), R(1),
73 /* 65 S> */ B(Ldar), R(0), 75 /* 65 S> */ B(Ldar), R(0),
74 B(Star), R(2), 76 B(Star), R(2),
75 B(LdaSmi), U8(10), 77 B(LdaSmi), U8(10),
76 /* 65 E> */ B(TestLessThan), R(2), 78 /* 65 E> */ B(TestLessThan), R(2),
77 B(JumpIfFalse), U8(47), 79 B(JumpIfFalse), U8(47),
78 /* 56 E> */ B(StackCheck), 80 /* 56 E> */ B(StackCheck),
79 /* 75 S> */ B(Ldar), R(1), 81 /* 75 S> */ B(Ldar), R(1),
80 B(Star), R(2), 82 B(Star), R(2),
81 B(LdaSmi), U8(12), 83 B(LdaSmi), U8(12),
82 B(Mul), R(2), 84 B(Mul), R(2),
83 /* 77 E> */ B(Star), R(1), 85 B(Star), R(1),
84 /* 89 S> */ B(Ldar), R(0), 86 /* 89 S> */ B(Ldar), R(0),
85 B(Star), R(2), 87 B(Star), R(2),
86 B(LdaSmi), U8(1), 88 B(LdaSmi), U8(1),
87 B(Add), R(2), 89 B(Add), R(2),
88 /* 91 E> */ B(Star), R(0), 90 B(Star), R(0),
89 /* 102 S> */ B(Star), R(2), 91 /* 102 S> */ B(Star), R(2),
90 B(LdaSmi), U8(3), 92 B(LdaSmi), U8(3),
91 /* 108 E> */ B(TestEqual), R(2), 93 /* 108 E> */ B(TestEqual), R(2),
92 B(JumpIfFalse), U8(4), 94 B(JumpIfFalse), U8(4),
93 /* 114 S> */ B(Jump), U8(14), 95 /* 114 S> */ B(Jump), U8(14),
94 /* 126 S> */ B(Ldar), R(0), 96 /* 126 S> */ B(Ldar), R(0),
95 B(Star), R(2), 97 B(Star), R(2),
96 B(LdaSmi), U8(4), 98 B(LdaSmi), U8(4),
97 /* 132 E> */ B(TestEqual), R(2), 99 /* 132 E> */ B(TestEqual), R(2),
98 B(JumpIfFalse), U8(4), 100 B(JumpIfFalse), U8(4),
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 /* 105 S> */ B(Ldar), R(0), 209 /* 105 S> */ B(Ldar), R(0),
208 B(Star), R(1), 210 B(Star), R(1),
209 B(LdaSmi), U8(1), 211 B(LdaSmi), U8(1),
210 B(Add), R(1), 212 B(Add), R(1),
211 /* 107 E> */ B(Star), R(0), 213 /* 107 E> */ B(Star), R(0),
212 B(Jump), U8(-33), 214 B(Jump), U8(-33),
213 /* 122 S> */ B(Ldar), R(0), 215 /* 122 S> */ B(Ldar), R(0),
214 B(Star), R(1), 216 B(Star), R(1),
215 B(LdaSmi), U8(1), 217 B(LdaSmi), U8(1),
216 B(Add), R(1), 218 B(Add), R(1),
217 /* 124 E> */ B(Star), R(0), 219 B(Star), R(0),
218 /* 135 S> */ B(Jump), U8(4), 220 /* 135 S> */ B(Jump), U8(4),
219 B(Jump), U8(-48), 221 B(Jump), U8(-48),
220 /* 144 S> */ B(Ldar), R(0), 222 /* 144 S> */ B(Ldar), R(0),
221 /* 154 S> */ B(Return), 223 /* 154 S> */ B(Return),
222 ] 224 ]
223 constant pool: [ 225 constant pool: [
224 ] 226 ]
225 handlers: [ 227 handlers: [
226 ] 228 ]
227 229
228 --- 230 ---
229 snippet: " 231 snippet: "
230 var x = 10; 232 var x = 10;
231 var y = 1; 233 var y = 1;
232 while (x) { 234 while (x) {
233 y = y * 12; 235 y = y * 12;
234 x = x - 1; 236 x = x - 1;
235 } 237 }
236 return y; 238 return y;
237 " 239 "
238 frame size: 3 240 frame size: 3
239 parameter count: 1 241 parameter count: 1
240 bytecode array length: 39 242 bytecode array length: 39
241 bytecodes: [ 243 bytecodes: [
242 /* 30 E> */ B(StackCheck), 244 /* 30 E> */ B(StackCheck),
243 /* 42 S> */ B(LdaSmi), U8(10), 245 /* 42 S> */ B(LdaSmi), U8(10),
244 /* 42 E> */ B(Star), R(0), 246 B(Star), R(0),
245 /* 54 S> */ B(LdaSmi), U8(1), 247 /* 54 S> */ B(LdaSmi), U8(1),
246 /* 54 E> */ B(Star), R(1), 248 /* 54 E> */ B(Star), R(1),
247 /* 64 S> */ B(Ldar), R(0), 249 /* 64 S> */ B(Ldar), R(0),
248 B(JumpIfToBooleanFalse), U8(25), 250 B(JumpIfToBooleanFalse), U8(25),
249 /* 57 E> */ B(StackCheck), 251 /* 57 E> */ B(StackCheck),
250 /* 71 S> */ B(Ldar), R(1), 252 /* 71 S> */ B(Ldar), R(1),
251 B(Star), R(2), 253 B(Star), R(2),
252 B(LdaSmi), U8(12), 254 B(LdaSmi), U8(12),
253 B(Mul), R(2), 255 B(Mul), R(2),
254 /* 73 E> */ B(Star), R(1), 256 B(Star), R(1),
255 /* 85 S> */ B(Ldar), R(0), 257 /* 85 S> */ B(Ldar), R(0),
256 B(Star), R(2), 258 B(Star), R(2),
257 B(LdaSmi), U8(1), 259 B(LdaSmi), U8(1),
258 B(Sub), R(2), 260 B(Sub), R(2),
259 /* 87 E> */ B(Star), R(0), 261 /* 87 E> */ B(Star), R(0),
260 B(Jump), U8(-25), 262 B(Jump), U8(-25),
261 /* 98 S> */ B(Ldar), R(1), 263 /* 98 S> */ B(Ldar), R(1),
262 /* 108 S> */ B(Return), 264 /* 108 S> */ B(Return),
263 ] 265 ]
264 constant pool: [ 266 constant pool: [
(...skipping 11 matching lines...) Expand all
276 x = x + 1; 278 x = x + 1;
277 } while (x < 10); 279 } while (x < 10);
278 return y; 280 return y;
279 " 281 "
280 frame size: 3 282 frame size: 3
281 parameter count: 1 283 parameter count: 1
282 bytecode array length: 66 284 bytecode array length: 66
283 bytecodes: [ 285 bytecodes: [
284 /* 30 E> */ B(StackCheck), 286 /* 30 E> */ B(StackCheck),
285 /* 42 S> */ B(LdaZero), 287 /* 42 S> */ B(LdaZero),
286 /* 42 E> */ B(Star), R(0), 288 B(Star), R(0),
287 /* 53 S> */ B(LdaSmi), U8(1), 289 /* 53 S> */ B(LdaSmi), U8(1),
288 /* 53 E> */ B(Star), R(1), 290 /* 53 E> */ B(Star), R(1),
289 /* 56 E> */ B(StackCheck), 291 /* 56 E> */ B(StackCheck),
290 /* 63 S> */ B(Ldar), R(1), 292 /* 63 S> */ B(Ldar), R(1),
291 B(Star), R(2), 293 B(Star), R(2),
292 B(LdaSmi), U8(10), 294 B(LdaSmi), U8(10),
293 B(Mul), R(2), 295 B(Mul), R(2),
294 /* 65 E> */ B(Star), R(1), 296 B(Star), R(1),
295 /* 77 S> */ B(Ldar), R(0), 297 /* 77 S> */ B(Ldar), R(0),
296 B(Star), R(2), 298 B(Star), R(2),
297 B(LdaSmi), U8(5), 299 B(LdaSmi), U8(5),
298 /* 83 E> */ B(TestEqual), R(2), 300 /* 83 E> */ B(TestEqual), R(2),
299 B(JumpIfFalse), U8(4), 301 B(JumpIfFalse), U8(4),
300 /* 89 S> */ B(Jump), U8(34), 302 /* 89 S> */ B(Jump), U8(34),
301 /* 98 S> */ B(Ldar), R(0), 303 /* 98 S> */ B(Ldar), R(0),
302 B(Star), R(2), 304 B(Star), R(2),
303 B(LdaSmi), U8(6), 305 B(LdaSmi), U8(6),
304 /* 104 E> */ B(TestEqual), R(2), 306 /* 104 E> */ B(TestEqual), R(2),
(...skipping 26 matching lines...) Expand all
331 x = x - 1; 333 x = x - 1;
332 } while (x); 334 } while (x);
333 return y; 335 return y;
334 " 336 "
335 frame size: 3 337 frame size: 3
336 parameter count: 1 338 parameter count: 1
337 bytecode array length: 37 339 bytecode array length: 37
338 bytecodes: [ 340 bytecodes: [
339 /* 30 E> */ B(StackCheck), 341 /* 30 E> */ B(StackCheck),
340 /* 42 S> */ B(LdaSmi), U8(10), 342 /* 42 S> */ B(LdaSmi), U8(10),
341 /* 42 E> */ B(Star), R(0), 343 B(Star), R(0),
342 /* 54 S> */ B(LdaSmi), U8(1), 344 /* 54 S> */ B(LdaSmi), U8(1),
343 /* 54 E> */ B(Star), R(1), 345 /* 54 E> */ B(Star), R(1),
344 /* 57 E> */ B(StackCheck), 346 /* 57 E> */ B(StackCheck),
345 /* 64 S> */ B(Ldar), R(1), 347 /* 64 S> */ B(Ldar), R(1),
346 B(Star), R(2), 348 B(Star), R(2),
347 B(LdaSmi), U8(12), 349 B(LdaSmi), U8(12),
348 B(Mul), R(2), 350 B(Mul), R(2),
349 /* 66 E> */ B(Star), R(1), 351 B(Star), R(1),
350 /* 78 S> */ B(Ldar), R(0), 352 /* 78 S> */ B(Ldar), R(0),
351 B(Star), R(2), 353 B(Star), R(2),
352 B(LdaSmi), U8(1), 354 B(LdaSmi), U8(1),
353 B(Sub), R(2), 355 B(Sub), R(2),
354 /* 80 E> */ B(Star), R(0), 356 /* 80 E> */ B(Star), R(0),
355 /* 98 S> */ B(Ldar), R(0), 357 /* 98 S> */ B(Ldar), R(0),
356 B(JumpIfToBooleanTrue), U8(-23), 358 B(JumpIfToBooleanTrue), U8(-23),
357 /* 102 S> */ B(Ldar), R(1), 359 /* 102 S> */ B(Ldar), R(1),
358 /* 112 S> */ B(Return), 360 /* 112 S> */ B(Return),
359 ] 361 ]
(...skipping 12 matching lines...) Expand all
372 if (x == 6) continue; 374 if (x == 6) continue;
373 } while (false); 375 } while (false);
374 return y; 376 return y;
375 " 377 "
376 frame size: 3 378 frame size: 3
377 parameter count: 1 379 parameter count: 1
378 bytecode array length: 54 380 bytecode array length: 54
379 bytecodes: [ 381 bytecodes: [
380 /* 30 E> */ B(StackCheck), 382 /* 30 E> */ B(StackCheck),
381 /* 42 S> */ B(LdaZero), 383 /* 42 S> */ B(LdaZero),
382 /* 42 E> */ B(Star), R(0), 384 B(Star), R(0),
383 /* 53 S> */ B(LdaSmi), U8(1), 385 /* 53 S> */ B(LdaSmi), U8(1),
384 /* 53 E> */ B(Star), R(1), 386 /* 53 E> */ B(Star), R(1),
385 /* 56 E> */ B(StackCheck), 387 /* 56 E> */ B(StackCheck),
386 /* 63 S> */ B(Ldar), R(1), 388 /* 63 S> */ B(Ldar), R(1),
387 B(Star), R(2), 389 B(Star), R(2),
388 B(LdaSmi), U8(10), 390 B(LdaSmi), U8(10),
389 B(Mul), R(2), 391 B(Mul), R(2),
390 /* 65 E> */ B(Star), R(1), 392 B(Star), R(1),
391 /* 77 S> */ B(Ldar), R(0), 393 /* 77 S> */ B(Ldar), R(0),
392 B(Star), R(2), 394 B(Star), R(2),
393 B(LdaSmi), U8(5), 395 B(LdaSmi), U8(5),
394 /* 83 E> */ B(TestEqual), R(2), 396 /* 83 E> */ B(TestEqual), R(2),
395 B(JumpIfFalse), U8(4), 397 B(JumpIfFalse), U8(4),
396 /* 89 S> */ B(Jump), U8(22), 398 /* 89 S> */ B(Jump), U8(22),
397 /* 98 S> */ B(Ldar), R(0), 399 /* 98 S> */ B(Ldar), R(0),
398 B(Star), R(2), 400 B(Star), R(2),
399 B(LdaSmi), U8(1), 401 B(LdaSmi), U8(1),
400 B(Add), R(2), 402 B(Add), R(2),
401 /* 100 E> */ B(Star), R(0), 403 B(Star), R(0),
402 /* 111 S> */ B(Star), R(2), 404 /* 111 S> */ B(Star), R(2),
403 B(LdaSmi), U8(6), 405 B(LdaSmi), U8(6),
404 /* 117 E> */ B(TestEqual), R(2), 406 /* 117 E> */ B(TestEqual), R(2),
405 B(JumpIfFalse), U8(4), 407 B(JumpIfFalse), U8(4),
406 /* 123 S> */ B(Jump), U8(2), 408 /* 123 S> */ B(Jump), U8(2),
407 /* 150 S> */ B(Ldar), R(1), 409 /* 150 S> */ B(Ldar), R(1),
408 /* 160 S> */ B(Return), 410 /* 160 S> */ B(Return),
409 ] 411 ]
410 constant pool: [ 412 constant pool: [
411 ] 413 ]
(...skipping 10 matching lines...) Expand all
422 if (x == 6) continue; 424 if (x == 6) continue;
423 } while (true); 425 } while (true);
424 return y; 426 return y;
425 " 427 "
426 frame size: 3 428 frame size: 3
427 parameter count: 1 429 parameter count: 1
428 bytecode array length: 56 430 bytecode array length: 56
429 bytecodes: [ 431 bytecodes: [
430 /* 30 E> */ B(StackCheck), 432 /* 30 E> */ B(StackCheck),
431 /* 42 S> */ B(LdaZero), 433 /* 42 S> */ B(LdaZero),
432 /* 42 E> */ B(Star), R(0), 434 B(Star), R(0),
433 /* 53 S> */ B(LdaSmi), U8(1), 435 /* 53 S> */ B(LdaSmi), U8(1),
434 /* 53 E> */ B(Star), R(1), 436 /* 53 E> */ B(Star), R(1),
435 /* 56 E> */ B(StackCheck), 437 /* 56 E> */ B(StackCheck),
436 /* 63 S> */ B(Ldar), R(1), 438 /* 63 S> */ B(Ldar), R(1),
437 B(Star), R(2), 439 B(Star), R(2),
438 B(LdaSmi), U8(10), 440 B(LdaSmi), U8(10),
439 B(Mul), R(2), 441 B(Mul), R(2),
440 /* 65 E> */ B(Star), R(1), 442 B(Star), R(1),
441 /* 77 S> */ B(Ldar), R(0), 443 /* 77 S> */ B(Ldar), R(0),
442 B(Star), R(2), 444 B(Star), R(2),
443 B(LdaSmi), U8(5), 445 B(LdaSmi), U8(5),
444 /* 83 E> */ B(TestEqual), R(2), 446 /* 83 E> */ B(TestEqual), R(2),
445 B(JumpIfFalse), U8(4), 447 B(JumpIfFalse), U8(4),
446 /* 89 S> */ B(Jump), U8(24), 448 /* 89 S> */ B(Jump), U8(24),
447 /* 98 S> */ B(Ldar), R(0), 449 /* 98 S> */ B(Ldar), R(0),
448 B(Star), R(2), 450 B(Star), R(2),
449 B(LdaSmi), U8(1), 451 B(LdaSmi), U8(1),
450 B(Add), R(2), 452 B(Add), R(2),
451 /* 100 E> */ B(Star), R(0), 453 B(Star), R(0),
452 /* 111 S> */ B(Star), R(2), 454 /* 111 S> */ B(Star), R(2),
453 B(LdaSmi), U8(6), 455 B(LdaSmi), U8(6),
454 /* 117 E> */ B(TestEqual), R(2), 456 /* 117 E> */ B(TestEqual), R(2),
455 B(JumpIfFalse), U8(4), 457 B(JumpIfFalse), U8(4),
456 /* 123 S> */ B(Jump), U8(2), 458 /* 123 S> */ B(Jump), U8(2),
457 B(Jump), U8(-43), 459 B(Jump), U8(-43),
458 /* 149 S> */ B(Ldar), R(1), 460 /* 149 S> */ B(Ldar), R(1),
459 /* 159 S> */ B(Return), 461 /* 159 S> */ B(Return),
460 ] 462 ]
461 constant pool: [ 463 constant pool: [
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 u = u + 1; 640 u = u + 1;
639 continue; 641 continue;
640 } 642 }
641 " 643 "
642 frame size: 3 644 frame size: 3
643 parameter count: 1 645 parameter count: 1
644 bytecode array length: 44 646 bytecode array length: 44
645 bytecodes: [ 647 bytecodes: [
646 /* 30 E> */ B(StackCheck), 648 /* 30 E> */ B(StackCheck),
647 /* 42 S> */ B(LdaZero), 649 /* 42 S> */ B(LdaZero),
648 /* 42 E> */ B(Star), R(0), 650 B(Star), R(0),
649 /* 58 S> */ B(LdaZero), 651 /* 58 S> */ B(LdaZero),
650 /* 58 E> */ B(Star), R(1), 652 /* 58 E> */ B(Star), R(1),
651 /* 63 S> */ B(Ldar), R(1), 653 /* 63 S> */ B(Ldar), R(1),
652 B(Star), R(2), 654 B(Star), R(2),
653 B(LdaSmi), U8(100), 655 B(LdaSmi), U8(100),
654 /* 63 E> */ B(TestLessThan), R(2), 656 /* 63 E> */ B(TestLessThan), R(2),
655 B(JumpIfFalse), U8(27), 657 B(JumpIfFalse), U8(27),
656 /* 45 E> */ B(StackCheck), 658 /* 45 E> */ B(StackCheck),
657 /* 85 S> */ B(Ldar), R(0), 659 /* 85 S> */ B(Ldar), R(0),
658 B(Star), R(2), 660 B(Star), R(2),
659 B(LdaSmi), U8(1), 661 B(LdaSmi), U8(1),
660 B(Add), R(2), 662 B(Add), R(2),
661 /* 87 E> */ B(Star), R(0), 663 B(Star), R(0),
662 /* 98 S> */ B(Jump), U8(2), 664 /* 98 S> */ B(Jump), U8(2),
663 /* 72 S> */ B(Ldar), R(1), 665 /* 72 S> */ B(Ldar), R(1),
664 B(Star), R(2), 666 B(Star), R(2),
665 B(LdaSmi), U8(1), 667 B(LdaSmi), U8(1),
666 B(Add), R(2), 668 B(Add), R(2),
667 /* 72 E> */ B(Star), R(1), 669 /* 72 E> */ B(Star), R(1),
668 B(Jump), U8(-33), 670 B(Jump), U8(-33),
669 B(LdaUndefined), 671 B(LdaUndefined),
670 /* 110 S> */ B(Return), 672 /* 110 S> */ B(Return),
671 ] 673 ]
672 constant pool: [ 674 constant pool: [
673 ] 675 ]
674 handlers: [ 676 handlers: [
675 ] 677 ]
676 678
677 --- 679 ---
678 snippet: " 680 snippet: "
679 var y = 1; 681 var y = 1;
680 for (var x = 10; x; --x) { 682 for (var x = 10; x; --x) {
681 y = y * 12; 683 y = y * 12;
682 } 684 }
683 return y; 685 return y;
684 " 686 "
685 frame size: 3 687 frame size: 3
686 parameter count: 1 688 parameter count: 1
687 bytecode array length: 34 689 bytecode array length: 34
688 bytecodes: [ 690 bytecodes: [
689 /* 30 E> */ B(StackCheck), 691 /* 30 E> */ B(StackCheck),
690 /* 42 S> */ B(LdaSmi), U8(1), 692 /* 42 S> */ B(LdaSmi), U8(1),
691 /* 42 E> */ B(Star), R(0), 693 B(Star), R(0),
692 /* 58 S> */ B(LdaSmi), U8(10), 694 /* 58 S> */ B(LdaSmi), U8(10),
693 /* 58 E> */ B(Star), R(1), 695 /* 58 E> */ B(Star), R(1),
694 /* 62 S> */ B(Ldar), R(1), 696 /* 62 S> */ B(Ldar), R(1),
695 B(JumpIfToBooleanFalse), U8(20), 697 B(JumpIfToBooleanFalse), U8(20),
696 /* 45 E> */ B(StackCheck), 698 /* 45 E> */ B(StackCheck),
697 /* 74 S> */ B(Ldar), R(0), 699 /* 74 S> */ B(Ldar), R(0),
698 B(Star), R(2), 700 B(Star), R(2),
699 B(LdaSmi), U8(12), 701 B(LdaSmi), U8(12),
700 B(Mul), R(2), 702 B(Mul), R(2),
701 /* 76 E> */ B(Star), R(0), 703 /* 76 E> */ B(Star), R(0),
(...skipping 16 matching lines...) Expand all
718 x = x + 1; 720 x = x + 1;
719 }; 721 };
720 return x; 722 return x;
721 " 723 "
722 frame size: 2 724 frame size: 2
723 parameter count: 1 725 parameter count: 1
724 bytecode array length: 10 726 bytecode array length: 10
725 bytecodes: [ 727 bytecodes: [
726 /* 30 E> */ B(StackCheck), 728 /* 30 E> */ B(StackCheck),
727 /* 42 S> */ B(LdaZero), 729 /* 42 S> */ B(LdaZero),
728 /* 42 E> */ B(Star), R(0), 730 B(Star), R(0),
729 /* 58 S> */ B(LdaZero), 731 /* 58 S> */ B(LdaZero),
730 /* 58 E> */ B(Star), R(1), 732 B(Star), R(1),
731 /* 91 S> */ B(Ldar), R(0), 733 /* 91 S> */ B(Ldar), R(0),
732 /* 101 S> */ B(Return), 734 /* 101 S> */ B(Return),
733 ] 735 ]
734 constant pool: [ 736 constant pool: [
735 ] 737 ]
736 handlers: [ 738 handlers: [
737 ] 739 ]
738 740
739 --- 741 ---
740 snippet: " 742 snippet: "
741 var x = 0; 743 var x = 0;
742 for (var i = 0; true; ++i) { 744 for (var i = 0; true; ++i) {
743 x = x + 1; 745 x = x + 1;
744 if (x == 20) break; 746 if (x == 20) break;
745 }; 747 };
746 return x; 748 return x;
747 " 749 "
748 frame size: 3 750 frame size: 3
749 parameter count: 1 751 parameter count: 1
750 bytecode array length: 38 752 bytecode array length: 38
751 bytecodes: [ 753 bytecodes: [
752 /* 30 E> */ B(StackCheck), 754 /* 30 E> */ B(StackCheck),
753 /* 42 S> */ B(LdaZero), 755 /* 42 S> */ B(LdaZero),
754 /* 42 E> */ B(Star), R(0), 756 B(Star), R(0),
755 /* 58 S> */ B(LdaZero), 757 /* 58 S> */ B(LdaZero),
756 /* 58 E> */ B(Star), R(1), 758 /* 58 E> */ B(Star), R(1),
757 /* 45 E> */ B(StackCheck), 759 /* 45 E> */ B(StackCheck),
758 /* 76 S> */ B(Ldar), R(0), 760 /* 76 S> */ B(Ldar), R(0),
759 B(Star), R(2), 761 B(Star), R(2),
760 B(LdaSmi), U8(1), 762 B(LdaSmi), U8(1),
761 B(Add), R(2), 763 B(Add), R(2),
762 /* 78 E> */ B(Star), R(0), 764 B(Star), R(0),
763 /* 89 S> */ B(Star), R(2), 765 /* 89 S> */ B(Star), R(2),
764 B(LdaSmi), U8(20), 766 B(LdaSmi), U8(20),
765 /* 95 E> */ B(TestEqual), R(2), 767 /* 95 E> */ B(TestEqual), R(2),
766 B(JumpIfFalse), U8(4), 768 B(JumpIfFalse), U8(4),
767 /* 102 S> */ B(Jump), U8(9), 769 /* 102 S> */ B(Jump), U8(9),
768 /* 69 S> */ B(Ldar), R(1), 770 /* 69 S> */ B(Ldar), R(1),
769 B(Inc), 771 B(Inc),
770 /* 69 E> */ B(Star), R(1), 772 /* 69 E> */ B(Star), R(1),
771 B(Jump), U8(-26), 773 B(Jump), U8(-26),
772 /* 112 S> */ B(Ldar), R(0), 774 /* 112 S> */ B(Ldar), R(0),
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 ] 851 ]
850 constant pool: [ 852 constant pool: [
851 InstanceType::FIXED_ARRAY_TYPE, 853 InstanceType::FIXED_ARRAY_TYPE,
852 InstanceType::SHARED_FUNCTION_INFO_TYPE, 854 InstanceType::SHARED_FUNCTION_INFO_TYPE,
853 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 855 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
854 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 856 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
855 ] 857 ]
856 handlers: [ 858 handlers: [
857 ] 859 ]
858 860
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698