OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: yes | 6 wrap: yes |
7 | 7 |
8 --- | 8 --- |
9 snippet: " | 9 snippet: " |
10 var x0; | 10 var x0; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 var x150; | 160 var x150; |
161 var x151; | 161 var x151; |
162 var x152; | 162 var x152; |
163 var x153; | 163 var x153; |
164 var x154; | 164 var x154; |
165 var x155; | 165 var x155; |
166 var x156; | 166 var x156; |
167 x0 = x127; | 167 x0 = x127; |
168 return x0; | 168 return x0; |
169 " | 169 " |
170 frame size: 157 | 170 frame size: 158 |
171 parameter count: 1 | 171 parameter count: 1 |
172 bytecode array length: 10 | 172 bytecode array length: 16 |
173 bytecodes: [ | 173 bytecodes: [ |
174 /* 30 E> */ B(StackCheck), | 174 /* 30 E> */ B(StackCheck), |
175 /* 1494 S> */ B(Wide), B(Mov), R16(127), R16(0), | 175 /* 1494 S> */ B(LdaConstant), U8(0), |
| 176 B(Wide), B(Star), R16(157), |
| 177 B(Wide), B(Mov), R16(127), R16(0), |
176 /* 1505 S> */ B(Ldar), R(0), | 178 /* 1505 S> */ B(Ldar), R(0), |
177 /* 1516 S> */ B(Return), | 179 /* 1516 S> */ B(Return), |
178 ] | 180 ] |
179 constant pool: [ | 181 constant pool: [ |
| 182 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
180 ] | 183 ] |
181 handlers: [ | 184 handlers: [ |
182 ] | 185 ] |
183 | 186 |
184 --- | 187 --- |
185 snippet: " | 188 snippet: " |
186 var x0; | 189 var x0; |
187 var x1; | 190 var x1; |
188 var x2; | 191 var x2; |
189 var x3; | 192 var x3; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 var x150; | 339 var x150; |
337 var x151; | 340 var x151; |
338 var x152; | 341 var x152; |
339 var x153; | 342 var x153; |
340 var x154; | 343 var x154; |
341 var x155; | 344 var x155; |
342 var x156; | 345 var x156; |
343 x127 = x126; | 346 x127 = x126; |
344 return x127; | 347 return x127; |
345 " | 348 " |
346 frame size: 157 | 349 frame size: 158 |
347 parameter count: 1 | 350 parameter count: 1 |
348 bytecode array length: 12 | 351 bytecode array length: 18 |
349 bytecodes: [ | 352 bytecodes: [ |
350 /* 30 E> */ B(StackCheck), | 353 /* 30 E> */ B(StackCheck), |
351 /* 1494 S> */ B(Wide), B(Mov), R16(126), R16(127), | 354 /* 1494 S> */ B(LdaConstant), U8(0), |
| 355 B(Wide), B(Star), R16(157), |
| 356 B(Wide), B(Mov), R16(126), R16(127), |
352 /* 1507 S> */ B(Wide), B(Ldar), R16(127), | 357 /* 1507 S> */ B(Wide), B(Ldar), R16(127), |
353 /* 1520 S> */ B(Return), | 358 /* 1520 S> */ B(Return), |
354 ] | 359 ] |
355 constant pool: [ | 360 constant pool: [ |
| 361 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x127"], |
356 ] | 362 ] |
357 handlers: [ | 363 handlers: [ |
358 ] | 364 ] |
359 | 365 |
360 --- | 366 --- |
361 snippet: " | 367 snippet: " |
362 var x0; | 368 var x0; |
363 var x1; | 369 var x1; |
364 var x2; | 370 var x2; |
365 var x3; | 371 var x3; |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 var x152; | 700 var x152; |
695 var x153; | 701 var x153; |
696 var x154; | 702 var x154; |
697 var x155; | 703 var x155; |
698 var x156; | 704 var x156; |
699 var x0 = 0; | 705 var x0 = 0; |
700 if (x129 == 3) { var x129 = x0; } | 706 if (x129 == 3) { var x129 = x0; } |
701 if (x2 > 3) { return x0; } | 707 if (x2 > 3) { return x0; } |
702 return x129; | 708 return x129; |
703 " | 709 " |
704 frame size: 157 | 710 frame size: 158 |
705 parameter count: 1 | 711 parameter count: 1 |
706 bytecode array length: 37 | 712 bytecode array length: 49 |
707 bytecodes: [ | 713 bytecodes: [ |
708 /* 30 E> */ B(StackCheck), | 714 /* 30 E> */ B(StackCheck), |
709 /* 1503 S> */ B(LdaZero), | 715 /* 1503 S> */ B(LdaConstant), U8(0), |
| 716 B(Wide), B(Star), R16(157), |
| 717 B(LdaZero), |
710 B(Star), R(0), | 718 B(Star), R(0), |
711 /* 1506 S> */ B(LdaSmi), I8(3), | 719 /* 1506 S> */ B(LdaSmi), I8(3), |
712 /* 1515 E> */ B(Wide), B(TestEqual), R16(129), U16(2), | 720 /* 1515 E> */ B(Wide), B(TestEqual), R16(129), U16(4), |
713 B(JumpIfFalse), U8(10), | 721 B(JumpIfFalse), U8(16), |
714 /* 1534 S> */ B(Wide), B(Mov), R16(0), R16(129), | 722 /* 1534 S> */ B(LdaConstant), U8(1), |
| 723 B(Wide), B(Star), R16(157), |
| 724 B(Wide), B(Mov), R16(0), R16(129), |
715 B(Ldar), R(0), | 725 B(Ldar), R(0), |
716 /* 1540 S> */ B(LdaSmi), I8(3), | 726 /* 1540 S> */ B(LdaSmi), I8(3), |
717 /* 1547 E> */ B(TestGreaterThan), R(2), U8(3), | 727 /* 1547 E> */ B(TestGreaterThan), R(2), U8(7), |
718 B(JumpIfFalse), U8(5), | 728 B(JumpIfFalse), U8(5), |
719 /* 1554 S> */ B(Ldar), R(0), | 729 /* 1554 S> */ B(Ldar), R(0), |
720 /* 1580 S> */ B(Return), | 730 /* 1580 S> */ B(Return), |
721 /* 1567 S> */ B(Wide), B(Ldar), R16(129), | 731 /* 1567 S> */ B(Wide), B(Ldar), R16(129), |
722 /* 1580 S> */ B(Return), | 732 /* 1580 S> */ B(Return), |
723 ] | 733 ] |
724 constant pool: [ | 734 constant pool: [ |
| 735 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
| 736 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x129"], |
725 ] | 737 ] |
726 handlers: [ | 738 handlers: [ |
727 ] | 739 ] |
728 | 740 |
729 --- | 741 --- |
730 snippet: " | 742 snippet: " |
731 var x0; | 743 var x0; |
732 var x1; | 744 var x1; |
733 var x2; | 745 var x2; |
734 var x3; | 746 var x3; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 var x151; | 894 var x151; |
883 var x152; | 895 var x152; |
884 var x153; | 896 var x153; |
885 var x154; | 897 var x154; |
886 var x155; | 898 var x155; |
887 var x156; | 899 var x156; |
888 var x0 = 0; | 900 var x0 = 0; |
889 var x1 = 0; | 901 var x1 = 0; |
890 for (x128 = 0; x128 < 64; x128++) { x1 += x128;}return x128; | 902 for (x128 = 0; x128 < 64; x128++) { x1 += x128;}return x128; |
891 " | 903 " |
892 frame size: 158 | 904 frame size: 159 |
893 parameter count: 1 | 905 parameter count: 1 |
894 bytecode array length: 56 | 906 bytecode array length: 80 |
895 bytecodes: [ | 907 bytecodes: [ |
896 /* 30 E> */ B(StackCheck), | 908 /* 30 E> */ B(StackCheck), |
897 /* 1503 S> */ B(LdaZero), | 909 /* 1503 S> */ B(LdaConstant), U8(0), |
| 910 B(Wide), B(Star), R16(157), |
| 911 B(LdaZero), |
898 B(Star), R(0), | 912 B(Star), R(0), |
899 /* 1515 S> */ B(LdaZero), | 913 /* 1515 S> */ B(LdaConstant), U8(1), |
| 914 B(Wide), B(Star), R16(157), |
| 915 B(LdaZero), |
900 B(Star), R(1), | 916 B(Star), R(1), |
901 /* 1523 S> */ B(LdaZero), | 917 /* 1523 S> */ B(LdaConstant), U8(2), |
| 918 B(Wide), B(Star), R16(157), |
| 919 B(LdaZero), |
902 B(Wide), B(Star), R16(128), | 920 B(Wide), B(Star), R16(128), |
903 /* 1538 S> */ B(LdaSmi), I8(64), | 921 /* 1538 S> */ B(LdaSmi), I8(64), |
904 /* 1538 E> */ B(Wide), B(TestLessThan), R16(128), U16(2), | 922 /* 1538 E> */ B(Wide), B(TestLessThan), R16(128), U16(8), |
905 B(JumpIfFalse), U8(31), | 923 B(JumpIfFalse), U8(37), |
906 /* 1518 E> */ B(StackCheck), | 924 /* 1518 E> */ B(StackCheck), |
907 /* 1555 S> */ B(Wide), B(Ldar), R16(128), | 925 /* 1555 S> */ B(LdaConstant), U8(1), |
908 /* 1561 E> */ B(Add), R(1), U8(4), | 926 B(Wide), B(Star), R16(157), |
909 B(Wide), B(Mov), R16(1), R16(157), | 927 B(Wide), B(Ldar), R16(128), |
| 928 /* 1561 E> */ B(Add), R(1), U8(10), |
| 929 B(Wide), B(Mov), R16(1), R16(158), |
910 B(Star), R(1), | 930 B(Star), R(1), |
911 /* 1548 S> */ B(Wide), B(Ldar), R16(128), | 931 /* 1548 S> */ B(Wide), B(Ldar), R16(128), |
912 B(Inc), U8(3), | 932 B(Inc), U8(9), |
913 B(Wide), B(Star), R16(128), | 933 B(Wide), B(Star), R16(128), |
914 B(JumpLoop), U8(36), I8(0), | 934 B(JumpLoop), U8(42), I8(0), |
915 /* 1567 S> */ B(Wide), B(Ldar), R16(128), | 935 /* 1567 S> */ B(Wide), B(Ldar), R16(128), |
916 /* 1580 S> */ B(Return), | 936 /* 1580 S> */ B(Return), |
917 ] | 937 ] |
918 constant pool: [ | 938 constant pool: [ |
| 939 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
| 940 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x1"], |
| 941 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x128"], |
919 ] | 942 ] |
920 handlers: [ | 943 handlers: [ |
921 ] | 944 ] |
922 | 945 |
923 --- | 946 --- |
924 snippet: " | 947 snippet: " |
925 var x0; | 948 var x0; |
926 var x1; | 949 var x1; |
927 var x2; | 950 var x2; |
928 var x3; | 951 var x3; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 var x151; | 1099 var x151; |
1077 var x152; | 1100 var x152; |
1078 var x153; | 1101 var x153; |
1079 var x154; | 1102 var x154; |
1080 var x155; | 1103 var x155; |
1081 var x156; | 1104 var x156; |
1082 var x0 = 1234; | 1105 var x0 = 1234; |
1083 var x1 = 0; | 1106 var x1 = 0; |
1084 for (x128 in x0) { x1 += x128;}return x1; | 1107 for (x128 in x0) { x1 += x128;}return x1; |
1085 " | 1108 " |
1086 frame size: 163 | 1109 frame size: 164 |
1087 parameter count: 1 | 1110 parameter count: 1 |
1088 bytecode array length: 85 | 1111 bytecode array length: 103 |
1089 bytecodes: [ | 1112 bytecodes: [ |
1090 /* 30 E> */ B(StackCheck), | 1113 /* 30 E> */ B(StackCheck), |
1091 /* 1503 S> */ B(Wide), B(LdaSmi), I16(1234), | 1114 /* 1503 S> */ B(LdaConstant), U8(0), |
| 1115 B(Wide), B(Star), R16(157), |
| 1116 B(Wide), B(LdaSmi), I16(1234), |
1092 B(Star), R(0), | 1117 B(Star), R(0), |
1093 /* 1518 S> */ B(LdaZero), | 1118 /* 1518 S> */ B(LdaConstant), U8(1), |
| 1119 B(Wide), B(Star), R16(157), |
| 1120 B(LdaZero), |
1094 B(Star), R(1), | 1121 B(Star), R(1), |
1095 /* 1534 S> */ B(Ldar), R(0), | 1122 /* 1534 S> */ B(Ldar), R(0), |
1096 B(JumpIfUndefined), U8(70), | 1123 B(JumpIfUndefined), U8(76), |
1097 B(JumpIfNull), U8(68), | 1124 B(JumpIfNull), U8(74), |
1098 B(Wide), B(ToObject), R16(157), | 1125 B(Wide), B(ToObject), R16(157), |
1099 B(Wide), B(ForInPrepare), R16(157), R16(158), | 1126 B(Wide), B(ForInPrepare), R16(157), R16(158), |
1100 B(LdaZero), | 1127 B(LdaZero), |
1101 B(Wide), B(Star), R16(161), | 1128 B(Wide), B(Star), R16(161), |
1102 /* 1526 S> */ B(Wide), B(ForInContinue), R16(161), R16(160), | 1129 /* 1526 S> */ B(Wide), B(ForInContinue), R16(161), R16(160), |
1103 B(JumpIfFalse), U8(45), | 1130 B(JumpIfFalse), U8(51), |
1104 B(Wide), B(ForInNext), R16(157), R16(161), R16(158), U16(3), | 1131 B(Wide), B(ForInNext), R16(157), R16(161), R16(158), U16(9), |
1105 B(JumpIfUndefined), U8(22), | 1132 B(JumpIfUndefined), U8(28), |
1106 B(Wide), B(Star), R16(128), | 1133 B(Wide), B(Star), R16(128), |
1107 /* 1521 E> */ B(StackCheck), | 1134 /* 1521 E> */ B(StackCheck), |
1108 /* 1541 S> */ B(Wide), B(Ldar), R16(128), | 1135 /* 1541 S> */ B(LdaConstant), U8(1), |
1109 /* 1547 E> */ B(Add), R(1), U8(2), | 1136 B(Wide), B(Star), R16(162), |
1110 B(Wide), B(Mov), R16(1), R16(162), | 1137 B(Wide), B(Ldar), R16(128), |
| 1138 /* 1547 E> */ B(Add), R(1), U8(6), |
| 1139 B(Wide), B(Mov), R16(1), R16(163), |
1111 B(Star), R(1), | 1140 B(Star), R(1), |
1112 /* 1544 E> */ B(Wide), B(ForInStep), R16(161), | 1141 /* 1544 E> */ B(Wide), B(ForInStep), R16(161), |
1113 B(Wide), B(Star), R16(161), | 1142 B(Wide), B(Star), R16(161), |
1114 B(JumpLoop), U8(48), I8(0), | 1143 B(JumpLoop), U8(54), I8(0), |
1115 /* 1553 S> */ B(Ldar), R(1), | 1144 /* 1553 S> */ B(Ldar), R(1), |
1116 /* 1564 S> */ B(Return), | 1145 /* 1564 S> */ B(Return), |
1117 ] | 1146 ] |
1118 constant pool: [ | 1147 constant pool: [ |
| 1148 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
| 1149 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x1"], |
1119 ] | 1150 ] |
1120 handlers: [ | 1151 handlers: [ |
1121 ] | 1152 ] |
1122 | 1153 |
1123 --- | 1154 --- |
1124 snippet: " | 1155 snippet: " |
1125 var x0; | 1156 var x0; |
1126 var x1; | 1157 var x1; |
1127 var x2; | 1158 var x2; |
1128 var x3; | 1159 var x3; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 var x152; | 1308 var x152; |
1278 var x153; | 1309 var x153; |
1279 var x154; | 1310 var x154; |
1280 var x155; | 1311 var x155; |
1281 var x156; | 1312 var x156; |
1282 x0 = %Add(x64, x63); | 1313 x0 = %Add(x64, x63); |
1283 x1 = %Add(x27, x143); | 1314 x1 = %Add(x27, x143); |
1284 %TheHole(); | 1315 %TheHole(); |
1285 return x1; | 1316 return x1; |
1286 " | 1317 " |
1287 frame size: 159 | 1318 frame size: 160 |
1288 parameter count: 1 | 1319 parameter count: 1 |
1289 bytecode array length: 53 | 1320 bytecode array length: 65 |
1290 bytecodes: [ | 1321 bytecodes: [ |
1291 /* 30 E> */ B(StackCheck), | 1322 /* 30 E> */ B(StackCheck), |
1292 /* 1494 S> */ B(Wide), B(Mov), R16(64), R16(157), | 1323 /* 1494 S> */ B(LdaConstant), U8(0), |
1293 B(Wide), B(Mov), R16(63), R16(158), | 1324 B(Wide), B(Star), R16(157), |
1294 /* 1509 E> */ B(Wide), B(CallRuntime), U16(Runtime::kAdd), R16(157), U16(2), | 1325 B(Wide), B(Mov), R16(64), R16(158), |
| 1326 B(Wide), B(Mov), R16(63), R16(159), |
| 1327 /* 1509 E> */ B(Wide), B(CallRuntime), U16(Runtime::kAdd), R16(158), U16(2), |
1295 B(Star), R(0), | 1328 B(Star), R(0), |
1296 /* 1515 S> */ B(Wide), B(Mov), R16(27), R16(157), | 1329 /* 1515 S> */ B(LdaConstant), U8(1), |
1297 B(Wide), B(Mov), R16(143), R16(158), | 1330 B(Wide), B(Star), R16(157), |
1298 /* 1530 E> */ B(Wide), B(CallRuntime), U16(Runtime::kAdd), R16(157), U16(2), | 1331 B(Wide), B(Mov), R16(27), R16(158), |
| 1332 B(Wide), B(Mov), R16(143), R16(159), |
| 1333 /* 1530 E> */ B(Wide), B(CallRuntime), U16(Runtime::kAdd), R16(158), U16(2), |
1299 B(Star), R(1), | 1334 B(Star), R(1), |
1300 /* 1537 S> */ B(CallRuntime), U16(Runtime::kTheHole), R(0), U8(0), | 1335 /* 1537 S> */ B(CallRuntime), U16(Runtime::kTheHole), R(0), U8(0), |
1301 /* 1549 S> */ B(Ldar), R(1), | 1336 /* 1549 S> */ B(Ldar), R(1), |
1302 /* 1560 S> */ B(Return), | 1337 /* 1560 S> */ B(Return), |
1303 ] | 1338 ] |
1304 constant pool: [ | 1339 constant pool: [ |
| 1340 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
| 1341 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x1"], |
1305 ] | 1342 ] |
1306 handlers: [ | 1343 handlers: [ |
1307 ] | 1344 ] |
1308 | 1345 |
OLD | NEW |