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

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

Issue 2533803002: [parser] removed undefined check of for-of iterator (Closed)
Patch Set: regolden Created 4 years 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 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 for (var p of [0, 1, 2]) {} 10 for (var p of [0, 1, 2]) {}
11 " 11 "
12 frame size: 15 12 frame size: 15
13 parameter count: 1 13 parameter count: 1
14 bytecode array length: 274 14 bytecode array length: 268
15 bytecodes: [ 15 bytecodes: [
16 /* 30 E> */ B(StackCheck), 16 /* 30 E> */ B(StackCheck),
17 B(LdaZero), 17 B(LdaZero),
18 B(Star), R(4), 18 B(Star), R(4),
19 B(Mov), R(context), R(11), 19 B(Mov), R(context), R(11),
20 B(Mov), R(context), R(12), 20 B(Mov), R(context), R(12),
21 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 21 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
22 B(Star), R(14), 22 B(Star), R(14),
23 B(LdaConstant), U8(1), 23 B(LdaConstant), U8(1),
24 /* 48 E> */ B(LdaKeyedProperty), R(14), U8(4), 24 /* 48 E> */ B(LdaKeyedProperty), R(14), U8(4),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 B(Star), R(9), 64 B(Star), R(9),
65 B(Jump), U8(7), 65 B(Jump), U8(7),
66 B(Star), R(10), 66 B(Star), R(10),
67 B(LdaZero), 67 B(LdaZero),
68 B(Star), R(9), 68 B(Star), R(9),
69 B(LdaTheHole), 69 B(LdaTheHole),
70 B(SetPendingMessage), 70 B(SetPendingMessage),
71 B(Star), R(11), 71 B(Star), R(11),
72 B(LdaZero), 72 B(LdaZero),
73 B(TestEqualStrict), R(4), U8(15), 73 B(TestEqualStrict), R(4), U8(15),
74 B(JumpIfTrue), U8(119),
75 B(LdaUndefined),
76 B(TestEqualStrict), R(2), U8(16),
77 B(JumpIfTrue), U8(113), 74 B(JumpIfTrue), U8(113),
78 B(LdaNamedProperty), R(2), U8(7), U8(17), 75 B(LdaNamedProperty), R(2), U8(7), U8(16),
79 B(Star), R(6), 76 B(Star), R(6),
80 B(LdaNull), 77 B(LdaNull),
81 B(TestEqual), R(6), U8(19), 78 B(TestEqual), R(6), U8(18),
82 B(JumpIfFalse), U8(4), 79 B(JumpIfFalse), U8(4),
83 B(Jump), U8(99), 80 B(Jump), U8(99),
84 B(LdaSmi), U8(1), 81 B(LdaSmi), U8(1),
85 B(TestEqualStrict), R(4), U8(20), 82 B(TestEqualStrict), R(4), U8(19),
86 B(JumpIfFalse), U8(67), 83 B(JumpIfFalse), U8(67),
87 B(Ldar), R(6), 84 B(Ldar), R(6),
88 B(TypeOf), 85 B(TypeOf),
89 B(Star), R(12), 86 B(Star), R(12),
90 B(LdaConstant), U8(8), 87 B(LdaConstant), U8(8),
91 B(TestEqualStrict), R(12), U8(21), 88 B(TestEqualStrict), R(12), U8(20),
92 B(JumpIfFalse), U8(4), 89 B(JumpIfFalse), U8(4),
93 B(Jump), U8(18), 90 B(Jump), U8(18),
94 B(Wide), B(LdaSmi), U16(130), 91 B(Wide), B(LdaSmi), U16(130),
95 B(Star), R(12), 92 B(Star), R(12),
96 B(LdaConstant), U8(9), 93 B(LdaConstant), U8(9),
97 B(Star), R(13), 94 B(Star), R(13),
98 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), 95 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
99 B(Throw), 96 B(Throw),
100 B(Mov), R(context), R(12), 97 B(Mov), R(context), R(12),
101 B(Mov), R(6), R(13), 98 B(Mov), R(6), R(13),
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 137 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
141 FIXED_ARRAY_TYPE, 138 FIXED_ARRAY_TYPE,
142 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 139 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
143 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 140 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
144 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 141 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
145 FIXED_ARRAY_TYPE, 142 FIXED_ARRAY_TYPE,
146 ] 143 ]
147 handlers: [ 144 handlers: [
148 [7, 120, 126], 145 [7, 120, 126],
149 [10, 84, 86], 146 [10, 84, 86],
150 [201, 211, 213], 147 [195, 205, 207],
151 ] 148 ]
152 149
153 --- 150 ---
154 snippet: " 151 snippet: "
155 var x = 'potatoes'; 152 var x = 'potatoes';
156 for (var p of x) { return p; } 153 for (var p of x) { return p; }
157 " 154 "
158 frame size: 16 155 frame size: 16
159 parameter count: 1 156 parameter count: 1
160 bytecode array length: 285 157 bytecode array length: 279
161 bytecodes: [ 158 bytecodes: [
162 /* 30 E> */ B(StackCheck), 159 /* 30 E> */ B(StackCheck),
163 /* 42 S> */ B(LdaConstant), U8(0), 160 /* 42 S> */ B(LdaConstant), U8(0),
164 B(Star), R(0), 161 B(Star), R(0),
165 B(LdaZero), 162 B(LdaZero),
166 B(Star), R(5), 163 B(Star), R(5),
167 B(Mov), R(context), R(12), 164 B(Mov), R(context), R(12),
168 B(Mov), R(context), R(13), 165 B(Mov), R(context), R(13),
169 /* 68 S> */ B(LdaConstant), U8(1), 166 /* 68 S> */ B(LdaConstant), U8(1),
170 /* 68 E> */ B(LdaKeyedProperty), R(0), U8(4), 167 /* 68 E> */ B(LdaKeyedProperty), R(0), U8(4),
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 B(Star), R(10), 208 B(Star), R(10),
212 B(Jump), U8(8), 209 B(Jump), U8(8),
213 B(Star), R(11), 210 B(Star), R(11),
214 B(LdaSmi), U8(1), 211 B(LdaSmi), U8(1),
215 B(Star), R(10), 212 B(Star), R(10),
216 B(LdaTheHole), 213 B(LdaTheHole),
217 B(SetPendingMessage), 214 B(SetPendingMessage),
218 B(Star), R(12), 215 B(Star), R(12),
219 B(LdaZero), 216 B(LdaZero),
220 B(TestEqualStrict), R(5), U8(15), 217 B(TestEqualStrict), R(5), U8(15),
221 B(JumpIfTrue), U8(119),
222 B(LdaUndefined),
223 B(TestEqualStrict), R(3), U8(16),
224 B(JumpIfTrue), U8(113), 218 B(JumpIfTrue), U8(113),
225 B(LdaNamedProperty), R(3), U8(7), U8(17), 219 B(LdaNamedProperty), R(3), U8(7), U8(16),
226 B(Star), R(7), 220 B(Star), R(7),
227 B(LdaNull), 221 B(LdaNull),
228 B(TestEqual), R(7), U8(19), 222 B(TestEqual), R(7), U8(18),
229 B(JumpIfFalse), U8(4), 223 B(JumpIfFalse), U8(4),
230 B(Jump), U8(99), 224 B(Jump), U8(99),
231 B(LdaSmi), U8(1), 225 B(LdaSmi), U8(1),
232 B(TestEqualStrict), R(5), U8(20), 226 B(TestEqualStrict), R(5), U8(19),
233 B(JumpIfFalse), U8(67), 227 B(JumpIfFalse), U8(67),
234 B(Ldar), R(7), 228 B(Ldar), R(7),
235 B(TypeOf), 229 B(TypeOf),
236 B(Star), R(13), 230 B(Star), R(13),
237 B(LdaConstant), U8(8), 231 B(LdaConstant), U8(8),
238 B(TestEqualStrict), R(13), U8(21), 232 B(TestEqualStrict), R(13), U8(20),
239 B(JumpIfFalse), U8(4), 233 B(JumpIfFalse), U8(4),
240 B(Jump), U8(18), 234 B(Jump), U8(18),
241 B(Wide), B(LdaSmi), U16(130), 235 B(Wide), B(LdaSmi), U16(130),
242 B(Star), R(13), 236 B(Star), R(13),
243 B(LdaConstant), U8(9), 237 B(LdaConstant), U8(9),
244 B(Star), R(14), 238 B(Star), R(14),
245 B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2), 239 B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
246 B(Throw), 240 B(Throw),
247 B(Mov), R(context), R(13), 241 B(Mov), R(context), R(13),
248 B(Mov), R(7), R(14), 242 B(Mov), R(7), R(14),
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 286 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
293 FIXED_ARRAY_TYPE, 287 FIXED_ARRAY_TYPE,
294 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 288 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
295 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 289 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
296 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 290 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
297 FIXED_ARRAY_TYPE, 291 FIXED_ARRAY_TYPE,
298 ] 292 ]
299 handlers: [ 293 handlers: [
300 [11, 120, 126], 294 [11, 120, 126],
301 [14, 84, 86], 295 [14, 84, 86],
302 [202, 212, 214], 296 [196, 206, 208],
303 ] 297 ]
304 298
305 --- 299 ---
306 snippet: " 300 snippet: "
307 for (var x of [10, 20, 30]) { 301 for (var x of [10, 20, 30]) {
308 if (x == 10) continue; 302 if (x == 10) continue;
309 if (x == 20) break; 303 if (x == 20) break;
310 } 304 }
311 " 305 "
312 frame size: 15 306 frame size: 15
313 parameter count: 1 307 parameter count: 1
314 bytecode array length: 292 308 bytecode array length: 286
315 bytecodes: [ 309 bytecodes: [
316 /* 30 E> */ B(StackCheck), 310 /* 30 E> */ B(StackCheck),
317 B(LdaZero), 311 B(LdaZero),
318 B(Star), R(4), 312 B(Star), R(4),
319 B(Mov), R(context), R(11), 313 B(Mov), R(context), R(11),
320 B(Mov), R(context), R(12), 314 B(Mov), R(context), R(12),
321 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 315 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
322 B(Star), R(14), 316 B(Star), R(14),
323 B(LdaConstant), U8(1), 317 B(LdaConstant), U8(1),
324 /* 48 E> */ B(LdaKeyedProperty), R(14), U8(4), 318 /* 48 E> */ B(LdaKeyedProperty), R(14), U8(4),
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 B(Star), R(9), 366 B(Star), R(9),
373 B(Jump), U8(7), 367 B(Jump), U8(7),
374 B(Star), R(10), 368 B(Star), R(10),
375 B(LdaZero), 369 B(LdaZero),
376 B(Star), R(9), 370 B(Star), R(9),
377 B(LdaTheHole), 371 B(LdaTheHole),
378 B(SetPendingMessage), 372 B(SetPendingMessage),
379 B(Star), R(11), 373 B(Star), R(11),
380 B(LdaZero), 374 B(LdaZero),
381 B(TestEqualStrict), R(4), U8(17), 375 B(TestEqualStrict), R(4), U8(17),
382 B(JumpIfTrue), U8(119),
383 B(LdaUndefined),
384 B(TestEqualStrict), R(2), U8(18),
385 B(JumpIfTrue), U8(113), 376 B(JumpIfTrue), U8(113),
386 B(LdaNamedProperty), R(2), U8(7), U8(19), 377 B(LdaNamedProperty), R(2), U8(7), U8(18),
387 B(Star), R(6), 378 B(Star), R(6),
388 B(LdaNull), 379 B(LdaNull),
389 B(TestEqual), R(6), U8(21), 380 B(TestEqual), R(6), U8(20),
390 B(JumpIfFalse), U8(4), 381 B(JumpIfFalse), U8(4),
391 B(Jump), U8(99), 382 B(Jump), U8(99),
392 B(LdaSmi), U8(1), 383 B(LdaSmi), U8(1),
393 B(TestEqualStrict), R(4), U8(22), 384 B(TestEqualStrict), R(4), U8(21),
394 B(JumpIfFalse), U8(67), 385 B(JumpIfFalse), U8(67),
395 B(Ldar), R(6), 386 B(Ldar), R(6),
396 B(TypeOf), 387 B(TypeOf),
397 B(Star), R(12), 388 B(Star), R(12),
398 B(LdaConstant), U8(8), 389 B(LdaConstant), U8(8),
399 B(TestEqualStrict), R(12), U8(23), 390 B(TestEqualStrict), R(12), U8(22),
400 B(JumpIfFalse), U8(4), 391 B(JumpIfFalse), U8(4),
401 B(Jump), U8(18), 392 B(Jump), U8(18),
402 B(Wide), B(LdaSmi), U16(130), 393 B(Wide), B(LdaSmi), U16(130),
403 B(Star), R(12), 394 B(Star), R(12),
404 B(LdaConstant), U8(9), 395 B(LdaConstant), U8(9),
405 B(Star), R(13), 396 B(Star), R(13),
406 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), 397 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
407 B(Throw), 398 B(Throw),
408 B(Mov), R(context), R(12), 399 B(Mov), R(context), R(12),
409 B(Mov), R(6), R(13), 400 B(Mov), R(6), R(13),
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 439 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
449 FIXED_ARRAY_TYPE, 440 FIXED_ARRAY_TYPE,
450 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 441 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
451 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 442 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
452 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 443 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
453 FIXED_ARRAY_TYPE, 444 FIXED_ARRAY_TYPE,
454 ] 445 ]
455 handlers: [ 446 handlers: [
456 [7, 138, 144], 447 [7, 138, 144],
457 [10, 102, 104], 448 [10, 102, 104],
458 [219, 229, 231], 449 [213, 223, 225],
459 ] 450 ]
460 451
461 --- 452 ---
462 snippet: " 453 snippet: "
463 var x = { 'a': 1, 'b': 2 }; 454 var x = { 'a': 1, 'b': 2 };
464 for (x['a'] of [1,2,3]) { return x['a']; } 455 for (x['a'] of [1,2,3]) { return x['a']; }
465 " 456 "
466 frame size: 14 457 frame size: 14
467 parameter count: 1 458 parameter count: 1
468 bytecode array length: 299 459 bytecode array length: 293
469 bytecodes: [ 460 bytecodes: [
470 /* 30 E> */ B(StackCheck), 461 /* 30 E> */ B(StackCheck),
471 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8), 462 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8),
472 B(Mov), R(8), R(0), 463 B(Mov), R(8), R(0),
473 B(LdaZero), 464 B(LdaZero),
474 B(Star), R(3), 465 B(Star), R(3),
475 B(Mov), R(context), R(10), 466 B(Mov), R(context), R(10),
476 B(Mov), R(context), R(11), 467 B(Mov), R(context), R(11),
477 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9), 468 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9),
478 B(Star), R(13), 469 B(Star), R(13),
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 B(Star), R(8), 514 B(Star), R(8),
524 B(Jump), U8(8), 515 B(Jump), U8(8),
525 B(Star), R(9), 516 B(Star), R(9),
526 B(LdaSmi), U8(1), 517 B(LdaSmi), U8(1),
527 B(Star), R(8), 518 B(Star), R(8),
528 B(LdaTheHole), 519 B(LdaTheHole),
529 B(SetPendingMessage), 520 B(SetPendingMessage),
530 B(Star), R(10), 521 B(Star), R(10),
531 B(LdaZero), 522 B(LdaZero),
532 B(TestEqualStrict), R(3), U8(19), 523 B(TestEqualStrict), R(3), U8(19),
533 B(JumpIfTrue), U8(119),
534 B(LdaUndefined),
535 B(TestEqualStrict), R(1), U8(20),
536 B(JumpIfTrue), U8(113), 524 B(JumpIfTrue), U8(113),
537 B(LdaNamedProperty), R(1), U8(9), U8(21), 525 B(LdaNamedProperty), R(1), U8(9), U8(20),
538 B(Star), R(5), 526 B(Star), R(5),
539 B(LdaNull), 527 B(LdaNull),
540 B(TestEqual), R(5), U8(23), 528 B(TestEqual), R(5), U8(22),
541 B(JumpIfFalse), U8(4), 529 B(JumpIfFalse), U8(4),
542 B(Jump), U8(99), 530 B(Jump), U8(99),
543 B(LdaSmi), U8(1), 531 B(LdaSmi), U8(1),
544 B(TestEqualStrict), R(3), U8(24), 532 B(TestEqualStrict), R(3), U8(23),
545 B(JumpIfFalse), U8(67), 533 B(JumpIfFalse), U8(67),
546 B(Ldar), R(5), 534 B(Ldar), R(5),
547 B(TypeOf), 535 B(TypeOf),
548 B(Star), R(11), 536 B(Star), R(11),
549 B(LdaConstant), U8(10), 537 B(LdaConstant), U8(10),
550 B(TestEqualStrict), R(11), U8(25), 538 B(TestEqualStrict), R(11), U8(24),
551 B(JumpIfFalse), U8(4), 539 B(JumpIfFalse), U8(4),
552 B(Jump), U8(18), 540 B(Jump), U8(18),
553 B(Wide), B(LdaSmi), U16(130), 541 B(Wide), B(LdaSmi), U16(130),
554 B(Star), R(11), 542 B(Star), R(11),
555 B(LdaConstant), U8(11), 543 B(LdaConstant), U8(11),
556 B(Star), R(12), 544 B(Star), R(12),
557 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), 545 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
558 B(Throw), 546 B(Throw),
559 B(Mov), R(context), R(11), 547 B(Mov), R(context), R(11),
560 B(Mov), R(5), R(12), 548 B(Mov), R(5), R(12),
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 594 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
607 FIXED_ARRAY_TYPE, 595 FIXED_ARRAY_TYPE,
608 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 596 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
609 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 597 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
610 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 598 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
611 FIXED_ARRAY_TYPE, 599 FIXED_ARRAY_TYPE,
612 ] 600 ]
613 handlers: [ 601 handlers: [
614 [15, 134, 140], 602 [15, 134, 140],
615 [18, 98, 100], 603 [18, 98, 100],
616 [216, 226, 228], 604 [210, 220, 222],
617 ] 605 ]
618 606
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698