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

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

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: get tests passing 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: no 6 wrap: no
7 module: yes 7 module: yes
8 top level: yes 8 top level: yes
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 import \"bar\"; 12 import \"bar\";
13 " 13 "
14 frame size: 8 14 frame size: 8
15 parameter count: 2 15 parameter count: 2
16 bytecode array length: 125 16 bytecode array length: 125
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(63), 24 B(JumpIfTrue), U8(63),
25 B(LdaSmi), U8(77), 25 B(LdaSmi), U8(78),
26 B(Star), R(2), 26 B(Star), R(2),
27 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 27 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
28 B(LdaSmi), U8(-2), 28 B(LdaSmi), U8(-2),
29 B(Star), R(1), 29 B(Star), R(1),
30 B(LdaConstant), U8(0), 30 B(LdaConstant), U8(0),
31 B(Star), R(4), 31 B(Star), R(4),
32 B(Mov), R(arg0), R(2), 32 B(Mov), R(arg0), R(2),
33 B(Mov), R(closure), R(3), 33 B(Mov), R(closure), R(3),
34 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 34 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
35 B(PushContext), R(0), 35 B(PushContext), R(0),
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 parameter count: 2 85 parameter count: 2
86 bytecode array length: 125 86 bytecode array length: 125
87 bytecodes: [ 87 bytecodes: [
88 B(Ldar), R(new_target), 88 B(Ldar), R(new_target),
89 B(JumpIfUndefined), U8(21), 89 B(JumpIfUndefined), U8(21),
90 B(ResumeGenerator), R(new_target), 90 B(ResumeGenerator), R(new_target),
91 B(Star), R(1), 91 B(Star), R(1),
92 B(LdaZero), 92 B(LdaZero),
93 B(TestEqualStrict), R(1), U8(0), 93 B(TestEqualStrict), R(1), U8(0),
94 B(JumpIfTrue), U8(63), 94 B(JumpIfTrue), U8(63),
95 B(LdaSmi), U8(77), 95 B(LdaSmi), U8(78),
96 B(Star), R(2), 96 B(Star), R(2),
97 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 97 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
98 B(LdaSmi), U8(-2), 98 B(LdaSmi), U8(-2),
99 B(Star), R(1), 99 B(Star), R(1),
100 B(LdaConstant), U8(0), 100 B(LdaConstant), U8(0),
101 B(Star), R(4), 101 B(Star), R(4),
102 B(Mov), R(arg0), R(2), 102 B(Mov), R(arg0), R(2),
103 B(Mov), R(closure), R(3), 103 B(Mov), R(closure), R(3),
104 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 104 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
105 B(PushContext), R(0), 105 B(PushContext), R(0),
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 parameter count: 2 157 parameter count: 2
158 bytecode array length: 195 158 bytecode array length: 195
159 bytecodes: [ 159 bytecodes: [
160 B(Ldar), R(new_target), 160 B(Ldar), R(new_target),
161 B(JumpIfUndefined), U8(21), 161 B(JumpIfUndefined), U8(21),
162 B(ResumeGenerator), R(new_target), 162 B(ResumeGenerator), R(new_target),
163 B(Star), R(2), 163 B(Star), R(2),
164 B(LdaZero), 164 B(LdaZero),
165 B(TestEqualStrict), R(2), U8(0), 165 B(TestEqualStrict), R(2), U8(0),
166 B(JumpIfTrue), U8(63), 166 B(JumpIfTrue), U8(63),
167 B(LdaSmi), U8(77), 167 B(LdaSmi), U8(78),
168 B(Star), R(3), 168 B(Star), R(3),
169 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 169 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
170 B(LdaSmi), U8(-2), 170 B(LdaSmi), U8(-2),
171 B(Star), R(2), 171 B(Star), R(2),
172 B(LdaConstant), U8(0), 172 B(LdaConstant), U8(0),
173 B(Star), R(5), 173 B(Star), R(5),
174 B(Mov), R(arg0), R(3), 174 B(Mov), R(arg0), R(3),
175 B(Mov), R(closure), R(4), 175 B(Mov), R(closure), R(4),
176 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 176 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
177 B(PushContext), R(0), 177 B(PushContext), R(0),
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 parameter count: 2 261 parameter count: 2
262 bytecode array length: 160 262 bytecode array length: 160
263 bytecodes: [ 263 bytecodes: [
264 B(Ldar), R(new_target), 264 B(Ldar), R(new_target),
265 B(JumpIfUndefined), U8(21), 265 B(JumpIfUndefined), U8(21),
266 B(ResumeGenerator), R(new_target), 266 B(ResumeGenerator), R(new_target),
267 B(Star), R(2), 267 B(Star), R(2),
268 B(LdaZero), 268 B(LdaZero),
269 B(TestEqualStrict), R(2), U8(0), 269 B(TestEqualStrict), R(2), U8(0),
270 B(JumpIfTrue), U8(63), 270 B(JumpIfTrue), U8(63),
271 B(LdaSmi), U8(77), 271 B(LdaSmi), U8(78),
272 B(Star), R(3), 272 B(Star), R(3),
273 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 273 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
274 B(LdaSmi), U8(-2), 274 B(LdaSmi), U8(-2),
275 B(Star), R(2), 275 B(Star), R(2),
276 B(LdaConstant), U8(0), 276 B(LdaConstant), U8(0),
277 B(Star), R(5), 277 B(Star), R(5),
278 B(Mov), R(arg0), R(3), 278 B(Mov), R(arg0), R(3),
279 B(Mov), R(closure), R(4), 279 B(Mov), R(closure), R(4),
280 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 280 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
281 B(PushContext), R(0), 281 B(PushContext), R(0),
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 parameter count: 2 350 parameter count: 2
351 bytecode array length: 164 351 bytecode array length: 164
352 bytecodes: [ 352 bytecodes: [
353 B(Ldar), R(new_target), 353 B(Ldar), R(new_target),
354 B(JumpIfUndefined), U8(21), 354 B(JumpIfUndefined), U8(21),
355 B(ResumeGenerator), R(new_target), 355 B(ResumeGenerator), R(new_target),
356 B(Star), R(2), 356 B(Star), R(2),
357 B(LdaZero), 357 B(LdaZero),
358 B(TestEqualStrict), R(2), U8(0), 358 B(TestEqualStrict), R(2), U8(0),
359 B(JumpIfTrue), U8(67), 359 B(JumpIfTrue), U8(67),
360 B(LdaSmi), U8(77), 360 B(LdaSmi), U8(78),
361 B(Star), R(3), 361 B(Star), R(3),
362 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 362 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
363 B(LdaSmi), U8(-2), 363 B(LdaSmi), U8(-2),
364 B(Star), R(2), 364 B(Star), R(2),
365 B(LdaConstant), U8(0), 365 B(LdaConstant), U8(0),
366 B(Star), R(5), 366 B(Star), R(5),
367 B(Mov), R(arg0), R(3), 367 B(Mov), R(arg0), R(3),
368 B(Mov), R(closure), R(4), 368 B(Mov), R(closure), R(4),
369 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 369 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
370 B(PushContext), R(0), 370 B(PushContext), R(0),
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 parameter count: 2 441 parameter count: 2
442 bytecode array length: 168 442 bytecode array length: 168
443 bytecodes: [ 443 bytecodes: [
444 B(Ldar), R(new_target), 444 B(Ldar), R(new_target),
445 B(JumpIfUndefined), U8(21), 445 B(JumpIfUndefined), U8(21),
446 B(ResumeGenerator), R(new_target), 446 B(ResumeGenerator), R(new_target),
447 B(Star), R(2), 447 B(Star), R(2),
448 B(LdaZero), 448 B(LdaZero),
449 B(TestEqualStrict), R(2), U8(0), 449 B(TestEqualStrict), R(2), U8(0),
450 B(JumpIfTrue), U8(67), 450 B(JumpIfTrue), U8(67),
451 B(LdaSmi), U8(77), 451 B(LdaSmi), U8(78),
452 B(Star), R(3), 452 B(Star), R(3),
453 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 453 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
454 B(LdaSmi), U8(-2), 454 B(LdaSmi), U8(-2),
455 B(Star), R(2), 455 B(Star), R(2),
456 B(LdaConstant), U8(0), 456 B(LdaConstant), U8(0),
457 B(Star), R(5), 457 B(Star), R(5),
458 B(Mov), R(arg0), R(3), 458 B(Mov), R(arg0), R(3),
459 B(Mov), R(closure), R(4), 459 B(Mov), R(closure), R(4),
460 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 460 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
461 B(PushContext), R(0), 461 B(PushContext), R(0),
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 parameter count: 2 530 parameter count: 2
531 bytecode array length: 135 531 bytecode array length: 135
532 bytecodes: [ 532 bytecodes: [
533 B(Ldar), R(new_target), 533 B(Ldar), R(new_target),
534 B(JumpIfUndefined), U8(21), 534 B(JumpIfUndefined), U8(21),
535 B(ResumeGenerator), R(new_target), 535 B(ResumeGenerator), R(new_target),
536 B(Star), R(1), 536 B(Star), R(1),
537 B(LdaZero), 537 B(LdaZero),
538 B(TestEqualStrict), R(1), U8(0), 538 B(TestEqualStrict), R(1), U8(0),
539 B(JumpIfTrue), U8(67), 539 B(JumpIfTrue), U8(67),
540 B(LdaSmi), U8(77), 540 B(LdaSmi), U8(78),
541 B(Star), R(2), 541 B(Star), R(2),
542 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 542 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
543 B(LdaSmi), U8(-2), 543 B(LdaSmi), U8(-2),
544 B(Star), R(1), 544 B(Star), R(1),
545 B(LdaConstant), U8(0), 545 B(LdaConstant), U8(0),
546 B(Star), R(4), 546 B(Star), R(4),
547 B(Mov), R(arg0), R(2), 547 B(Mov), R(arg0), R(2),
548 B(Mov), R(closure), R(3), 548 B(Mov), R(closure), R(3),
549 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 549 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
550 B(PushContext), R(0), 550 B(PushContext), R(0),
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 parameter count: 2 605 parameter count: 2
606 bytecode array length: 170 606 bytecode array length: 170
607 bytecodes: [ 607 bytecodes: [
608 B(Ldar), R(new_target), 608 B(Ldar), R(new_target),
609 B(JumpIfUndefined), U8(21), 609 B(JumpIfUndefined), U8(21),
610 B(ResumeGenerator), R(new_target), 610 B(ResumeGenerator), R(new_target),
611 B(Star), R(1), 611 B(Star), R(1),
612 B(LdaZero), 612 B(LdaZero),
613 B(TestEqualStrict), R(1), U8(0), 613 B(TestEqualStrict), R(1), U8(0),
614 B(JumpIfTrue), U8(67), 614 B(JumpIfTrue), U8(67),
615 B(LdaSmi), U8(77), 615 B(LdaSmi), U8(78),
616 B(Star), R(2), 616 B(Star), R(2),
617 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 617 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
618 B(LdaSmi), U8(-2), 618 B(LdaSmi), U8(-2),
619 B(Star), R(1), 619 B(Star), R(1),
620 B(LdaConstant), U8(0), 620 B(LdaConstant), U8(0),
621 B(Star), R(4), 621 B(Star), R(4),
622 B(Mov), R(arg0), R(2), 622 B(Mov), R(arg0), R(2),
623 B(Mov), R(closure), R(3), 623 B(Mov), R(closure), R(3),
624 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 624 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
625 B(PushContext), R(0), 625 B(PushContext), R(0),
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 parameter count: 2 695 parameter count: 2
696 bytecode array length: 125 696 bytecode array length: 125
697 bytecodes: [ 697 bytecodes: [
698 B(Ldar), R(new_target), 698 B(Ldar), R(new_target),
699 B(JumpIfUndefined), U8(21), 699 B(JumpIfUndefined), U8(21),
700 B(ResumeGenerator), R(new_target), 700 B(ResumeGenerator), R(new_target),
701 B(Star), R(1), 701 B(Star), R(1),
702 B(LdaZero), 702 B(LdaZero),
703 B(TestEqualStrict), R(1), U8(0), 703 B(TestEqualStrict), R(1), U8(0),
704 B(JumpIfTrue), U8(63), 704 B(JumpIfTrue), U8(63),
705 B(LdaSmi), U8(77), 705 B(LdaSmi), U8(78),
706 B(Star), R(2), 706 B(Star), R(2),
707 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 707 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
708 B(LdaSmi), U8(-2), 708 B(LdaSmi), U8(-2),
709 B(Star), R(1), 709 B(Star), R(1),
710 B(LdaConstant), U8(0), 710 B(LdaConstant), U8(0),
711 B(Star), R(4), 711 B(Star), R(4),
712 B(Mov), R(arg0), R(2), 712 B(Mov), R(arg0), R(2),
713 B(Mov), R(closure), R(3), 713 B(Mov), R(closure), R(3),
714 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 714 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
715 B(PushContext), R(0), 715 B(PushContext), R(0),
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 parameter count: 2 765 parameter count: 2
766 bytecode array length: 125 766 bytecode array length: 125
767 bytecodes: [ 767 bytecodes: [
768 B(Ldar), R(new_target), 768 B(Ldar), R(new_target),
769 B(JumpIfUndefined), U8(21), 769 B(JumpIfUndefined), U8(21),
770 B(ResumeGenerator), R(new_target), 770 B(ResumeGenerator), R(new_target),
771 B(Star), R(1), 771 B(Star), R(1),
772 B(LdaZero), 772 B(LdaZero),
773 B(TestEqualStrict), R(1), U8(0), 773 B(TestEqualStrict), R(1), U8(0),
774 B(JumpIfTrue), U8(63), 774 B(JumpIfTrue), U8(63),
775 B(LdaSmi), U8(77), 775 B(LdaSmi), U8(78),
776 B(Star), R(2), 776 B(Star), R(2),
777 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 777 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
778 B(LdaSmi), U8(-2), 778 B(LdaSmi), U8(-2),
779 B(Star), R(1), 779 B(Star), R(1),
780 B(LdaConstant), U8(0), 780 B(LdaConstant), U8(0),
781 B(Star), R(4), 781 B(Star), R(4),
782 B(Mov), R(arg0), R(2), 782 B(Mov), R(arg0), R(2),
783 B(Mov), R(closure), R(3), 783 B(Mov), R(closure), R(3),
784 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 784 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
785 B(PushContext), R(0), 785 B(PushContext), R(0),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 parameter count: 2 836 parameter count: 2
837 bytecode array length: 164 837 bytecode array length: 164
838 bytecodes: [ 838 bytecodes: [
839 B(Ldar), R(new_target), 839 B(Ldar), R(new_target),
840 B(JumpIfUndefined), U8(21), 840 B(JumpIfUndefined), U8(21),
841 B(ResumeGenerator), R(new_target), 841 B(ResumeGenerator), R(new_target),
842 B(Star), R(1), 842 B(Star), R(1),
843 B(LdaZero), 843 B(LdaZero),
844 B(TestEqualStrict), R(1), U8(0), 844 B(TestEqualStrict), R(1), U8(0),
845 B(JumpIfTrue), U8(73), 845 B(JumpIfTrue), U8(73),
846 B(LdaSmi), U8(77), 846 B(LdaSmi), U8(78),
847 B(Star), R(2), 847 B(Star), R(2),
848 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 848 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
849 B(LdaSmi), U8(-2), 849 B(LdaSmi), U8(-2),
850 B(Star), R(1), 850 B(Star), R(1),
851 B(LdaConstant), U8(0), 851 B(LdaConstant), U8(0),
852 B(Star), R(4), 852 B(Star), R(4),
853 B(Mov), R(arg0), R(2), 853 B(Mov), R(arg0), R(2),
854 B(Mov), R(closure), R(3), 854 B(Mov), R(closure), R(3),
855 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 855 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
856 B(PushContext), R(0), 856 B(PushContext), R(0),
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 /* 45 S> */ B(Return), 908 /* 45 S> */ B(Return),
909 ] 909 ]
910 constant pool: [ 910 constant pool: [
911 FIXED_ARRAY_TYPE, 911 FIXED_ARRAY_TYPE,
912 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], 912 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
913 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 913 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
914 ] 914 ]
915 handlers: [ 915 handlers: [
916 ] 916 ]
917 917
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698