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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 | 659 |
660 --- | 660 --- |
661 snippet: " | 661 snippet: " |
662 function* f(arr) { | 662 function* f(arr) { |
663 for (let x of arr) { let y = x; } | 663 for (let x of arr) { let y = x; } |
664 } | 664 } |
665 f([1, 2, 3]); | 665 f([1, 2, 3]); |
666 " | 666 " |
667 frame size: 15 | 667 frame size: 15 |
668 parameter count: 2 | 668 parameter count: 2 |
669 bytecode array length: 626 | 669 bytecode array length: 625 |
670 bytecodes: [ | 670 bytecodes: [ |
671 B(Ldar), R(new_target), | 671 B(Ldar), R(new_target), |
672 B(JumpIfUndefined), U8(27), | 672 B(JumpIfUndefined), U8(27), |
673 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 673 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
674 B(PushContext), R(5), | 674 B(PushContext), R(5), |
675 B(ResumeGenerator), R(new_target), | 675 B(ResumeGenerator), R(new_target), |
676 B(Star), R(4), | 676 B(Star), R(4), |
677 B(LdaZero), | 677 B(LdaZero), |
678 B(TestEqualStrictNoFeedback), R(4), | 678 B(TestEqualStrictNoFeedback), R(4), |
679 B(JumpIfTrue), U8(58), | 679 B(JumpIfTrue), U8(57), |
680 B(LdaSmi), I8(79), | 680 B(LdaSmi), I8(79), |
681 B(Star), R(6), | 681 B(Star), R(6), |
682 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1), | 682 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1), |
683 B(LdaSmi), I8(-2), | 683 B(LdaSmi), I8(-2), |
684 B(Star), R(4), | 684 B(Star), R(4), |
685 B(CreateFunctionContext), U8(10), | 685 B(CreateFunctionContext), U8(10), |
686 B(PushContext), R(0), | 686 B(PushContext), R(0), |
687 B(Ldar), R(this), | 687 B(Ldar), R(this), |
688 B(StaCurrentContextSlot), U8(5), | 688 B(StaCurrentContextSlot), U8(5), |
689 B(Ldar), R(arg0), | 689 B(Ldar), R(arg0), |
690 B(StaCurrentContextSlot), U8(4), | 690 B(StaCurrentContextSlot), U8(4), |
691 /* 11 E> */ B(StackCheck), | 691 /* 11 E> */ B(StackCheck), |
692 B(Mov), R(context), R(8), | 692 B(Mov), R(context), R(8), |
693 B(LdaImmutableCurrentContextSlot), U8(5), | 693 B(LdaImmutableCurrentContextSlot), U8(5), |
694 B(Star), R(10), | 694 B(Star), R(10), |
695 B(Mov), R(closure), R(9), | 695 B(Mov), R(closure), R(9), |
696 /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(9), U8
(2), | 696 /* 11 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(9)
, U8(2), |
697 B(StaCurrentContextSlot), U8(6), | 697 B(StaCurrentContextSlot), U8(6), |
698 B(Star), R(9), | 698 B(Star), R(9), |
699 B(LdaImmutableCurrentContextSlot), U8(6), | 699 B(LdaImmutableCurrentContextSlot), U8(6), |
700 B(Star), R(10), | 700 B(Star), R(10), |
701 B(LdaZero), | 701 B(LdaZero), |
702 B(SuspendGenerator), R(10), U8(0), | 702 B(SuspendGenerator), R(10), U8(0), |
703 B(Ldar), R(9), | 703 B(Ldar), R(9), |
704 /* 55 S> */ B(Return), | 704 /* 55 S> */ B(Return), |
705 B(LdaSmi), I8(-2), | 705 B(LdaSmi), I8(-2), |
706 B(Star), R(4), | 706 B(Star), R(4), |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 FIXED_ARRAY_TYPE, | 941 FIXED_ARRAY_TYPE, |
942 FIXED_ARRAY_TYPE, | 942 FIXED_ARRAY_TYPE, |
943 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 943 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
944 FIXED_ARRAY_TYPE, | 944 FIXED_ARRAY_TYPE, |
945 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 945 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
946 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 946 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
947 FIXED_ARRAY_TYPE, | 947 FIXED_ARRAY_TYPE, |
948 Smi [449], | 948 Smi [449], |
949 ] | 949 ] |
950 handlers: [ | 950 handlers: [ |
951 [49, 559, 565], | 951 [49, 558, 564], |
952 [144, 341, 347], | 952 [143, 340, 346], |
953 [147, 297, 299], | 953 [146, 296, 298], |
954 [433, 449, 451], | 954 [432, 448, 450], |
955 ] | 955 ] |
956 | 956 |
957 --- | 957 --- |
958 snippet: " | 958 snippet: " |
959 function* f(arr) { | 959 function* f(arr) { |
960 for (let x of arr) yield x; | 960 for (let x of arr) yield x; |
961 } | 961 } |
962 f([1, 2, 3]); | 962 f([1, 2, 3]); |
963 " | 963 " |
964 frame size: 18 | 964 frame size: 18 |
965 parameter count: 2 | 965 parameter count: 2 |
966 bytecode array length: 755 | 966 bytecode array length: 754 |
967 bytecodes: [ | 967 bytecodes: [ |
968 B(Ldar), R(new_target), | 968 B(Ldar), R(new_target), |
969 B(JumpIfUndefined), U8(33), | 969 B(JumpIfUndefined), U8(33), |
970 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 970 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
971 B(PushContext), R(4), | 971 B(PushContext), R(4), |
972 B(ResumeGenerator), R(new_target), | 972 B(ResumeGenerator), R(new_target), |
973 B(Star), R(3), | 973 B(Star), R(3), |
974 B(LdaZero), | 974 B(LdaZero), |
975 B(TestEqualStrictNoFeedback), R(3), | 975 B(TestEqualStrictNoFeedback), R(3), |
976 B(JumpIfTrue), U8(64), | 976 B(JumpIfTrue), U8(63), |
977 B(LdaSmi), I8(1), | 977 B(LdaSmi), I8(1), |
978 B(TestEqualStrictNoFeedback), R(3), | 978 B(TestEqualStrictNoFeedback), R(3), |
979 B(JumpIfTrue), U8(156), | 979 B(JumpIfTrue), U8(155), |
980 B(LdaSmi), I8(79), | 980 B(LdaSmi), I8(79), |
981 B(Star), R(5), | 981 B(Star), R(5), |
982 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), | 982 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), |
983 B(LdaSmi), I8(-2), | 983 B(LdaSmi), I8(-2), |
984 B(Star), R(3), | 984 B(Star), R(3), |
985 B(CreateFunctionContext), U8(10), | 985 B(CreateFunctionContext), U8(10), |
986 B(PushContext), R(0), | 986 B(PushContext), R(0), |
987 B(Ldar), R(this), | 987 B(Ldar), R(this), |
988 B(StaCurrentContextSlot), U8(5), | 988 B(StaCurrentContextSlot), U8(5), |
989 B(Ldar), R(arg0), | 989 B(Ldar), R(arg0), |
990 B(StaCurrentContextSlot), U8(4), | 990 B(StaCurrentContextSlot), U8(4), |
991 /* 11 E> */ B(StackCheck), | 991 /* 11 E> */ B(StackCheck), |
992 B(Mov), R(context), R(7), | 992 B(Mov), R(context), R(7), |
993 B(LdaImmutableCurrentContextSlot), U8(5), | 993 B(LdaImmutableCurrentContextSlot), U8(5), |
994 B(Star), R(9), | 994 B(Star), R(9), |
995 B(Mov), R(closure), R(8), | 995 B(Mov), R(closure), R(8), |
996 /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(8), U8
(2), | 996 /* 11 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(8)
, U8(2), |
997 B(StaCurrentContextSlot), U8(6), | 997 B(StaCurrentContextSlot), U8(6), |
998 B(Star), R(8), | 998 B(Star), R(8), |
999 B(LdaImmutableCurrentContextSlot), U8(6), | 999 B(LdaImmutableCurrentContextSlot), U8(6), |
1000 B(Star), R(9), | 1000 B(Star), R(9), |
1001 B(LdaZero), | 1001 B(LdaZero), |
1002 B(SuspendGenerator), R(9), U8(0), | 1002 B(SuspendGenerator), R(9), U8(0), |
1003 B(Ldar), R(8), | 1003 B(Ldar), R(8), |
1004 /* 49 S> */ B(Return), | 1004 /* 49 S> */ B(Return), |
1005 B(LdaSmi), I8(-2), | 1005 B(LdaSmi), I8(-2), |
1006 B(Star), R(3), | 1006 B(Star), R(3), |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1296 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 1296 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
1297 FIXED_ARRAY_TYPE, | 1297 FIXED_ARRAY_TYPE, |
1298 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 1298 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
1299 FIXED_ARRAY_TYPE, | 1299 FIXED_ARRAY_TYPE, |
1300 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 1300 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
1301 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 1301 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
1302 FIXED_ARRAY_TYPE, | 1302 FIXED_ARRAY_TYPE, |
1303 Smi [563], | 1303 Smi [563], |
1304 ] | 1304 ] |
1305 handlers: [ | 1305 handlers: [ |
1306 [55, 679, 685], | 1306 [55, 678, 684], |
1307 [150, 441, 447], | 1307 [149, 440, 446], |
1308 [153, 397, 399], | 1308 [152, 396, 398], |
1309 [534, 550, 552], | 1309 [533, 549, 551], |
1310 ] | 1310 ] |
1311 | 1311 |
1312 --- | 1312 --- |
1313 snippet: " | 1313 snippet: " |
1314 async function f(arr) { | 1314 async function f(arr) { |
1315 for (let x of arr) { let y = x; } | 1315 for (let x of arr) { let y = x; } |
1316 } | 1316 } |
1317 f([1, 2, 3]); | 1317 f([1, 2, 3]); |
1318 " | 1318 " |
1319 frame size: 16 | 1319 frame size: 16 |
1320 parameter count: 2 | 1320 parameter count: 2 |
1321 bytecode array length: 619 | 1321 bytecode array length: 618 |
1322 bytecodes: [ | 1322 bytecodes: [ |
1323 B(Ldar), R(new_target), | 1323 B(Ldar), R(new_target), |
1324 B(JumpIfUndefined), U8(22), | 1324 B(JumpIfUndefined), U8(22), |
1325 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 1325 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
1326 B(PushContext), R(5), | 1326 B(PushContext), R(5), |
1327 B(ResumeGenerator), R(new_target), | 1327 B(ResumeGenerator), R(new_target), |
1328 B(Star), R(4), | 1328 B(Star), R(4), |
1329 B(LdaSmi), I8(79), | 1329 B(LdaSmi), I8(79), |
1330 B(Star), R(6), | 1330 B(Star), R(6), |
1331 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1), | 1331 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1), |
1332 B(LdaSmi), I8(-2), | 1332 B(LdaSmi), I8(-2), |
1333 B(Star), R(4), | 1333 B(Star), R(4), |
1334 B(CreateFunctionContext), U8(11), | 1334 B(CreateFunctionContext), U8(11), |
1335 B(PushContext), R(0), | 1335 B(PushContext), R(0), |
1336 B(Ldar), R(this), | 1336 B(Ldar), R(this), |
1337 B(StaCurrentContextSlot), U8(5), | 1337 B(StaCurrentContextSlot), U8(5), |
1338 B(Ldar), R(arg0), | 1338 B(Ldar), R(arg0), |
1339 B(StaCurrentContextSlot), U8(4), | 1339 B(StaCurrentContextSlot), U8(4), |
1340 /* 16 E> */ B(StackCheck), | 1340 /* 16 E> */ B(StackCheck), |
1341 B(LdaImmutableCurrentContextSlot), U8(5), | 1341 B(LdaImmutableCurrentContextSlot), U8(5), |
1342 B(Star), R(7), | 1342 B(Star), R(7), |
1343 B(Mov), R(closure), R(6), | 1343 B(Mov), R(closure), R(6), |
1344 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(6), U8
(2), | 1344 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(6)
, U8(2), |
1345 B(StaCurrentContextSlot), U8(6), | 1345 B(StaCurrentContextSlot), U8(6), |
1346 B(LdaUndefined), | 1346 B(LdaUndefined), |
1347 B(Star), R(6), | 1347 B(Star), R(6), |
1348 B(CallJSRuntime), U8(%async_function_promise_create), R(6), U8(1
), | 1348 B(CallJSRuntime), U8(%async_function_promise_create), R(6), U8(1
), |
1349 B(StaCurrentContextSlot), U8(14), | 1349 B(StaCurrentContextSlot), U8(14), |
1350 B(Mov), R(context), R(8), | 1350 B(Mov), R(context), R(8), |
1351 B(Mov), R(context), R(9), | 1351 B(Mov), R(context), R(9), |
1352 B(Ldar), R(closure), | 1352 B(Ldar), R(closure), |
1353 B(CreateBlockContext), U8(0), | 1353 B(CreateBlockContext), U8(0), |
1354 B(PushContext), R(1), | 1354 B(PushContext), R(1), |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1591 FIXED_ARRAY_TYPE, | 1591 FIXED_ARRAY_TYPE, |
1592 FIXED_ARRAY_TYPE, | 1592 FIXED_ARRAY_TYPE, |
1593 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 1593 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
1594 FIXED_ARRAY_TYPE, | 1594 FIXED_ARRAY_TYPE, |
1595 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 1595 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
1596 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 1596 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
1597 FIXED_ARRAY_TYPE, | 1597 FIXED_ARRAY_TYPE, |
1598 FIXED_ARRAY_TYPE, | 1598 FIXED_ARRAY_TYPE, |
1599 ] | 1599 ] |
1600 handlers: [ | 1600 handlers: [ |
1601 [67, 559, 565], | 1601 [66, 558, 564], |
1602 [70, 505, 507], | 1602 [69, 504, 506], |
1603 [87, 288, 294], | 1603 [86, 287, 293], |
1604 [90, 240, 242], | 1604 [89, 239, 241], |
1605 [380, 396, 398], | 1605 [379, 395, 397], |
1606 ] | 1606 ] |
1607 | 1607 |
1608 --- | 1608 --- |
1609 snippet: " | 1609 snippet: " |
1610 async function f(arr) { | 1610 async function f(arr) { |
1611 for (let x of arr) await x; | 1611 for (let x of arr) await x; |
1612 } | 1612 } |
1613 f([1, 2, 3]); | 1613 f([1, 2, 3]); |
1614 " | 1614 " |
1615 frame size: 19 | 1615 frame size: 19 |
1616 parameter count: 2 | 1616 parameter count: 2 |
1617 bytecode array length: 773 | 1617 bytecode array length: 772 |
1618 bytecodes: [ | 1618 bytecodes: [ |
1619 B(Ldar), R(new_target), | 1619 B(Ldar), R(new_target), |
1620 B(JumpIfUndefined), U8(27), | 1620 B(JumpIfUndefined), U8(27), |
1621 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 1621 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
1622 B(PushContext), R(4), | 1622 B(PushContext), R(4), |
1623 B(ResumeGenerator), R(new_target), | 1623 B(ResumeGenerator), R(new_target), |
1624 B(Star), R(3), | 1624 B(Star), R(3), |
1625 B(LdaZero), | 1625 B(LdaZero), |
1626 B(TestEqualStrictNoFeedback), R(3), | 1626 B(TestEqualStrictNoFeedback), R(3), |
1627 B(JumpIfTrue), U8(104), | 1627 B(JumpIfTrue), U8(103), |
1628 B(LdaSmi), I8(79), | 1628 B(LdaSmi), I8(79), |
1629 B(Star), R(5), | 1629 B(Star), R(5), |
1630 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), | 1630 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), |
1631 B(LdaSmi), I8(-2), | 1631 B(LdaSmi), I8(-2), |
1632 B(Star), R(3), | 1632 B(Star), R(3), |
1633 B(CreateFunctionContext), U8(12), | 1633 B(CreateFunctionContext), U8(12), |
1634 B(PushContext), R(0), | 1634 B(PushContext), R(0), |
1635 B(Ldar), R(this), | 1635 B(Ldar), R(this), |
1636 B(StaCurrentContextSlot), U8(5), | 1636 B(StaCurrentContextSlot), U8(5), |
1637 B(Ldar), R(arg0), | 1637 B(Ldar), R(arg0), |
1638 B(StaCurrentContextSlot), U8(4), | 1638 B(StaCurrentContextSlot), U8(4), |
1639 /* 16 E> */ B(StackCheck), | 1639 /* 16 E> */ B(StackCheck), |
1640 B(LdaImmutableCurrentContextSlot), U8(5), | 1640 B(LdaImmutableCurrentContextSlot), U8(5), |
1641 B(Star), R(6), | 1641 B(Star), R(6), |
1642 B(Mov), R(closure), R(5), | 1642 B(Mov), R(closure), R(5), |
1643 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8
(2), | 1643 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(5)
, U8(2), |
1644 B(StaCurrentContextSlot), U8(6), | 1644 B(StaCurrentContextSlot), U8(6), |
1645 B(LdaUndefined), | 1645 B(LdaUndefined), |
1646 B(Star), R(5), | 1646 B(Star), R(5), |
1647 B(CallJSRuntime), U8(%async_function_promise_create), R(5), U8(1
), | 1647 B(CallJSRuntime), U8(%async_function_promise_create), R(5), U8(1
), |
1648 B(StaCurrentContextSlot), U8(8), | 1648 B(StaCurrentContextSlot), U8(8), |
1649 B(Mov), R(context), R(7), | 1649 B(Mov), R(context), R(7), |
1650 B(Mov), R(context), R(8), | 1650 B(Mov), R(context), R(8), |
1651 B(Ldar), R(closure), | 1651 B(Ldar), R(closure), |
1652 B(CreateBlockContext), U8(0), | 1652 B(CreateBlockContext), U8(0), |
1653 B(PushContext), R(1), | 1653 B(PushContext), R(1), |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1954 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 1954 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
1955 FIXED_ARRAY_TYPE, | 1955 FIXED_ARRAY_TYPE, |
1956 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 1956 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
1957 FIXED_ARRAY_TYPE, | 1957 FIXED_ARRAY_TYPE, |
1958 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 1958 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
1959 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 1959 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
1960 FIXED_ARRAY_TYPE, | 1960 FIXED_ARRAY_TYPE, |
1961 FIXED_ARRAY_TYPE, | 1961 FIXED_ARRAY_TYPE, |
1962 ] | 1962 ] |
1963 handlers: [ | 1963 handlers: [ |
1964 [72, 704, 710], | 1964 [71, 703, 709], |
1965 [75, 650, 652], | 1965 [74, 649, 651], |
1966 [92, 409, 415], | 1966 [91, 408, 414], |
1967 [95, 361, 363], | 1967 [94, 360, 362], |
1968 [502, 518, 520], | 1968 [501, 517, 519], |
1969 ] | 1969 ] |
1970 | 1970 |
OLD | NEW |