| 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: 593 | 647 bytecode array length: 590 |
| 648 bytecodes: [ | 648 bytecodes: [ |
| 649 B(Ldar), R(new_target), | 649 B(Ldar), R(new_target), |
| 650 B(JumpIfUndefined), U8(26), | 650 B(JumpIfUndefined), U8(25), |
| 651 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), 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), |
| 658 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1), | 658 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1), |
| 659 B(LdaSmi), I8(-2), | 659 B(LdaSmi), I8(-2), |
| 660 B(Star), R(4), | 660 B(Star), R(4), |
| 661 B(CreateFunctionContext), U8(9), | 661 B(CreateFunctionContext), U8(9), |
| 662 B(PushContext), R(0), | 662 B(PushContext), R(0), |
| 663 B(Ldar), R(arg0), | 663 B(Ldar), R(arg0), |
| 664 B(StaCurrentContextSlot), U8(4), | 664 B(StaCurrentContextSlot), U8(4), |
| 665 B(Mov), R(closure), R(6), | 665 B(Mov), R(closure), R(6), |
| 666 B(Mov), R(this), R(7), | 666 B(Mov), R(this), R(7), |
| 667 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(6)
, U8(2), | 667 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(6)
, U8(2), |
| 668 B(StaCurrentContextSlot), U8(5), | 668 B(StaCurrentContextSlot), U8(5), |
| 669 /* 11 E> */ B(StackCheck), | 669 /* 11 E> */ B(StackCheck), |
| 670 B(Mov), R(context), R(8), | 670 B(Mov), R(context), R(8), |
| 671 B(LdaImmutableCurrentContextSlot), U8(5), | 671 B(LdaImmutableCurrentContextSlot), U8(5), |
| 672 B(Star), R(9), | 672 B(Star), R(9), |
| 673 B(LdaImmutableCurrentContextSlot), U8(5), | 673 B(LdaImmutableCurrentContextSlot), U8(5), |
| 674 B(Star), R(10), | 674 B(Star), R(10), |
| 675 B(LdaZero), | 675 B(LdaZero), |
| 676 /* 11 E> */ B(SuspendGenerator), R(9), U8(0), | 676 /* 11 E> */ B(SuspendGenerator), R(9), U8(0), |
| 677 B(Ldar), R(10), | 677 B(Ldar), R(10), |
| 678 /* 55 S> */ B(Return), | 678 /* 55 S> */ B(Return), |
| 679 B(LdaSmi), I8(-2), | 679 B(LdaSmi), I8(-2), |
| 680 B(Star), R(4), | 680 B(Star), R(4), |
| 681 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(9
), U8(1), | 681 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(9), U8(1), |
| 682 B(Star), R(10), | 682 B(Star), R(10), |
| 683 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(9), U8
(1), | 683 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(9),
U8(1), |
| 684 B(Star), R(11), | 684 B(Star), R(11), |
| 685 B(LdaZero), | 685 B(LdaZero), |
| 686 B(TestEqualStrictNoFeedback), R(11), | 686 B(TestEqualStrictNoFeedback), R(11), |
| 687 B(JumpIfTrue), U8(28), | 687 B(JumpIfTrue), U8(28), |
| 688 B(LdaSmi), I8(2), | 688 B(LdaSmi), I8(2), |
| 689 B(TestEqualStrictNoFeedback), R(11), | 689 B(TestEqualStrictNoFeedback), R(11), |
| 690 B(JumpIfTrue), U8(19), | 690 B(JumpIfTrue), U8(19), |
| 691 B(LdaTrue), | 691 B(LdaTrue), |
| 692 B(Star), R(13), | 692 B(Star), R(13), |
| 693 B(Mov), R(10), R(12), | 693 B(Mov), R(10), R(12), |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 902 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
| 903 FIXED_ARRAY_TYPE, | 903 FIXED_ARRAY_TYPE, |
| 904 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 904 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
| 905 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 905 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
| 906 FIXED_ARRAY_TYPE, | 906 FIXED_ARRAY_TYPE, |
| 907 Smi [446], | 907 Smi [446], |
| 908 Smi [6], | 908 Smi [6], |
| 909 Smi [9], | 909 Smi [9], |
| 910 ] | 910 ] |
| 911 handlers: [ | 911 handlers: [ |
| 912 [56, 549, 555], | 912 [55, 546, 552], |
| 913 [137, 334, 340], | 913 [134, 331, 337], |
| 914 [140, 290, 292], | 914 [137, 287, 289], |
| 915 [426, 442, 444], | 915 [423, 439, 441], |
| 916 ] | 916 ] |
| 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: 701 | 927 bytecode array length: 696 |
| 928 bytecodes: [ | 928 bytecodes: [ |
| 929 B(Ldar), R(new_target), | 929 B(Ldar), R(new_target), |
| 930 B(JumpIfUndefined), U8(26), | 930 B(JumpIfUndefined), U8(25), |
| 931 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), 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), |
| 938 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), | 938 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), |
| 939 B(LdaSmi), I8(-2), | 939 B(LdaSmi), I8(-2), |
| 940 B(Star), R(3), | 940 B(Star), R(3), |
| 941 B(CreateFunctionContext), U8(9), | 941 B(CreateFunctionContext), U8(9), |
| 942 B(PushContext), R(0), | 942 B(PushContext), R(0), |
| 943 B(Ldar), R(arg0), | 943 B(Ldar), R(arg0), |
| 944 B(StaCurrentContextSlot), U8(4), | 944 B(StaCurrentContextSlot), U8(4), |
| 945 B(Mov), R(closure), R(5), | 945 B(Mov), R(closure), R(5), |
| 946 B(Mov), R(this), R(6), | 946 B(Mov), R(this), R(6), |
| 947 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(5)
, U8(2), | 947 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(5)
, U8(2), |
| 948 B(StaCurrentContextSlot), U8(5), | 948 B(StaCurrentContextSlot), U8(5), |
| 949 /* 11 E> */ B(StackCheck), | 949 /* 11 E> */ B(StackCheck), |
| 950 B(Mov), R(context), R(7), | 950 B(Mov), R(context), R(7), |
| 951 B(LdaImmutableCurrentContextSlot), U8(5), | 951 B(LdaImmutableCurrentContextSlot), U8(5), |
| 952 B(Star), R(8), | 952 B(Star), R(8), |
| 953 B(LdaImmutableCurrentContextSlot), U8(5), | 953 B(LdaImmutableCurrentContextSlot), U8(5), |
| 954 B(Star), R(9), | 954 B(Star), R(9), |
| 955 B(LdaZero), | 955 B(LdaZero), |
| 956 /* 11 E> */ B(SuspendGenerator), R(8), U8(0), | 956 /* 11 E> */ B(SuspendGenerator), R(8), U8(0), |
| 957 B(Ldar), R(9), | 957 B(Ldar), R(9), |
| 958 /* 49 S> */ B(Return), | 958 /* 49 S> */ B(Return), |
| 959 B(LdaSmi), I8(-2), | 959 B(LdaSmi), I8(-2), |
| 960 B(Star), R(3), | 960 B(Star), R(3), |
| 961 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(8
), U8(1), | 961 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(8), U8(1), |
| 962 B(Star), R(9), | 962 B(Star), R(9), |
| 963 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(8), U8
(1), | 963 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(8),
U8(1), |
| 964 B(Star), R(10), | 964 B(Star), R(10), |
| 965 B(LdaZero), | 965 B(LdaZero), |
| 966 B(TestEqualStrictNoFeedback), R(10), | 966 B(TestEqualStrictNoFeedback), R(10), |
| 967 B(JumpIfTrue), U8(28), | 967 B(JumpIfTrue), U8(28), |
| 968 B(LdaSmi), I8(2), | 968 B(LdaSmi), I8(2), |
| 969 B(TestEqualStrictNoFeedback), R(10), | 969 B(TestEqualStrictNoFeedback), R(10), |
| 970 B(JumpIfTrue), U8(19), | 970 B(JumpIfTrue), U8(19), |
| 971 B(LdaTrue), | 971 B(LdaTrue), |
| 972 B(Star), R(12), | 972 B(Star), R(12), |
| 973 B(Mov), R(9), R(11), | 973 B(Mov), R(9), R(11), |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 B(Star), R(12), | 1012 B(Star), R(12), |
| 1013 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), | 1013 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), |
| 1014 B(ToBooleanLogicalNot), | 1014 B(ToBooleanLogicalNot), |
| 1015 B(JumpIfFalse), U8(13), | 1015 B(JumpIfFalse), U8(13), |
| 1016 B(LdaContextSlot), R(1), U8(8), U8(0), | 1016 B(LdaContextSlot), R(1), U8(8), U8(0), |
| 1017 B(Star), R(12), | 1017 B(Star), R(12), |
| 1018 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), | 1018 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), |
| 1019 B(LdaContextSlot), R(1), U8(8), U8(0), | 1019 B(LdaContextSlot), R(1), U8(8), U8(0), |
| 1020 B(Star), R(12), | 1020 B(Star), R(12), |
| 1021 B(LdaNamedProperty), R(12), U8(6), U8(11), | 1021 B(LdaNamedProperty), R(12), U8(6), U8(11), |
| 1022 B(JumpIfToBooleanTrue), U8(144), | 1022 B(JumpIfToBooleanTrue), U8(142), |
| 1023 B(LdaContextSlot), R(1), U8(8), U8(0), | 1023 B(LdaContextSlot), R(1), U8(8), U8(0), |
| 1024 B(Star), R(12), | 1024 B(Star), R(12), |
| 1025 B(LdaNamedProperty), R(12), U8(7), U8(13), | 1025 B(LdaNamedProperty), R(12), U8(7), U8(13), |
| 1026 B(StaContextSlot), R(1), U8(10), U8(0), | 1026 B(StaContextSlot), R(1), U8(10), U8(0), |
| 1027 B(LdaSmi), I8(2), | 1027 B(LdaSmi), I8(2), |
| 1028 B(StaContextSlot), R(1), U8(9), U8(0), | 1028 B(StaContextSlot), R(1), U8(9), U8(0), |
| 1029 B(LdaContextSlot), R(1), U8(10), U8(0), | 1029 B(LdaContextSlot), R(1), U8(10), U8(0), |
| 1030 B(StaContextSlot), R(1), U8(6), U8(0), | 1030 B(StaContextSlot), R(1), U8(6), U8(0), |
| 1031 /* 21 E> */ B(StackCheck), | 1031 /* 21 E> */ B(StackCheck), |
| 1032 B(Ldar), R(closure), | 1032 B(Ldar), R(closure), |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1043 B(LdaFalse), | 1043 B(LdaFalse), |
| 1044 B(Star), R(14), | 1044 B(Star), R(14), |
| 1045 /* 46 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13)
, U8(2), | 1045 /* 46 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13)
, U8(2), |
| 1046 B(Star), R(13), | 1046 B(Star), R(13), |
| 1047 B(LdaSmi), I8(1), | 1047 B(LdaSmi), I8(1), |
| 1048 B(SuspendGenerator), R(12), U8(0), | 1048 B(SuspendGenerator), R(12), U8(0), |
| 1049 B(Ldar), R(13), | 1049 B(Ldar), R(13), |
| 1050 /* 49 S> */ B(Return), | 1050 /* 49 S> */ B(Return), |
| 1051 B(LdaSmi), I8(-2), | 1051 B(LdaSmi), I8(-2), |
| 1052 B(Star), R(3), | 1052 B(Star), R(3), |
| 1053 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(1
2), U8(1), | 1053 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(12), U8(1), |
| 1054 B(Star), R(13), | 1054 B(Star), R(13), |
| 1055 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(12), U
8(1), | 1055 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(12)
, U8(1), |
| 1056 B(Star), R(14), | 1056 B(Star), R(14), |
| 1057 B(LdaZero), | 1057 B(LdaZero), |
| 1058 B(TestEqualStrictNoFeedback), R(14), | 1058 B(TestEqualStrictNoFeedback), R(14), |
| 1059 B(JumpIfTrue), U8(40), | 1059 B(JumpIfTrue), U8(40), |
| 1060 B(LdaSmi), I8(2), | 1060 B(LdaSmi), I8(2), |
| 1061 B(TestEqualStrictNoFeedback), R(14), | 1061 B(TestEqualStrictNoFeedback), R(14), |
| 1062 B(JumpIfTrue), U8(31), | 1062 B(JumpIfTrue), U8(31), |
| 1063 B(LdaTrue), | 1063 B(LdaTrue), |
| 1064 B(Star), R(16), | 1064 B(Star), R(16), |
| 1065 B(Mov), R(13), R(15), | 1065 B(Mov), R(13), R(15), |
| 1066 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(15)
, U8(2), | 1066 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(15)
, U8(2), |
| 1067 B(PopContext), R(2), | 1067 B(PopContext), R(2), |
| 1068 B(PopContext), R(2), | 1068 B(PopContext), R(2), |
| 1069 B(PopContext), R(2), | 1069 B(PopContext), R(2), |
| 1070 B(PopContext), R(2), | 1070 B(PopContext), R(2), |
| 1071 B(PopContext), R(2), | 1071 B(PopContext), R(2), |
| 1072 B(PopContext), R(2), | 1072 B(PopContext), R(2), |
| 1073 B(Star), R(9), | 1073 B(Star), R(9), |
| 1074 B(LdaZero), | 1074 B(LdaZero), |
| 1075 B(Star), R(8), | 1075 B(Star), R(8), |
| 1076 B(Jump), U8(71), | 1076 B(Jump), U8(71), |
| 1077 B(Ldar), R(13), | 1077 B(Ldar), R(13), |
| 1078 /* 40 E> */ B(Throw), | 1078 /* 40 E> */ B(Throw), |
| 1079 B(PopContext), R(2), | 1079 B(PopContext), R(2), |
| 1080 B(LdaZero), | 1080 B(LdaZero), |
| 1081 B(StaContextSlot), R(1), U8(9), U8(0), | 1081 B(StaContextSlot), R(1), U8(9), U8(0), |
| 1082 B(JumpLoop), U8(212), I8(0), | 1082 B(JumpLoop), U8(210), I8(0), |
| 1083 B(Jump), U8(44), | 1083 B(Jump), U8(44), |
| 1084 B(Star), R(12), | 1084 B(Star), R(12), |
| 1085 B(Ldar), R(closure), | 1085 B(Ldar), R(closure), |
| 1086 B(CreateCatchContext), R(12), U8(9), U8(10), | 1086 B(CreateCatchContext), R(12), U8(9), U8(10), |
| 1087 B(PushContext), R(2), | 1087 B(PushContext), R(2), |
| 1088 B(Star), R(11), | 1088 B(Star), R(11), |
| 1089 B(LdaContextSlot), R(1), U8(9), U8(0), | 1089 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 1090 B(Star), R(12), | 1090 B(Star), R(12), |
| 1091 B(LdaSmi), I8(2), | 1091 B(LdaSmi), I8(2), |
| 1092 B(TestEqualStrict), R(12), U8(15), | 1092 B(TestEqualStrict), R(12), U8(15), |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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), |
| 1217 /* 49 S> */ B(Return), | 1217 /* 49 S> */ B(Return), |
| 1218 ] | 1218 ] |
| 1219 constant pool: [ | 1219 constant pool: [ |
| 1220 Smi [56], | 1220 Smi [56], |
| 1221 Smi [152], | 1221 Smi [150], |
| 1222 FIXED_ARRAY_TYPE, | 1222 FIXED_ARRAY_TYPE, |
| 1223 SYMBOL_TYPE, | 1223 SYMBOL_TYPE, |
| 1224 Smi [142], | 1224 Smi [142], |
| 1225 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], | 1225 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
| 1226 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], | 1226 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
| 1227 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 1227 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
| 1228 FIXED_ARRAY_TYPE, | 1228 FIXED_ARRAY_TYPE, |
| 1229 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 1229 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
| 1230 FIXED_ARRAY_TYPE, | 1230 FIXED_ARRAY_TYPE, |
| 1231 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 1231 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
| 1232 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 1232 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
| 1233 FIXED_ARRAY_TYPE, | 1233 FIXED_ARRAY_TYPE, |
| 1234 Smi [6], | 1234 Smi [6], |
| 1235 Smi [18], | 1235 Smi [18], |
| 1236 Smi [554], | 1236 Smi [552], |
| 1237 Smi [6], | 1237 Smi [6], |
| 1238 Smi [9], | 1238 Smi [9], |
| 1239 ] | 1239 ] |
| 1240 handlers: [ | 1240 handlers: [ |
| 1241 [56, 657, 663], | 1241 [55, 652, 658], |
| 1242 [137, 426, 432], | 1242 [134, 421, 427], |
| 1243 [140, 382, 384], | 1243 [137, 377, 379], |
| 1244 [519, 535, 537], | 1244 [514, 530, 532], |
| 1245 ] | 1245 ] |
| 1246 | 1246 |
| 1247 --- | 1247 --- |
| 1248 snippet: " | 1248 snippet: " |
| 1249 async function f(arr) { | 1249 async function f(arr) { |
| 1250 for (let x of arr) { let y = x; } | 1250 for (let x of arr) { let y = x; } |
| 1251 } | 1251 } |
| 1252 f([1, 2, 3]); | 1252 f([1, 2, 3]); |
| 1253 " | 1253 " |
| 1254 frame size: 14 | 1254 frame size: 14 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 | 1516 |
| 1517 --- | 1517 --- |
| 1518 snippet: " | 1518 snippet: " |
| 1519 async function f(arr) { | 1519 async function f(arr) { |
| 1520 for (let x of arr) await x; | 1520 for (let x of arr) await x; |
| 1521 } | 1521 } |
| 1522 f([1, 2, 3]); | 1522 f([1, 2, 3]); |
| 1523 " | 1523 " |
| 1524 frame size: 18 | 1524 frame size: 18 |
| 1525 parameter count: 2 | 1525 parameter count: 2 |
| 1526 bytecode array length: 735 | 1526 bytecode array length: 732 |
| 1527 bytecodes: [ | 1527 bytecodes: [ |
| 1528 B(Ldar), R(new_target), | 1528 B(Ldar), R(new_target), |
| 1529 B(JumpIfUndefined), U8(26), | 1529 B(JumpIfUndefined), U8(25), |
| 1530 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 1530 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), |
| 1531 B(PushContext), R(4), | 1531 B(PushContext), R(4), |
| 1532 B(ResumeGenerator), R(new_target), | 1532 B(ResumeGenerator), R(new_target), |
| 1533 B(Star), R(3), | 1533 B(Star), R(3), |
| 1534 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), | 1534 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), |
| 1535 B(LdaSmi), I8(79), | 1535 B(LdaSmi), I8(79), |
| 1536 B(Star), R(5), | 1536 B(Star), R(5), |
| 1537 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), | 1537 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), |
| 1538 B(LdaSmi), I8(-2), | 1538 B(LdaSmi), I8(-2), |
| 1539 B(Star), R(3), | 1539 B(Star), R(3), |
| 1540 B(CreateFunctionContext), U8(11), | 1540 B(CreateFunctionContext), U8(11), |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1586 B(Star), R(13), | 1586 B(Star), R(13), |
| 1587 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(13), U8(1), | 1587 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(13), U8(1), |
| 1588 B(ToBooleanLogicalNot), | 1588 B(ToBooleanLogicalNot), |
| 1589 B(JumpIfFalse), U8(13), | 1589 B(JumpIfFalse), U8(13), |
| 1590 B(LdaContextSlot), R(1), U8(10), U8(0), | 1590 B(LdaContextSlot), R(1), U8(10), U8(0), |
| 1591 B(Star), R(13), | 1591 B(Star), R(13), |
| 1592 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(13), U8(1), | 1592 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(13), U8(1), |
| 1593 B(LdaContextSlot), R(1), U8(10), U8(0), | 1593 B(LdaContextSlot), R(1), U8(10), U8(0), |
| 1594 B(Star), R(13), | 1594 B(Star), R(13), |
| 1595 B(LdaNamedProperty), R(13), U8(5), U8(11), | 1595 B(LdaNamedProperty), R(13), U8(5), U8(11), |
| 1596 B(JumpIfToBooleanTrue), U8(167), | 1596 B(JumpIfToBooleanTrue), U8(165), |
| 1597 B(LdaContextSlot), R(1), U8(10), U8(0), | 1597 B(LdaContextSlot), R(1), U8(10), U8(0), |
| 1598 B(Star), R(13), | 1598 B(Star), R(13), |
| 1599 B(LdaNamedProperty), R(13), U8(6), U8(13), | 1599 B(LdaNamedProperty), R(13), U8(6), U8(13), |
| 1600 B(StaContextSlot), R(1), U8(12), U8(0), | 1600 B(StaContextSlot), R(1), U8(12), U8(0), |
| 1601 B(LdaSmi), I8(2), | 1601 B(LdaSmi), I8(2), |
| 1602 B(StaContextSlot), R(1), U8(11), U8(0), | 1602 B(StaContextSlot), R(1), U8(11), U8(0), |
| 1603 B(LdaContextSlot), R(1), U8(12), U8(0), | 1603 B(LdaContextSlot), R(1), U8(12), U8(0), |
| 1604 B(StaContextSlot), R(1), U8(8), U8(0), | 1604 B(StaContextSlot), R(1), U8(8), U8(0), |
| 1605 /* 26 E> */ B(StackCheck), | 1605 /* 26 E> */ B(StackCheck), |
| 1606 B(Ldar), R(closure), | 1606 B(Ldar), R(closure), |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1624 B(Star), R(17), | 1624 B(Star), R(17), |
| 1625 B(CallJSRuntime), U8(%async_function_await_uncaught), R(14), U8(
4), | 1625 B(CallJSRuntime), U8(%async_function_await_uncaught), R(14), U8(
4), |
| 1626 B(LdaContextSlot), R(1), U8(7), U8(0), | 1626 B(LdaContextSlot), R(1), U8(7), U8(0), |
| 1627 B(Star), R(14), | 1627 B(Star), R(14), |
| 1628 B(LdaZero), | 1628 B(LdaZero), |
| 1629 B(SuspendGenerator), R(13), U8(2), | 1629 B(SuspendGenerator), R(13), U8(2), |
| 1630 B(Ldar), R(14), | 1630 B(Ldar), R(14), |
| 1631 /* 54 S> */ B(Return), | 1631 /* 54 S> */ B(Return), |
| 1632 B(LdaSmi), I8(-2), | 1632 B(LdaSmi), I8(-2), |
| 1633 B(Star), R(3), | 1633 B(Star), R(3), |
| 1634 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(1
3), U8(1), | 1634 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(13), U8(1), |
| 1635 B(Star), R(14), | 1635 B(Star), R(14), |
| 1636 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(13), U
8(1), | 1636 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13)
, U8(1), |
| 1637 B(Star), R(15), | 1637 B(Star), R(15), |
| 1638 B(LdaZero), | 1638 B(LdaZero), |
| 1639 B(TestEqualStrictNoFeedback), R(15), | 1639 B(TestEqualStrictNoFeedback), R(15), |
| 1640 B(JumpIfTrue), U8(40), | 1640 B(JumpIfTrue), U8(40), |
| 1641 B(LdaSmi), I8(2), | 1641 B(LdaSmi), I8(2), |
| 1642 B(TestEqualStrictNoFeedback), R(15), | 1642 B(TestEqualStrictNoFeedback), R(15), |
| 1643 B(JumpIfTrue), U8(31), | 1643 B(JumpIfTrue), U8(31), |
| 1644 B(LdaTrue), | 1644 B(LdaTrue), |
| 1645 B(Star), R(17), | 1645 B(Star), R(17), |
| 1646 B(Mov), R(14), R(16), | 1646 B(Mov), R(14), R(16), |
| 1647 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(16)
, U8(2), | 1647 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(16)
, U8(2), |
| 1648 B(PopContext), R(2), | 1648 B(PopContext), R(2), |
| 1649 B(PopContext), R(2), | 1649 B(PopContext), R(2), |
| 1650 B(PopContext), R(2), | 1650 B(PopContext), R(2), |
| 1651 B(PopContext), R(2), | 1651 B(PopContext), R(2), |
| 1652 B(PopContext), R(2), | 1652 B(PopContext), R(2), |
| 1653 B(PopContext), R(2), | 1653 B(PopContext), R(2), |
| 1654 B(Star), R(10), | 1654 B(Star), R(10), |
| 1655 B(LdaZero), | 1655 B(LdaZero), |
| 1656 B(Star), R(9), | 1656 B(Star), R(9), |
| 1657 B(Jump), U8(75), | 1657 B(Jump), U8(75), |
| 1658 B(Ldar), R(14), | 1658 B(Ldar), R(14), |
| 1659 B(ReThrow), | 1659 B(ReThrow), |
| 1660 B(PopContext), R(2), | 1660 B(PopContext), R(2), |
| 1661 B(LdaZero), | 1661 B(LdaZero), |
| 1662 B(StaContextSlot), R(1), U8(11), U8(0), | 1662 B(StaContextSlot), R(1), U8(11), U8(0), |
| 1663 B(JumpLoop), U8(235), I8(0), | 1663 B(JumpLoop), U8(233), I8(0), |
| 1664 B(Jump), U8(48), | 1664 B(Jump), U8(48), |
| 1665 B(Star), R(13), | 1665 B(Star), R(13), |
| 1666 B(Ldar), R(closure), | 1666 B(Ldar), R(closure), |
| 1667 B(CreateCatchContext), R(13), U8(8), U8(9), | 1667 B(CreateCatchContext), R(13), U8(8), U8(9), |
| 1668 B(Star), R(12), | 1668 B(Star), R(12), |
| 1669 B(LdaTheHole), | 1669 B(LdaTheHole), |
| 1670 B(SetPendingMessage), | 1670 B(SetPendingMessage), |
| 1671 B(Ldar), R(12), | 1671 B(Ldar), R(12), |
| 1672 B(PushContext), R(2), | 1672 B(PushContext), R(2), |
| 1673 B(LdaContextSlot), R(1), U8(11), U8(0), | 1673 B(LdaContextSlot), R(1), U8(11), U8(0), |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1844 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 1844 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
| 1845 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 1845 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
| 1846 FIXED_ARRAY_TYPE, | 1846 FIXED_ARRAY_TYPE, |
| 1847 Smi [6], | 1847 Smi [6], |
| 1848 Smi [22], | 1848 Smi [22], |
| 1849 FIXED_ARRAY_TYPE, | 1849 FIXED_ARRAY_TYPE, |
| 1850 Smi [6], | 1850 Smi [6], |
| 1851 Smi [9], | 1851 Smi [9], |
| 1852 ] | 1852 ] |
| 1853 handlers: [ | 1853 handlers: [ |
| 1854 [65, 689, 695], | 1854 [64, 686, 692], |
| 1855 [68, 636, 638], | 1855 [67, 633, 635], |
| 1856 [85, 401, 407], | 1856 [84, 398, 404], |
| 1857 [88, 353, 355], | 1857 [87, 350, 352], |
| 1858 [494, 510, 512], | 1858 [491, 507, 509], |
| 1859 ] | 1859 ] |
| 1860 | 1860 |
| OLD | NEW |