OLD | NEW |
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: " |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 | 637 |
638 --- | 638 --- |
639 snippet: " | 639 snippet: " |
640 function* f(arr) { | 640 function* f(arr) { |
641 for (let x of arr) { let y = x; } | 641 for (let x of arr) { let y = x; } |
642 } | 642 } |
643 f([1, 2, 3]); | 643 f([1, 2, 3]); |
644 " | 644 " |
645 frame size: 15 | 645 frame size: 15 |
646 parameter count: 2 | 646 parameter count: 2 |
647 bytecode array length: 590 | 647 bytecode array length: 589 |
648 bytecodes: [ | 648 bytecodes: [ |
649 B(Ldar), R(new_target), | 649 B(Ldar), R(new_target), |
650 B(JumpIfUndefined), U8(25), | 650 B(JumpIfUndefined), U8(25), |
651 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), | 651 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), |
652 B(PushContext), R(5), | 652 B(PushContext), R(5), |
653 B(ResumeGenerator), R(new_target), | 653 B(ResumeGenerator), R(new_target), |
654 B(Star), R(4), | 654 B(Star), R(4), |
655 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), | 655 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), |
656 B(LdaSmi), I8(79), | 656 B(LdaSmi), I8(79), |
657 B(Star), R(6), | 657 B(Star), R(6), |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 B(Star), R(6), | 870 B(Star), R(6), |
871 B(Jump), U8(8), | 871 B(Jump), U8(8), |
872 B(Star), R(7), | 872 B(Star), R(7), |
873 B(LdaSmi), I8(1), | 873 B(LdaSmi), I8(1), |
874 B(Star), R(6), | 874 B(Star), R(6), |
875 B(LdaTheHole), | 875 B(LdaTheHole), |
876 B(SetPendingMessage), | 876 B(SetPendingMessage), |
877 B(Star), R(8), | 877 B(Star), R(8), |
878 B(LdaImmutableCurrentContextSlot), U8(5), | 878 B(LdaImmutableCurrentContextSlot), U8(5), |
879 B(Star), R(9), | 879 B(Star), R(9), |
880 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(9), U8(1), | 880 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(9), U8(1), |
881 B(Ldar), R(8), | 881 B(Ldar), R(8), |
882 B(SetPendingMessage), | 882 B(SetPendingMessage), |
883 B(Ldar), R(6), | 883 B(Ldar), R(6), |
884 B(SwitchOnSmiNoFeedback), U8(14), U8(2), I8(0), | 884 B(SwitchOnSmiNoFeedback), U8(14), U8(2), I8(0), |
885 B(Jump), U8(8), | 885 B(Jump), U8(8), |
886 B(Ldar), R(7), | 886 B(Ldar), R(7), |
887 /* 55 S> */ B(Return), | 887 /* 55 S> */ B(Return), |
888 B(Ldar), R(7), | 888 B(Ldar), R(7), |
889 B(ReThrow), | 889 B(ReThrow), |
890 B(LdaUndefined), | 890 B(LdaUndefined), |
(...skipping 26 matching lines...) Expand all Loading... |
917 | 917 |
918 --- | 918 --- |
919 snippet: " | 919 snippet: " |
920 function* f(arr) { | 920 function* f(arr) { |
921 for (let x of arr) yield x; | 921 for (let x of arr) yield x; |
922 } | 922 } |
923 f([1, 2, 3]); | 923 f([1, 2, 3]); |
924 " | 924 " |
925 frame size: 17 | 925 frame size: 17 |
926 parameter count: 2 | 926 parameter count: 2 |
927 bytecode array length: 696 | 927 bytecode array length: 695 |
928 bytecodes: [ | 928 bytecodes: [ |
929 B(Ldar), R(new_target), | 929 B(Ldar), R(new_target), |
930 B(JumpIfUndefined), U8(25), | 930 B(JumpIfUndefined), U8(25), |
931 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), | 931 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), |
932 B(PushContext), R(4), | 932 B(PushContext), R(4), |
933 B(ResumeGenerator), R(new_target), | 933 B(ResumeGenerator), R(new_target), |
934 B(Star), R(3), | 934 B(Star), R(3), |
935 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), | 935 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), |
936 B(LdaSmi), I8(79), | 936 B(LdaSmi), I8(79), |
937 B(Star), R(5), | 937 B(Star), R(5), |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 B(Star), R(5), | 1196 B(Star), R(5), |
1197 B(Jump), U8(8), | 1197 B(Jump), U8(8), |
1198 B(Star), R(6), | 1198 B(Star), R(6), |
1199 B(LdaSmi), I8(1), | 1199 B(LdaSmi), I8(1), |
1200 B(Star), R(5), | 1200 B(Star), R(5), |
1201 B(LdaTheHole), | 1201 B(LdaTheHole), |
1202 B(SetPendingMessage), | 1202 B(SetPendingMessage), |
1203 B(Star), R(7), | 1203 B(Star), R(7), |
1204 B(LdaImmutableCurrentContextSlot), U8(5), | 1204 B(LdaImmutableCurrentContextSlot), U8(5), |
1205 B(Star), R(8), | 1205 B(Star), R(8), |
1206 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(8), U8(1), | 1206 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(8), U8(1), |
1207 B(Ldar), R(7), | 1207 B(Ldar), R(7), |
1208 B(SetPendingMessage), | 1208 B(SetPendingMessage), |
1209 B(Ldar), R(5), | 1209 B(Ldar), R(5), |
1210 B(SwitchOnSmiNoFeedback), U8(17), U8(2), I8(0), | 1210 B(SwitchOnSmiNoFeedback), U8(17), U8(2), I8(0), |
1211 B(Jump), U8(8), | 1211 B(Jump), U8(8), |
1212 B(Ldar), R(6), | 1212 B(Ldar), R(6), |
1213 /* 49 S> */ B(Return), | 1213 /* 49 S> */ B(Return), |
1214 B(Ldar), R(6), | 1214 B(Ldar), R(6), |
1215 B(ReThrow), | 1215 B(ReThrow), |
1216 B(LdaUndefined), | 1216 B(LdaUndefined), |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1851 Smi [9], | 1851 Smi [9], |
1852 ] | 1852 ] |
1853 handlers: [ | 1853 handlers: [ |
1854 [64, 686, 692], | 1854 [64, 686, 692], |
1855 [67, 633, 635], | 1855 [67, 633, 635], |
1856 [84, 398, 404], | 1856 [84, 398, 404], |
1857 [87, 350, 352], | 1857 [87, 350, 352], |
1858 [491, 507, 509], | 1858 [491, 507, 509], |
1859 ] | 1859 ] |
1860 | 1860 |
OLD | NEW |