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

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

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: rebase Created 3 years, 8 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 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: 9 14 frame size: 9
15 parameter count: 2 15 parameter count: 2
16 bytecode array length: 143 16 bytecode array length: 143
17 bytecodes: [ 17 bytecodes: [
18 B(Ldar), R(new_target), 18 B(Ldar), R(new_target),
19 B(JumpIfUndefined), U8(27), 19 B(JumpIfUndefined), U8(27),
20 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 20 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
21 B(PushContext), R(2), 21 B(PushContext), R(2),
22 B(ResumeGenerator), R(new_target), 22 B(ResumeGenerator), R(new_target),
23 B(Star), R(1), 23 B(Star), R(1),
24 B(LdaZero), 24 B(LdaZero),
25 B(TestEqualStrictNoFeedback), R(1), 25 B(TestEqualStrictNoFeedback), R(1),
26 B(JumpIfTrue), U8(64), 26 B(JumpIfTrue), U8(64),
27 B(LdaSmi), I8(78), 27 B(LdaSmi), I8(79),
28 B(Star), R(3), 28 B(Star), R(3),
29 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 29 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
30 B(LdaSmi), I8(-2), 30 B(LdaSmi), I8(-2),
31 B(Star), R(1), 31 B(Star), R(1),
32 B(LdaConstant), U8(0), 32 B(LdaConstant), U8(0),
33 B(Star), R(5), 33 B(Star), R(5),
34 B(Mov), R(arg0), R(3), 34 B(Mov), R(arg0), R(3),
35 B(Mov), R(closure), R(4), 35 B(Mov), R(closure), R(4),
36 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 36 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
37 B(PushContext), R(0), 37 B(PushContext), R(0),
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bytecodes: [ 95 bytecodes: [
96 B(Ldar), R(new_target), 96 B(Ldar), R(new_target),
97 B(JumpIfUndefined), U8(27), 97 B(JumpIfUndefined), U8(27),
98 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 98 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
99 B(PushContext), R(2), 99 B(PushContext), R(2),
100 B(ResumeGenerator), R(new_target), 100 B(ResumeGenerator), R(new_target),
101 B(Star), R(1), 101 B(Star), R(1),
102 B(LdaZero), 102 B(LdaZero),
103 B(TestEqualStrictNoFeedback), R(1), 103 B(TestEqualStrictNoFeedback), R(1),
104 B(JumpIfTrue), U8(64), 104 B(JumpIfTrue), U8(64),
105 B(LdaSmi), I8(78), 105 B(LdaSmi), I8(79),
106 B(Star), R(3), 106 B(Star), R(3),
107 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 107 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
108 B(LdaSmi), I8(-2), 108 B(LdaSmi), I8(-2),
109 B(Star), R(1), 109 B(Star), R(1),
110 B(LdaConstant), U8(0), 110 B(LdaConstant), U8(0),
111 B(Star), R(5), 111 B(Star), R(5),
112 B(Mov), R(arg0), R(3), 112 B(Mov), R(arg0), R(3),
113 B(Mov), R(closure), R(4), 113 B(Mov), R(closure), R(4),
114 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 114 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
115 B(PushContext), R(0), 115 B(PushContext), R(0),
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 bytecodes: [ 175 bytecodes: [
176 B(Ldar), R(new_target), 176 B(Ldar), R(new_target),
177 B(JumpIfUndefined), U8(27), 177 B(JumpIfUndefined), U8(27),
178 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 178 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
179 B(PushContext), R(3), 179 B(PushContext), R(3),
180 B(ResumeGenerator), R(new_target), 180 B(ResumeGenerator), R(new_target),
181 B(Star), R(2), 181 B(Star), R(2),
182 B(LdaZero), 182 B(LdaZero),
183 B(TestEqualStrictNoFeedback), R(2), 183 B(TestEqualStrictNoFeedback), R(2),
184 B(JumpIfTrue), U8(64), 184 B(JumpIfTrue), U8(64),
185 B(LdaSmi), I8(78), 185 B(LdaSmi), I8(79),
186 B(Star), R(4), 186 B(Star), R(4),
187 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 187 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
188 B(LdaSmi), I8(-2), 188 B(LdaSmi), I8(-2),
189 B(Star), R(2), 189 B(Star), R(2),
190 B(LdaConstant), U8(0), 190 B(LdaConstant), U8(0),
191 B(Star), R(6), 191 B(Star), R(6),
192 B(Mov), R(arg0), R(4), 192 B(Mov), R(arg0), R(4),
193 B(Mov), R(closure), R(5), 193 B(Mov), R(closure), R(5),
194 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), 194 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3),
195 B(PushContext), R(0), 195 B(PushContext), R(0),
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 bytecodes: [ 286 bytecodes: [
287 B(Ldar), R(new_target), 287 B(Ldar), R(new_target),
288 B(JumpIfUndefined), U8(27), 288 B(JumpIfUndefined), U8(27),
289 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 289 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
290 B(PushContext), R(3), 290 B(PushContext), R(3),
291 B(ResumeGenerator), R(new_target), 291 B(ResumeGenerator), R(new_target),
292 B(Star), R(2), 292 B(Star), R(2),
293 B(LdaZero), 293 B(LdaZero),
294 B(TestEqualStrictNoFeedback), R(2), 294 B(TestEqualStrictNoFeedback), R(2),
295 B(JumpIfTrue), U8(64), 295 B(JumpIfTrue), U8(64),
296 B(LdaSmi), I8(78), 296 B(LdaSmi), I8(79),
297 B(Star), R(4), 297 B(Star), R(4),
298 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 298 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
299 B(LdaSmi), I8(-2), 299 B(LdaSmi), I8(-2),
300 B(Star), R(2), 300 B(Star), R(2),
301 B(LdaConstant), U8(0), 301 B(LdaConstant), U8(0),
302 B(Star), R(6), 302 B(Star), R(6),
303 B(Mov), R(arg0), R(4), 303 B(Mov), R(arg0), R(4),
304 B(Mov), R(closure), R(5), 304 B(Mov), R(closure), R(5),
305 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), 305 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3),
306 B(PushContext), R(0), 306 B(PushContext), R(0),
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 bytecodes: [ 385 bytecodes: [
386 B(Ldar), R(new_target), 386 B(Ldar), R(new_target),
387 B(JumpIfUndefined), U8(27), 387 B(JumpIfUndefined), U8(27),
388 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 388 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
389 B(PushContext), R(3), 389 B(PushContext), R(3),
390 B(ResumeGenerator), R(new_target), 390 B(ResumeGenerator), R(new_target),
391 B(Star), R(2), 391 B(Star), R(2),
392 B(LdaZero), 392 B(LdaZero),
393 B(TestEqualStrictNoFeedback), R(2), 393 B(TestEqualStrictNoFeedback), R(2),
394 B(JumpIfTrue), U8(68), 394 B(JumpIfTrue), U8(68),
395 B(LdaSmi), I8(78), 395 B(LdaSmi), I8(79),
396 B(Star), R(4), 396 B(Star), R(4),
397 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 397 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
398 B(LdaSmi), I8(-2), 398 B(LdaSmi), I8(-2),
399 B(Star), R(2), 399 B(Star), R(2),
400 B(LdaConstant), U8(0), 400 B(LdaConstant), U8(0),
401 B(Star), R(6), 401 B(Star), R(6),
402 B(Mov), R(arg0), R(4), 402 B(Mov), R(arg0), R(4),
403 B(Mov), R(closure), R(5), 403 B(Mov), R(closure), R(5),
404 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), 404 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3),
405 B(PushContext), R(0), 405 B(PushContext), R(0),
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 bytecodes: [ 486 bytecodes: [
487 B(Ldar), R(new_target), 487 B(Ldar), R(new_target),
488 B(JumpIfUndefined), U8(27), 488 B(JumpIfUndefined), U8(27),
489 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 489 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
490 B(PushContext), R(3), 490 B(PushContext), R(3),
491 B(ResumeGenerator), R(new_target), 491 B(ResumeGenerator), R(new_target),
492 B(Star), R(2), 492 B(Star), R(2),
493 B(LdaZero), 493 B(LdaZero),
494 B(TestEqualStrictNoFeedback), R(2), 494 B(TestEqualStrictNoFeedback), R(2),
495 B(JumpIfTrue), U8(68), 495 B(JumpIfTrue), U8(68),
496 B(LdaSmi), I8(78), 496 B(LdaSmi), I8(79),
497 B(Star), R(4), 497 B(Star), R(4),
498 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 498 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
499 B(LdaSmi), I8(-2), 499 B(LdaSmi), I8(-2),
500 B(Star), R(2), 500 B(Star), R(2),
501 B(LdaConstant), U8(0), 501 B(LdaConstant), U8(0),
502 B(Star), R(6), 502 B(Star), R(6),
503 B(Mov), R(arg0), R(4), 503 B(Mov), R(arg0), R(4),
504 B(Mov), R(closure), R(5), 504 B(Mov), R(closure), R(5),
505 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), 505 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3),
506 B(PushContext), R(0), 506 B(PushContext), R(0),
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 bytecodes: [ 585 bytecodes: [
586 B(Ldar), R(new_target), 586 B(Ldar), R(new_target),
587 B(JumpIfUndefined), U8(27), 587 B(JumpIfUndefined), U8(27),
588 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 588 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
589 B(PushContext), R(2), 589 B(PushContext), R(2),
590 B(ResumeGenerator), R(new_target), 590 B(ResumeGenerator), R(new_target),
591 B(Star), R(1), 591 B(Star), R(1),
592 B(LdaZero), 592 B(LdaZero),
593 B(TestEqualStrictNoFeedback), R(1), 593 B(TestEqualStrictNoFeedback), R(1),
594 B(JumpIfTrue), U8(68), 594 B(JumpIfTrue), U8(68),
595 B(LdaSmi), I8(78), 595 B(LdaSmi), I8(79),
596 B(Star), R(3), 596 B(Star), R(3),
597 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 597 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
598 B(LdaSmi), I8(-2), 598 B(LdaSmi), I8(-2),
599 B(Star), R(1), 599 B(Star), R(1),
600 B(LdaConstant), U8(0), 600 B(LdaConstant), U8(0),
601 B(Star), R(5), 601 B(Star), R(5),
602 B(Mov), R(arg0), R(3), 602 B(Mov), R(arg0), R(3),
603 B(Mov), R(closure), R(4), 603 B(Mov), R(closure), R(4),
604 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 604 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
605 B(PushContext), R(0), 605 B(PushContext), R(0),
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 bytecodes: [ 668 bytecodes: [
669 B(Ldar), R(new_target), 669 B(Ldar), R(new_target),
670 B(JumpIfUndefined), U8(27), 670 B(JumpIfUndefined), U8(27),
671 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 671 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
672 B(PushContext), R(2), 672 B(PushContext), R(2),
673 B(ResumeGenerator), R(new_target), 673 B(ResumeGenerator), R(new_target),
674 B(Star), R(1), 674 B(Star), R(1),
675 B(LdaZero), 675 B(LdaZero),
676 B(TestEqualStrictNoFeedback), R(1), 676 B(TestEqualStrictNoFeedback), R(1),
677 B(JumpIfTrue), U8(68), 677 B(JumpIfTrue), U8(68),
678 B(LdaSmi), I8(78), 678 B(LdaSmi), I8(79),
679 B(Star), R(3), 679 B(Star), R(3),
680 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 680 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
681 B(LdaSmi), I8(-2), 681 B(LdaSmi), I8(-2),
682 B(Star), R(1), 682 B(Star), R(1),
683 B(LdaConstant), U8(0), 683 B(LdaConstant), U8(0),
684 B(Star), R(5), 684 B(Star), R(5),
685 B(Mov), R(arg0), R(3), 685 B(Mov), R(arg0), R(3),
686 B(Mov), R(closure), R(4), 686 B(Mov), R(closure), R(4),
687 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 687 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
688 B(PushContext), R(0), 688 B(PushContext), R(0),
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 bytecodes: [ 765 bytecodes: [
766 B(Ldar), R(new_target), 766 B(Ldar), R(new_target),
767 B(JumpIfUndefined), U8(27), 767 B(JumpIfUndefined), U8(27),
768 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 768 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
769 B(PushContext), R(2), 769 B(PushContext), R(2),
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(TestEqualStrictNoFeedback), R(1), 773 B(TestEqualStrictNoFeedback), R(1),
774 B(JumpIfTrue), U8(64), 774 B(JumpIfTrue), U8(64),
775 B(LdaSmi), I8(78), 775 B(LdaSmi), I8(79),
776 B(Star), R(3), 776 B(Star), R(3),
777 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 777 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
778 B(LdaSmi), I8(-2), 778 B(LdaSmi), I8(-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(5), 781 B(Star), R(5),
782 B(Mov), R(arg0), R(3), 782 B(Mov), R(arg0), R(3),
783 B(Mov), R(closure), R(4), 783 B(Mov), R(closure), R(4),
784 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 784 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
785 B(PushContext), R(0), 785 B(PushContext), R(0),
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 bytecodes: [ 843 bytecodes: [
844 B(Ldar), R(new_target), 844 B(Ldar), R(new_target),
845 B(JumpIfUndefined), U8(27), 845 B(JumpIfUndefined), U8(27),
846 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 846 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
847 B(PushContext), R(2), 847 B(PushContext), R(2),
848 B(ResumeGenerator), R(new_target), 848 B(ResumeGenerator), R(new_target),
849 B(Star), R(1), 849 B(Star), R(1),
850 B(LdaZero), 850 B(LdaZero),
851 B(TestEqualStrictNoFeedback), R(1), 851 B(TestEqualStrictNoFeedback), R(1),
852 B(JumpIfTrue), U8(64), 852 B(JumpIfTrue), U8(64),
853 B(LdaSmi), I8(78), 853 B(LdaSmi), I8(79),
854 B(Star), R(3), 854 B(Star), R(3),
855 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 855 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
856 B(LdaSmi), I8(-2), 856 B(LdaSmi), I8(-2),
857 B(Star), R(1), 857 B(Star), R(1),
858 B(LdaConstant), U8(0), 858 B(LdaConstant), U8(0),
859 B(Star), R(5), 859 B(Star), R(5),
860 B(Mov), R(arg0), R(3), 860 B(Mov), R(arg0), R(3),
861 B(Mov), R(closure), R(4), 861 B(Mov), R(closure), R(4),
862 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 862 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
863 B(PushContext), R(0), 863 B(PushContext), R(0),
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 bytecodes: [ 922 bytecodes: [
923 B(Ldar), R(new_target), 923 B(Ldar), R(new_target),
924 B(JumpIfUndefined), U8(27), 924 B(JumpIfUndefined), U8(27),
925 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1), 925 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe t), U8(1),
926 B(PushContext), R(2), 926 B(PushContext), R(2),
927 B(ResumeGenerator), R(new_target), 927 B(ResumeGenerator), R(new_target),
928 B(Star), R(1), 928 B(Star), R(1),
929 B(LdaZero), 929 B(LdaZero),
930 B(TestEqualStrictNoFeedback), R(1), 930 B(TestEqualStrictNoFeedback), R(1),
931 B(JumpIfTrue), U8(74), 931 B(JumpIfTrue), U8(74),
932 B(LdaSmi), I8(78), 932 B(LdaSmi), I8(79),
933 B(Star), R(3), 933 B(Star), R(3),
934 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 934 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
935 B(LdaSmi), I8(-2), 935 B(LdaSmi), I8(-2),
936 B(Star), R(1), 936 B(Star), R(1),
937 B(LdaConstant), U8(0), 937 B(LdaConstant), U8(0),
938 B(Star), R(5), 938 B(Star), R(5),
939 B(Mov), R(arg0), R(3), 939 B(Mov), R(arg0), R(3),
940 B(Mov), R(closure), R(4), 940 B(Mov), R(closure), R(4),
941 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 941 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
942 B(PushContext), R(0), 942 B(PushContext), R(0),
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 /* 45 S> */ B(Return), 999 /* 45 S> */ B(Return),
1000 ] 1000 ]
1001 constant pool: [ 1001 constant pool: [
1002 FIXED_ARRAY_TYPE, 1002 FIXED_ARRAY_TYPE,
1003 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], 1003 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
1004 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 1004 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
1005 ] 1005 ]
1006 handlers: [ 1006 handlers: [
1007 ] 1007 ]
1008 1008
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | test/mjsunit/harmony/modules-import-1.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698