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

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: georg's comments 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: 175 606 bytecode array length: 175
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 parameter count: 2 696 parameter count: 2
697 bytecode array length: 125 697 bytecode array length: 125
698 bytecodes: [ 698 bytecodes: [
699 B(Ldar), R(new_target), 699 B(Ldar), R(new_target),
700 B(JumpIfUndefined), U8(21), 700 B(JumpIfUndefined), U8(21),
701 B(ResumeGenerator), R(new_target), 701 B(ResumeGenerator), R(new_target),
702 B(Star), R(1), 702 B(Star), R(1),
703 B(LdaZero), 703 B(LdaZero),
704 B(TestEqualStrict), R(1), U8(0), 704 B(TestEqualStrict), R(1), U8(0),
705 B(JumpIfTrue), U8(63), 705 B(JumpIfTrue), U8(63),
706 B(LdaSmi), U8(77), 706 B(LdaSmi), U8(78),
707 B(Star), R(2), 707 B(Star), R(2),
708 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 708 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
709 B(LdaSmi), U8(-2), 709 B(LdaSmi), U8(-2),
710 B(Star), R(1), 710 B(Star), R(1),
711 B(LdaConstant), U8(0), 711 B(LdaConstant), U8(0),
712 B(Star), R(4), 712 B(Star), R(4),
713 B(Mov), R(arg0), R(2), 713 B(Mov), R(arg0), R(2),
714 B(Mov), R(closure), R(3), 714 B(Mov), R(closure), R(3),
715 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 715 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
716 B(PushContext), R(0), 716 B(PushContext), R(0),
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 parameter count: 2 766 parameter count: 2
767 bytecode array length: 125 767 bytecode array length: 125
768 bytecodes: [ 768 bytecodes: [
769 B(Ldar), R(new_target), 769 B(Ldar), R(new_target),
770 B(JumpIfUndefined), U8(21), 770 B(JumpIfUndefined), U8(21),
771 B(ResumeGenerator), R(new_target), 771 B(ResumeGenerator), R(new_target),
772 B(Star), R(1), 772 B(Star), R(1),
773 B(LdaZero), 773 B(LdaZero),
774 B(TestEqualStrict), R(1), U8(0), 774 B(TestEqualStrict), R(1), U8(0),
775 B(JumpIfTrue), U8(63), 775 B(JumpIfTrue), U8(63),
776 B(LdaSmi), U8(77), 776 B(LdaSmi), U8(78),
777 B(Star), R(2), 777 B(Star), R(2),
778 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 778 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
779 B(LdaSmi), U8(-2), 779 B(LdaSmi), U8(-2),
780 B(Star), R(1), 780 B(Star), R(1),
781 B(LdaConstant), U8(0), 781 B(LdaConstant), U8(0),
782 B(Star), R(4), 782 B(Star), R(4),
783 B(Mov), R(arg0), R(2), 783 B(Mov), R(arg0), R(2),
784 B(Mov), R(closure), R(3), 784 B(Mov), R(closure), R(3),
785 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 785 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
786 B(PushContext), R(0), 786 B(PushContext), R(0),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 parameter count: 2 837 parameter count: 2
838 bytecode array length: 164 838 bytecode array length: 164
839 bytecodes: [ 839 bytecodes: [
840 B(Ldar), R(new_target), 840 B(Ldar), R(new_target),
841 B(JumpIfUndefined), U8(21), 841 B(JumpIfUndefined), U8(21),
842 B(ResumeGenerator), R(new_target), 842 B(ResumeGenerator), R(new_target),
843 B(Star), R(1), 843 B(Star), R(1),
844 B(LdaZero), 844 B(LdaZero),
845 B(TestEqualStrict), R(1), U8(0), 845 B(TestEqualStrict), R(1), U8(0),
846 B(JumpIfTrue), U8(73), 846 B(JumpIfTrue), U8(73),
847 B(LdaSmi), U8(77), 847 B(LdaSmi), U8(78),
848 B(Star), R(2), 848 B(Star), R(2),
849 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 849 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
850 B(LdaSmi), U8(-2), 850 B(LdaSmi), U8(-2),
851 B(Star), R(1), 851 B(Star), R(1),
852 B(LdaConstant), U8(0), 852 B(LdaConstant), U8(0),
853 B(Star), R(4), 853 B(Star), R(4),
854 B(Mov), R(arg0), R(2), 854 B(Mov), R(arg0), R(2),
855 B(Mov), R(closure), R(3), 855 B(Mov), R(closure), R(3),
856 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 856 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
857 B(PushContext), R(0), 857 B(PushContext), R(0),
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 /* 45 S> */ B(Return), 909 /* 45 S> */ B(Return),
910 ] 910 ]
911 constant pool: [ 911 constant pool: [
912 FIXED_ARRAY_TYPE, 912 FIXED_ARRAY_TYPE,
913 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], 913 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
914 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 914 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
915 ] 915 ]
916 handlers: [ 916 handlers: [
917 ] 917 ]
918 918
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698