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

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

Issue 2501503005: [Interpreter] Add SetPendingMessage bytecode. (Closed)
Patch Set: cl format Created 4 years, 1 month 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: no 6 wrap: no
7 test function name: f 7 test function name: f
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
11 function* f() { } 11 function* f() { }
12 f(); 12 f();
13 " 13 "
14 frame size: 11 14 frame size: 11
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 204 16 bytecode array length: 199
17 bytecodes: [ 17 bytecodes: [
18 B(Ldar), R(new_target), 18 B(Ldar), R(new_target),
19 B(JumpIfUndefined), U8(21), 19 B(JumpIfUndefined), U8(21),
20 B(ResumeGenerator), R(new_target), 20 B(ResumeGenerator), R(new_target),
21 B(Star), R(1), 21 B(Star), R(1),
22 B(LdaZero), 22 B(LdaZero),
23 B(TestEqualStrict), R(1), U8(0), 23 B(TestEqualStrict), R(1), U8(0),
24 B(JumpIfTrue), U8(53), 24 B(JumpIfTrue), U8(53),
25 B(LdaSmi), U8(76), 25 B(LdaSmi), U8(76),
26 B(Star), R(2), 26 B(Star), R(2),
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 B(Star), R(3), 76 B(Star), R(3),
77 B(LdaSmi), U8(1), 77 B(LdaSmi), U8(1),
78 B(Star), R(2), 78 B(Star), R(2),
79 B(Jump), U8(14), 79 B(Jump), U8(14),
80 B(LdaSmi), U8(-1), 80 B(LdaSmi), U8(-1),
81 B(Star), R(2), 81 B(Star), R(2),
82 B(Jump), U8(8), 82 B(Jump), U8(8),
83 B(Star), R(3), 83 B(Star), R(3),
84 B(LdaSmi), U8(2), 84 B(LdaSmi), U8(2),
85 B(Star), R(2), 85 B(Star), R(2),
86 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 86 B(LdaTheHole),
87 B(SetPendingMessage),
87 B(Star), R(4), 88 B(Star), R(4),
88 B(LdaCurrentContextSlot), U8(5), 89 B(LdaCurrentContextSlot), U8(5),
89 B(Star), R(5), 90 B(Star), R(5),
90 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(5), U8(1), 91 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(5), U8(1),
91 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(4 ), U8(1), 92 B(Ldar), R(4),
93 B(SetPendingMessage),
92 B(LdaZero), 94 B(LdaZero),
93 B(TestEqualStrict), R(2), U8(0), 95 B(TestEqualStrict), R(2), U8(0),
94 B(JumpIfTrue), U8(18), 96 B(JumpIfTrue), U8(18),
95 B(LdaSmi), U8(1), 97 B(LdaSmi), U8(1),
96 B(TestEqualStrict), R(2), U8(0), 98 B(TestEqualStrict), R(2), U8(0),
97 B(JumpIfTrue), U8(14), 99 B(JumpIfTrue), U8(14),
98 B(LdaSmi), U8(2), 100 B(LdaSmi), U8(2),
99 B(TestEqualStrict), R(2), U8(0), 101 B(TestEqualStrict), R(2), U8(0),
100 B(JumpIfTrue), U8(10), 102 B(JumpIfTrue), U8(10),
101 B(Jump), U8(11), 103 B(Jump), U8(11),
(...skipping 12 matching lines...) Expand all
114 [39, 138, 144], 116 [39, 138, 144],
115 ] 117 ]
116 118
117 --- 119 ---
118 snippet: " 120 snippet: "
119 function* f() { yield 42 } 121 function* f() { yield 42 }
120 f(); 122 f();
121 " 123 "
122 frame size: 11 124 frame size: 11
123 parameter count: 1 125 parameter count: 1
124 bytecode array length: 301 126 bytecode array length: 296
125 bytecodes: [ 127 bytecodes: [
126 B(Ldar), R(new_target), 128 B(Ldar), R(new_target),
127 B(JumpIfUndefined), U8(28), 129 B(JumpIfUndefined), U8(28),
128 B(ResumeGenerator), R(new_target), 130 B(ResumeGenerator), R(new_target),
129 B(Star), R(1), 131 B(Star), R(1),
130 B(LdaZero), 132 B(LdaZero),
131 B(TestEqualStrict), R(1), U8(0), 133 B(TestEqualStrict), R(1), U8(0),
132 B(JumpIfTrue), U8(60), 134 B(JumpIfTrue), U8(60),
133 B(LdaSmi), U8(1), 135 B(LdaSmi), U8(1),
134 B(TestEqualStrict), R(1), U8(0), 136 B(TestEqualStrict), R(1), U8(0),
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 B(Star), R(3), 224 B(Star), R(3),
223 B(LdaSmi), U8(2), 225 B(LdaSmi), U8(2),
224 B(Star), R(2), 226 B(Star), R(2),
225 B(Jump), U8(14), 227 B(Jump), U8(14),
226 B(LdaSmi), U8(-1), 228 B(LdaSmi), U8(-1),
227 B(Star), R(2), 229 B(Star), R(2),
228 B(Jump), U8(8), 230 B(Jump), U8(8),
229 B(Star), R(3), 231 B(Star), R(3),
230 B(LdaSmi), U8(3), 232 B(LdaSmi), U8(3),
231 B(Star), R(2), 233 B(Star), R(2),
232 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 234 B(LdaTheHole),
235 B(SetPendingMessage),
233 B(Star), R(4), 236 B(Star), R(4),
234 B(LdaCurrentContextSlot), U8(5), 237 B(LdaCurrentContextSlot), U8(5),
235 B(Star), R(5), 238 B(Star), R(5),
236 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(5), U8(1), 239 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(5), U8(1),
237 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(4 ), U8(1), 240 B(Ldar), R(4),
241 B(SetPendingMessage),
238 B(LdaZero), 242 B(LdaZero),
239 B(TestEqualStrict), R(2), U8(0), 243 B(TestEqualStrict), R(2), U8(0),
240 B(JumpIfTrue), U8(25), 244 B(JumpIfTrue), U8(25),
241 B(LdaSmi), U8(1), 245 B(LdaSmi), U8(1),
242 B(TestEqualStrict), R(2), U8(0), 246 B(TestEqualStrict), R(2), U8(0),
243 B(JumpIfTrue), U8(21), 247 B(JumpIfTrue), U8(21),
244 B(LdaSmi), U8(2), 248 B(LdaSmi), U8(2),
245 B(TestEqualStrict), R(2), U8(0), 249 B(TestEqualStrict), R(2), U8(0),
246 B(JumpIfTrue), U8(17), 250 B(JumpIfTrue), U8(17),
247 B(LdaSmi), U8(3), 251 B(LdaSmi), U8(3),
(...skipping 18 matching lines...) Expand all
266 [46, 225, 231], 270 [46, 225, 231],
267 ] 271 ]
268 272
269 --- 273 ---
270 snippet: " 274 snippet: "
271 function* f() { for (let x of [42]) yield x } 275 function* f() { for (let x of [42]) yield x }
272 f(); 276 f();
273 " 277 "
274 frame size: 18 278 frame size: 18
275 parameter count: 1 279 parameter count: 1
276 bytecode array length: 796 280 bytecode array length: 783
277 bytecodes: [ 281 bytecodes: [
278 B(Ldar), R(new_target), 282 B(Ldar), R(new_target),
279 B(JumpIfUndefined), U8(28), 283 B(JumpIfUndefined), U8(28),
280 B(ResumeGenerator), R(new_target), 284 B(ResumeGenerator), R(new_target),
281 B(Star), R(4), 285 B(Star), R(4),
282 B(LdaZero), 286 B(LdaZero),
283 B(TestEqualStrict), R(4), U8(0), 287 B(TestEqualStrict), R(4), U8(0),
284 B(JumpIfTrue), U8(60), 288 B(JumpIfTrue), U8(60),
285 B(LdaSmi), U8(1), 289 B(LdaSmi), U8(1),
286 B(TestEqualStrict), R(4), U8(0), 290 B(TestEqualStrict), R(4), U8(0),
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 B(LdaCurrentContextSlot), U8(4), 454 B(LdaCurrentContextSlot), U8(4),
451 B(Star), R(12), 455 B(Star), R(12),
452 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), 456 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1),
453 B(PopContext), R(2), 457 B(PopContext), R(2),
454 B(LdaSmi), U8(-1), 458 B(LdaSmi), U8(-1),
455 B(Star), R(8), 459 B(Star), R(8),
456 B(Jump), U8(8), 460 B(Jump), U8(8),
457 B(Star), R(9), 461 B(Star), R(9),
458 B(LdaSmi), U8(1), 462 B(LdaSmi), U8(1),
459 B(Star), R(8), 463 B(Star), R(8),
460 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 464 B(LdaTheHole),
465 B(SetPendingMessage),
461 B(Star), R(10), 466 B(Star), R(10),
462 B(LdaContextSlot), R(1), U8(9), U8(0), 467 B(LdaContextSlot), R(1), U8(9), U8(0),
463 B(Star), R(11), 468 B(Star), R(11),
464 B(LdaZero), 469 B(LdaZero),
465 B(TestEqualStrict), R(11), U8(15), 470 B(TestEqualStrict), R(11), U8(15),
466 B(JumpIfTrueConstant), U8(17), 471 B(JumpIfTrueConstant), U8(17),
467 B(LdaContextSlot), R(1), U8(7), U8(0), 472 B(LdaContextSlot), R(1), U8(7), U8(0),
468 B(Star), R(11), 473 B(Star), R(11),
469 B(LdaUndefined), 474 B(LdaUndefined),
470 B(TestEqualStrict), R(11), U8(16), 475 B(TestEqualStrict), R(11), U8(16),
471 B(JumpIfTrueConstant), U8(18), 476 B(JumpIfTrueConstant), U8(18),
472 B(LdaContextSlot), R(1), U8(7), U8(0), 477 B(LdaContextSlot), R(1), U8(7), U8(0),
473 B(Star), R(11), 478 B(Star), R(11),
474 B(LdaNamedProperty), R(11), U8(12), U8(17), 479 B(LdaNamedProperty), R(11), U8(12), U8(17),
475 B(StaContextSlot), R(1), U8(11), U8(0), 480 B(StaContextSlot), R(1), U8(11), U8(0),
476 B(LdaContextSlot), R(1), U8(11), U8(0), 481 B(LdaContextSlot), R(1), U8(11), U8(0),
477 B(Star), R(11), 482 B(Star), R(11),
478 B(LdaNull), 483 B(LdaNull),
479 B(TestEqual), R(11), U8(19), 484 B(TestEqual), R(11), U8(19),
480 B(JumpIfFalse), U8(4), 485 B(JumpIfFalse), U8(4),
481 B(JumpConstant), U8(16), 486 B(JumpConstant), U8(16),
482 B(LdaContextSlot), R(1), U8(9), U8(0), 487 B(LdaContextSlot), R(1), U8(9), U8(0),
483 B(Star), R(11), 488 B(Star), R(11),
484 B(LdaSmi), U8(1), 489 B(LdaSmi), U8(1),
485 B(TestEqualStrict), R(11), U8(20), 490 B(TestEqualStrict), R(11), U8(20),
486 B(JumpIfFalse), U8(78), 491 B(JumpIfFalse), U8(75),
487 B(LdaContextSlot), R(1), U8(11), U8(0), 492 B(LdaContextSlot), R(1), U8(11), U8(0),
488 B(TypeOf), 493 B(TypeOf),
489 B(Star), R(11), 494 B(Star), R(11),
490 B(LdaConstant), U8(13), 495 B(LdaConstant), U8(13),
491 B(TestEqualStrict), R(11), U8(21), 496 B(TestEqualStrict), R(11), U8(21),
492 B(JumpIfFalse), U8(4), 497 B(JumpIfFalse), U8(4),
493 B(Jump), U8(18), 498 B(Jump), U8(18),
494 B(Wide), B(LdaSmi), U16(130), 499 B(Wide), B(LdaSmi), U16(130),
495 B(Star), R(11), 500 B(Star), R(11),
496 B(LdaConstant), U8(14), 501 B(LdaConstant), U8(14),
497 B(Star), R(12), 502 B(Star), R(12),
498 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), 503 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
499 B(Throw), 504 B(Throw),
500 B(Mov), R(context), R(11), 505 B(Mov), R(context), R(11),
501 B(LdaContextSlot), R(1), U8(11), U8(0), 506 B(LdaContextSlot), R(1), U8(11), U8(0),
502 B(Star), R(12), 507 B(Star), R(12),
503 B(LdaContextSlot), R(1), U8(7), U8(0), 508 B(LdaContextSlot), R(1), U8(7), U8(0),
504 B(Star), R(13), 509 B(Star), R(13),
505 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), 510 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
506 B(Jump), U8(23), 511 B(Jump), U8(20),
507 B(Star), R(12), 512 B(Star), R(12),
508 B(Ldar), R(closure), 513 B(Ldar), R(closure),
509 B(CreateCatchContext), R(12), U8(10), U8(15), 514 B(CreateCatchContext), R(12), U8(10), U8(15),
510 B(Star), R(11), 515 B(Star), R(11),
511 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 516 B(LdaTheHole),
517 B(SetPendingMessage),
512 B(Ldar), R(11), 518 B(Ldar), R(11),
513 B(PushContext), R(2), 519 B(PushContext), R(2),
514 B(PopContext), R(2), 520 B(PopContext), R(2),
515 B(Jump), U8(47), 521 B(Jump), U8(47),
516 B(LdaContextSlot), R(1), U8(11), U8(0), 522 B(LdaContextSlot), R(1), U8(11), U8(0),
517 B(Star), R(11), 523 B(Star), R(11),
518 B(LdaContextSlot), R(1), U8(7), U8(0), 524 B(LdaContextSlot), R(1), U8(7), U8(0),
519 B(Star), R(12), 525 B(Star), R(12),
520 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2), 526 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2),
521 B(StaContextSlot), R(1), U8(12), U8(0), 527 B(StaContextSlot), R(1), U8(12), U8(0),
522 B(LdaContextSlot), R(1), U8(12), U8(0), 528 B(LdaContextSlot), R(1), U8(12), U8(0),
523 B(Star), R(11), 529 B(Star), R(11),
524 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1), 530 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1),
525 B(JumpIfToBooleanFalse), U8(4), 531 B(JumpIfToBooleanFalse), U8(4),
526 B(Jump), U8(13), 532 B(Jump), U8(13),
527 B(LdaContextSlot), R(1), U8(12), U8(0), 533 B(LdaContextSlot), R(1), U8(12), U8(0),
528 B(Star), R(11), 534 B(Star), R(11),
529 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (11), U8(1), 535 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (11), U8(1),
530 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 0), U8(1), 536 B(Ldar), R(10),
537 B(SetPendingMessage),
531 B(LdaZero), 538 B(LdaZero),
532 B(TestEqualStrict), R(8), U8(0), 539 B(TestEqualStrict), R(8), U8(0),
533 B(JumpIfTrue), U8(11), 540 B(JumpIfTrue), U8(11),
534 B(LdaSmi), U8(1), 541 B(LdaSmi), U8(1),
535 B(TestEqualStrict), R(8), U8(0), 542 B(TestEqualStrict), R(8), U8(0),
536 B(JumpIfTrue), U8(17), 543 B(JumpIfTrue), U8(17),
537 B(Jump), U8(28), 544 B(Jump), U8(28),
538 B(PopContext), R(1), 545 B(PopContext), R(1),
539 B(PopContext), R(1), 546 B(PopContext), R(1),
540 B(LdaSmi), U8(1), 547 B(LdaSmi), U8(1),
(...skipping 15 matching lines...) Expand all
556 B(Star), R(6), 563 B(Star), R(6),
557 B(LdaSmi), U8(3), 564 B(LdaSmi), U8(3),
558 B(Star), R(5), 565 B(Star), R(5),
559 B(Jump), U8(14), 566 B(Jump), U8(14),
560 B(LdaSmi), U8(-1), 567 B(LdaSmi), U8(-1),
561 B(Star), R(5), 568 B(Star), R(5),
562 B(Jump), U8(8), 569 B(Jump), U8(8),
563 B(Star), R(6), 570 B(Star), R(6),
564 B(LdaSmi), U8(4), 571 B(LdaSmi), U8(4),
565 B(Star), R(5), 572 B(Star), R(5),
566 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 573 B(LdaTheHole),
574 B(SetPendingMessage),
567 B(Star), R(7), 575 B(Star), R(7),
568 B(LdaCurrentContextSlot), U8(5), 576 B(LdaCurrentContextSlot), U8(5),
569 B(Star), R(8), 577 B(Star), R(8),
570 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(8), U8(1), 578 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(8), U8(1),
571 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(7 ), U8(1), 579 B(Ldar), R(7),
580 B(SetPendingMessage),
572 B(LdaZero), 581 B(LdaZero),
573 B(TestEqualStrict), R(5), U8(0), 582 B(TestEqualStrict), R(5), U8(0),
574 B(JumpIfTrue), U8(32), 583 B(JumpIfTrue), U8(32),
575 B(LdaSmi), U8(1), 584 B(LdaSmi), U8(1),
576 B(TestEqualStrict), R(5), U8(0), 585 B(TestEqualStrict), R(5), U8(0),
577 B(JumpIfTrue), U8(28), 586 B(JumpIfTrue), U8(28),
578 B(LdaSmi), U8(2), 587 B(LdaSmi), U8(2),
579 B(TestEqualStrict), R(5), U8(0), 588 B(TestEqualStrict), R(5), U8(0),
580 B(JumpIfTrue), U8(24), 589 B(JumpIfTrue), U8(24),
581 B(LdaSmi), U8(3), 590 B(LdaSmi), U8(3),
(...skipping 26 matching lines...) Expand all
608 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 617 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
609 FIXED_ARRAY_TYPE, 618 FIXED_ARRAY_TYPE,
610 Smi [135], 619 Smi [135],
611 Smi [152], 620 Smi [152],
612 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 621 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
613 FIXED_ARRAY_TYPE, 622 FIXED_ARRAY_TYPE,
614 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 623 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
615 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 624 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
616 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 625 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
617 FIXED_ARRAY_TYPE, 626 FIXED_ARRAY_TYPE,
618 Smi [136], 627 Smi [133],
619 Smi [176], 628 Smi [173],
620 Smi [164], 629 Smi [161],
621 Smi [601], 630 Smi [593],
622 ] 631 ]
623 handlers: [ 632 handlers: [
624 [46, 710, 716], 633 [46, 702, 708],
625 [143, 438, 444], 634 [143, 438, 444],
626 [146, 394, 396], 635 [146, 394, 396],
627 [557, 573, 575], 636 [554, 570, 572],
628 ] 637 ]
629 638
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698