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 623 matching lines...) Loading... |
634 [228, 238, 240], | 634 [228, 238, 240], |
635 ] | 635 ] |
636 | 636 |
637 --- | 637 --- |
638 snippet: " | 638 snippet: " |
639 function* f(arr) { | 639 function* f(arr) { |
640 for (let x of arr) { let y = x; } | 640 for (let x of arr) { let y = x; } |
641 } | 641 } |
642 f([1, 2, 3]); | 642 f([1, 2, 3]); |
643 " | 643 " |
644 frame size: 24 | 644 frame size: 15 |
645 parameter count: 2 | 645 parameter count: 2 |
646 bytecode array length: 435 | 646 bytecode array length: 587 |
647 bytecodes: [ | 647 bytecodes: [ |
648 B(Ldar), R(new_target), | 648 B(Ldar), R(new_target), |
649 B(JumpIfUndefined), U8(25), | 649 B(JumpIfUndefined), U8(25), |
650 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), | 650 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), |
651 B(PushContext), R(14), | 651 B(PushContext), R(5), |
652 B(ResumeGenerator), R(new_target), | 652 B(ResumeGenerator), R(new_target), |
653 B(Star), R(13), | 653 B(Star), R(4), |
654 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), | 654 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), |
655 B(LdaSmi), I8(79), | 655 B(LdaSmi), I8(79), |
656 B(Star), R(15), | 656 B(Star), R(6), |
657 B(CallRuntime), U16(Runtime::kAbort), R(15), U8(1), | 657 B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1), |
658 B(LdaSmi), I8(-2), | 658 B(LdaSmi), I8(-2), |
659 B(Star), R(13), | 659 B(Star), R(4), |
660 B(CreateFunctionContext), U8(1), | 660 B(CreateFunctionContext), U8(9), |
661 B(PushContext), R(11), | 661 B(PushContext), R(0), |
662 B(Ldar), R(arg0), | 662 B(Ldar), R(arg0), |
663 B(StaCurrentContextSlot), U8(4), | 663 B(StaCurrentContextSlot), U8(4), |
664 B(Mov), R(closure), R(15), | 664 B(Mov), R(closure), R(6), |
665 B(Mov), R(this), R(16), | 665 B(Mov), R(this), R(7), |
666 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(15
), U8(2), | 666 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(6)
, U8(2), |
667 B(Star), R(3), | 667 B(StaCurrentContextSlot), U8(5), |
668 /* 11 E> */ B(StackCheck), | 668 /* 11 E> */ B(StackCheck), |
669 B(Mov), R(context), R(17), | 669 B(Mov), R(context), R(8), |
670 B(LdaZero), | 670 B(LdaImmutableCurrentContextSlot), U8(5), |
671 B(Mov), R(3), R(19), | 671 B(Star), R(9), |
672 B(Mov), R(3), R(18), | 672 B(LdaImmutableCurrentContextSlot), U8(5), |
673 /* 11 E> */ B(SuspendGenerator), R(18), U8(0), | 673 B(Star), R(10), |
674 B(Ldar), R(19), | 674 B(LdaZero), |
| 675 /* 11 E> */ B(SuspendGenerator), R(9), U8(0), |
| 676 B(Ldar), R(10), |
675 /* 55 S> */ B(Return), | 677 /* 55 S> */ B(Return), |
676 B(LdaSmi), I8(-2), | 678 B(LdaSmi), I8(-2), |
677 B(Star), R(13), | 679 B(Star), R(4), |
678 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(18), U8(1), | 680 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(9), U8(1), |
679 B(Star), R(19), | 681 B(Star), R(10), |
680 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(18)
, U8(1), | 682 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(9),
U8(1), |
681 B(Star), R(20), | 683 B(Star), R(11), |
682 B(LdaZero), | 684 B(LdaZero), |
683 B(TestEqualStrictNoFeedback), R(20), | 685 B(TestEqualStrictNoFeedback), R(11), |
684 B(JumpIfTrue), U8(28), | 686 B(JumpIfTrue), U8(28), |
685 B(LdaSmi), I8(2), | 687 B(LdaSmi), I8(2), |
686 B(TestEqualStrictNoFeedback), R(20), | 688 B(TestEqualStrictNoFeedback), R(11), |
687 B(JumpIfTrue), U8(19), | 689 B(JumpIfTrue), U8(19), |
688 B(LdaTrue), | 690 B(LdaTrue), |
689 B(Star), R(22), | 691 B(Star), R(13), |
690 B(Mov), R(19), R(21), | 692 B(Mov), R(10), R(12), |
691 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(21)
, U8(2), | 693 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(12)
, U8(2), |
692 B(Star), R(16), | 694 B(Star), R(7), |
693 B(LdaZero), | 695 B(LdaZero), |
694 B(Star), R(15), | 696 B(Star), R(6), |
695 B(JumpConstant), U8(10), | 697 B(JumpConstant), U8(13), |
696 B(Ldar), R(19), | 698 B(Ldar), R(10), |
697 /* 11 E> */ B(Throw), | 699 /* 11 E> */ B(Throw), |
698 B(LdaZero), | 700 B(Ldar), R(closure), |
699 B(Star), R(7), | 701 B(CreateBlockContext), U8(1), |
700 B(Mov), R(context), R(20), | 702 B(PushContext), R(1), |
701 B(Mov), R(context), R(21), | 703 B(LdaTheHole), |
702 /* 35 S> */ B(LdaImmutableCurrentContextSlot), U8(4), | 704 B(StaCurrentContextSlot), U8(4), |
703 B(Star), R(22), | 705 B(LdaZero), |
704 B(LdaNamedProperty), R(22), U8(1), U8(3), | 706 B(StaContextSlot), R(1), U8(9), U8(0), |
705 B(Star), R(23), | 707 B(Mov), R(context), R(11), |
706 B(CallProperty0), R(23), R(22), U8(5), | 708 B(Mov), R(context), R(12), |
| 709 /* 35 S> */ B(LdaImmutableContextSlot), R(1), U8(4), U8(0), |
| 710 B(Star), R(13), |
| 711 B(LdaNamedProperty), R(13), U8(2), U8(3), |
| 712 B(Star), R(14), |
| 713 B(CallProperty0), R(14), R(13), U8(5), |
707 B(JumpIfJSReceiver), U8(7), | 714 B(JumpIfJSReceiver), U8(7), |
708 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), | 715 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), |
709 B(Star), R(5), | 716 /* 35 E> */ B(StaContextSlot), R(1), U8(7), U8(0), |
710 /* 30 S> */ B(LdaNamedProperty), R(5), U8(2), U8(9), | 717 /* 30 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), |
711 B(Star), R(22), | 718 B(Star), R(14), |
712 B(CallProperty0), R(22), R(5), U8(7), | 719 B(LdaNamedProperty), R(14), U8(3), U8(9), |
713 B(Star), R(6), | 720 B(Star), R(13), |
714 /* 30 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1), | 721 B(CallProperty0), R(13), R(14), U8(7), |
| 722 /* 30 E> */ B(StaContextSlot), R(1), U8(8), U8(0), |
| 723 B(Star), R(13), |
| 724 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(13), U8(1), |
715 B(ToBooleanLogicalNot), | 725 B(ToBooleanLogicalNot), |
716 B(JumpIfFalse), U8(7), | 726 B(JumpIfFalse), U8(13), |
717 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(6), U8(1), | 727 B(LdaContextSlot), R(1), U8(8), U8(0), |
718 B(LdaNamedProperty), R(6), U8(3), U8(11), | 728 B(Star), R(13), |
719 B(JumpIfToBooleanTrue), U8(28), | 729 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(13), U8(1), |
720 B(LdaNamedProperty), R(6), U8(4), U8(13), | 730 B(LdaContextSlot), R(1), U8(8), U8(0), |
721 B(Star), R(8), | 731 B(Star), R(13), |
| 732 B(LdaNamedProperty), R(13), U8(4), U8(11), |
| 733 B(JumpIfToBooleanTrue), U8(73), |
| 734 B(LdaContextSlot), R(1), U8(8), U8(0), |
| 735 B(Star), R(13), |
| 736 B(LdaNamedProperty), R(13), U8(5), U8(13), |
| 737 B(StaContextSlot), R(1), U8(10), U8(0), |
722 B(LdaSmi), I8(2), | 738 B(LdaSmi), I8(2), |
723 B(Star), R(7), | 739 B(StaContextSlot), R(1), U8(9), U8(0), |
724 B(Mov), R(8), R(4), | 740 B(LdaContextSlot), R(1), U8(10), U8(0), |
| 741 B(StaContextSlot), R(1), U8(6), U8(0), |
725 /* 21 E> */ B(StackCheck), | 742 /* 21 E> */ B(StackCheck), |
726 B(Mov), R(4), R(1), | 743 B(Ldar), R(closure), |
727 /* 50 S> */ B(Mov), R(1), R(0), | 744 B(CreateBlockContext), U8(6), |
728 B(LdaZero), | 745 B(PushContext), R(2), |
729 B(Star), R(7), | 746 B(LdaTheHole), |
730 B(JumpLoop), U8(53), I8(0), | 747 B(StaCurrentContextSlot), U8(4), |
731 B(Jump), U8(36), | 748 B(LdaContextSlot), R(1), U8(6), U8(0), |
732 B(Star), R(22), | 749 B(StaCurrentContextSlot), U8(4), |
733 B(Ldar), R(closure), | 750 B(Ldar), R(closure), |
734 /* 50 E> */ B(CreateCatchContext), R(22), U8(5), U8(6), | 751 B(CreateBlockContext), U8(7), |
735 B(PushContext), R(12), | 752 B(PushContext), R(3), |
736 B(Star), R(21), | 753 B(LdaTheHole), |
| 754 B(StaCurrentContextSlot), U8(4), |
| 755 /* 50 S> */ B(LdaImmutableContextSlot), R(3), U8(4), U8(0), |
| 756 /* 50 E> */ B(StaCurrentContextSlot), U8(4), |
| 757 B(PopContext), R(3), |
| 758 B(PopContext), R(2), |
| 759 B(LdaZero), |
| 760 B(StaContextSlot), R(1), U8(9), U8(0), |
| 761 B(JumpLoop), U8(120), I8(0), |
| 762 B(Jump), U8(44), |
| 763 B(Star), R(13), |
| 764 B(Ldar), R(closure), |
| 765 B(CreateCatchContext), R(13), U8(8), U8(9), |
| 766 B(PushContext), R(2), |
| 767 B(Star), R(12), |
| 768 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 769 B(Star), R(13), |
737 B(LdaSmi), I8(2), | 770 B(LdaSmi), I8(2), |
738 B(TestEqualStrict), R(7), U8(15), | 771 B(TestEqualStrict), R(13), U8(15), |
739 B(JumpIfFalse), U8(6), | 772 B(JumpIfFalse), U8(8), |
740 B(LdaSmi), I8(1), | 773 B(LdaSmi), I8(1), |
741 B(Star), R(7), | 774 B(StaContextSlot), R(1), U8(9), U8(0), |
742 B(LdaImmutableCurrentContextSlot), U8(4), | 775 B(LdaImmutableCurrentContextSlot), U8(4), |
743 B(Star), R(22), | 776 B(Star), R(13), |
744 B(CallRuntime), U16(Runtime::kReThrow), R(22), U8(1), | 777 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), |
745 B(PopContext), R(12), | 778 B(PopContext), R(2), |
746 B(LdaSmi), I8(-1), | 779 B(LdaSmi), I8(-1), |
747 B(Star), R(18), | 780 B(Star), R(9), |
748 B(Jump), U8(7), | 781 B(Jump), U8(7), |
749 B(Star), R(19), | 782 B(Star), R(10), |
750 B(LdaZero), | 783 B(LdaZero), |
751 B(Star), R(18), | 784 B(Star), R(9), |
752 B(LdaTheHole), | 785 B(LdaTheHole), |
753 B(SetPendingMessage), | 786 B(SetPendingMessage), |
754 B(Star), R(20), | 787 B(Star), R(11), |
755 B(LdaZero), | 788 B(LdaContextSlot), R(1), U8(9), U8(0), |
756 B(TestEqualStrict), R(7), U8(16), | 789 B(Star), R(12), |
757 B(JumpIfTrue), U8(104), | 790 B(LdaZero), |
758 B(LdaNamedProperty), R(5), U8(7), U8(17), | 791 B(TestEqualStrict), R(12), U8(16), |
759 B(Star), R(9), | 792 B(JumpIfTrue), U8(150), |
| 793 B(LdaContextSlot), R(1), U8(7), U8(0), |
| 794 B(Star), R(12), |
| 795 B(LdaNamedProperty), R(12), U8(10), U8(17), |
| 796 B(StaContextSlot), R(1), U8(11), U8(0), |
| 797 B(LdaContextSlot), R(1), U8(11), U8(0), |
760 B(TestUndetectable), | 798 B(TestUndetectable), |
761 B(JumpIfFalse), U8(4), | 799 B(JumpIfFalse), U8(4), |
762 B(Jump), U8(93), | 800 B(Jump), U8(127), |
763 B(LdaSmi), I8(1), | 801 B(LdaContextSlot), R(1), U8(9), U8(0), |
764 B(TestEqualStrict), R(7), U8(20), | 802 B(Star), R(12), |
765 B(JumpIfFalse), U8(61), | 803 B(LdaSmi), I8(1), |
766 B(Ldar), R(9), | 804 B(TestEqualStrict), R(12), U8(20), |
| 805 B(JumpIfFalse), U8(69), |
| 806 B(LdaContextSlot), R(1), U8(11), U8(0), |
767 B(TestTypeOf), U8(5), | 807 B(TestTypeOf), U8(5), |
768 B(JumpIfFalse), U8(4), | 808 B(JumpIfFalse), U8(4), |
769 B(Jump), U8(18), | 809 B(Jump), U8(18), |
770 B(Wide), B(LdaSmi), I16(130), | 810 B(Wide), B(LdaSmi), I16(130), |
771 B(Star), R(21), | 811 B(Star), R(12), |
772 B(LdaConstant), U8(8), | 812 B(LdaConstant), U8(11), |
773 B(Star), R(22), | 813 B(Star), R(13), |
774 B(CallRuntime), U16(Runtime::kNewTypeError), R(21), U8(2), | 814 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), |
775 B(Throw), | 815 B(Throw), |
776 B(Mov), R(context), R(21), | 816 B(Mov), R(context), R(12), |
777 B(Mov), R(9), R(22), | 817 B(LdaContextSlot), R(1), U8(11), U8(0), |
778 B(Mov), R(5), R(23), | 818 B(Star), R(13), |
779 B(InvokeIntrinsic), U8(Runtime::k_Call), R(22), U8(2), | 819 B(LdaContextSlot), R(1), U8(7), U8(0), |
| 820 B(Star), R(14), |
| 821 B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2), |
780 B(Jump), U8(20), | 822 B(Jump), U8(20), |
781 B(Star), R(22), | 823 B(Star), R(13), |
782 B(Ldar), R(closure), | 824 B(Ldar), R(closure), |
783 B(CreateCatchContext), R(22), U8(5), U8(9), | 825 B(CreateCatchContext), R(13), U8(8), U8(12), |
784 B(Star), R(21), | 826 B(Star), R(12), |
785 B(LdaTheHole), | 827 B(LdaTheHole), |
786 B(SetPendingMessage), | 828 B(SetPendingMessage), |
787 B(Ldar), R(21), | 829 B(Ldar), R(12), |
788 B(PushContext), R(12), | 830 B(PushContext), R(2), |
789 B(PopContext), R(12), | 831 B(PopContext), R(2), |
790 B(Jump), U8(27), | 832 B(Jump), U8(47), |
791 B(Mov), R(9), R(21), | 833 B(LdaContextSlot), R(1), U8(11), U8(0), |
792 B(Mov), R(5), R(22), | 834 B(Star), R(12), |
793 B(InvokeIntrinsic), U8(Runtime::k_Call), R(21), U8(2), | 835 B(LdaContextSlot), R(1), U8(7), U8(0), |
794 B(Star), R(10), | 836 B(Star), R(13), |
795 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(10), U8(1), | 837 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), |
| 838 B(StaContextSlot), R(1), U8(12), U8(0), |
| 839 B(LdaContextSlot), R(1), U8(12), U8(0), |
| 840 B(Star), R(12), |
| 841 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), |
796 B(JumpIfToBooleanFalse), U8(4), | 842 B(JumpIfToBooleanFalse), U8(4), |
797 B(Jump), U8(7), | 843 B(Jump), U8(13), |
798 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(10), U8(1), | 844 B(LdaContextSlot), R(1), U8(12), U8(0), |
799 B(Ldar), R(20), | 845 B(Star), R(12), |
800 B(SetPendingMessage), | 846 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), |
801 B(LdaZero), | 847 B(Ldar), R(11), |
802 B(TestEqualStrictNoFeedback), R(18), | 848 B(SetPendingMessage), |
803 B(JumpIfFalse), U8(11), | 849 B(LdaZero), |
804 B(LdaSmi), I8(1), | 850 B(TestEqualStrictNoFeedback), R(9), |
805 B(Star), R(15), | 851 B(JumpIfFalse), U8(13), |
806 B(Mov), R(19), R(16), | 852 B(PopContext), R(1), |
807 B(Jump), U8(31), | 853 B(LdaSmi), I8(1), |
| 854 B(Star), R(6), |
| 855 B(Mov), R(10), R(7), |
| 856 B(Jump), U8(33), |
| 857 B(PopContext), R(1), |
808 B(LdaUndefined), | 858 B(LdaUndefined), |
809 B(Star), R(18), | 859 B(Star), R(9), |
810 B(LdaTrue), | 860 B(LdaTrue), |
811 B(Star), R(19), | 861 B(Star), R(10), |
812 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(18)
, U8(2), | 862 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(9),
U8(2), |
813 B(Star), R(16), | 863 B(Star), R(7), |
814 B(LdaZero), | 864 B(LdaZero), |
815 B(Star), R(15), | 865 B(Star), R(6), |
816 B(Jump), U8(14), | 866 B(Jump), U8(14), |
817 B(LdaSmi), I8(-1), | 867 B(LdaSmi), I8(-1), |
818 B(Star), R(15), | 868 B(Star), R(6), |
819 B(Jump), U8(8), | 869 B(Jump), U8(8), |
820 B(Star), R(16), | 870 B(Star), R(7), |
821 B(LdaSmi), I8(1), | 871 B(LdaSmi), I8(1), |
822 B(Star), R(15), | 872 B(Star), R(6), |
823 B(LdaTheHole), | 873 B(LdaTheHole), |
824 B(SetPendingMessage), | 874 B(SetPendingMessage), |
825 B(Star), R(17), | 875 B(Star), R(8), |
826 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(3), U8(1), | 876 B(LdaImmutableCurrentContextSlot), U8(5), |
827 B(Ldar), R(17), | 877 B(Star), R(9), |
828 B(SetPendingMessage), | 878 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(9), U8(1), |
829 B(Ldar), R(15), | 879 B(Ldar), R(8), |
830 B(SwitchOnSmiNoFeedback), U8(11), U8(2), I8(0), | 880 B(SetPendingMessage), |
| 881 B(Ldar), R(6), |
| 882 B(SwitchOnSmiNoFeedback), U8(14), U8(2), I8(0), |
831 B(Jump), U8(8), | 883 B(Jump), U8(8), |
832 B(Ldar), R(16), | 884 B(Ldar), R(7), |
833 /* 55 S> */ B(Return), | 885 /* 55 S> */ B(Return), |
834 B(Ldar), R(16), | 886 B(Ldar), R(7), |
835 B(ReThrow), | 887 B(ReThrow), |
836 B(LdaUndefined), | 888 B(LdaUndefined), |
837 /* 55 S> */ B(Return), | 889 /* 55 S> */ B(Return), |
838 ] | 890 ] |
839 constant pool: [ | 891 constant pool: [ |
840 Smi [54], | 892 Smi [56], |
| 893 FIXED_ARRAY_TYPE, |
841 SYMBOL_TYPE, | 894 SYMBOL_TYPE, |
842 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], | 895 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
843 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], | 896 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
844 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 897 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
| 898 FIXED_ARRAY_TYPE, |
| 899 FIXED_ARRAY_TYPE, |
845 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 900 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
846 FIXED_ARRAY_TYPE, | 901 FIXED_ARRAY_TYPE, |
847 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 902 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
848 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 903 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
849 FIXED_ARRAY_TYPE, | 904 FIXED_ARRAY_TYPE, |
850 Smi [298], | 905 Smi [444], |
851 Smi [6], | 906 Smi [6], |
852 Smi [9], | 907 Smi [9], |
853 ] | 908 ] |
854 handlers: [ | 909 handlers: [ |
855 [55, 396, 402], | 910 [55, 544, 550], |
856 [121, 239, 245], | 911 [134, 331, 337], |
857 [124, 203, 205], | 912 [137, 287, 289], |
858 [305, 315, 317], | 913 [423, 439, 441], |
859 ] | 914 ] |
860 | 915 |
861 --- | 916 --- |
862 snippet: " | 917 snippet: " |
863 function* f(arr) { | 918 function* f(arr) { |
864 for (let x of arr) yield x; | 919 for (let x of arr) yield x; |
865 } | 920 } |
866 f([1, 2, 3]); | 921 f([1, 2, 3]); |
867 " | 922 " |
868 frame size: 26 | 923 frame size: 17 |
869 parameter count: 2 | 924 parameter count: 2 |
870 bytecode array length: 535 | 925 bytecode array length: 681 |
871 bytecodes: [ | 926 bytecodes: [ |
872 B(Ldar), R(new_target), | 927 B(Ldar), R(new_target), |
873 B(JumpIfUndefined), U8(25), | 928 B(JumpIfUndefined), U8(25), |
874 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), | 929 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), |
875 B(PushContext), R(13), | 930 B(PushContext), R(4), |
876 B(ResumeGenerator), R(new_target), | 931 B(ResumeGenerator), R(new_target), |
877 B(Star), R(12), | 932 B(Star), R(3), |
878 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), | 933 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), |
879 B(LdaSmi), I8(79), | 934 B(LdaSmi), I8(79), |
880 B(Star), R(14), | 935 B(Star), R(5), |
881 B(CallRuntime), U16(Runtime::kAbort), R(14), U8(1), | 936 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), |
882 B(LdaSmi), I8(-2), | 937 B(LdaSmi), I8(-2), |
883 B(Star), R(12), | 938 B(Star), R(3), |
884 B(CreateFunctionContext), U8(1), | 939 B(CreateFunctionContext), U8(9), |
885 B(PushContext), R(10), | 940 B(PushContext), R(0), |
886 B(Ldar), R(arg0), | 941 B(Ldar), R(arg0), |
887 B(StaCurrentContextSlot), U8(4), | 942 B(StaCurrentContextSlot), U8(4), |
888 B(Mov), R(closure), R(14), | 943 B(Mov), R(closure), R(5), |
889 B(Mov), R(this), R(15), | 944 B(Mov), R(this), R(6), |
890 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(14
), U8(2), | 945 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(5)
, U8(2), |
891 B(Star), R(2), | 946 B(StaCurrentContextSlot), U8(5), |
892 /* 11 E> */ B(StackCheck), | 947 /* 11 E> */ B(StackCheck), |
893 B(Mov), R(context), R(16), | 948 B(Mov), R(context), R(7), |
894 B(LdaZero), | 949 B(LdaImmutableCurrentContextSlot), U8(5), |
895 B(Mov), R(2), R(18), | 950 B(Star), R(8), |
896 B(Mov), R(2), R(17), | 951 B(LdaImmutableCurrentContextSlot), U8(5), |
897 /* 11 E> */ B(SuspendGenerator), R(17), U8(0), | 952 B(Star), R(9), |
898 B(Ldar), R(18), | 953 B(LdaZero), |
| 954 /* 11 E> */ B(SuspendGenerator), R(8), U8(0), |
| 955 B(Ldar), R(9), |
899 /* 49 S> */ B(Return), | 956 /* 49 S> */ B(Return), |
900 B(LdaSmi), I8(-2), | 957 B(LdaSmi), I8(-2), |
901 B(Star), R(12), | 958 B(Star), R(3), |
902 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(17), U8(1), | 959 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(8), U8(1), |
903 B(Star), R(18), | 960 B(Star), R(9), |
904 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(17)
, U8(1), | 961 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(8),
U8(1), |
905 B(Star), R(19), | 962 B(Star), R(10), |
906 B(LdaZero), | 963 B(LdaZero), |
907 B(TestEqualStrictNoFeedback), R(19), | 964 B(TestEqualStrictNoFeedback), R(10), |
908 B(JumpIfTrue), U8(28), | 965 B(JumpIfTrue), U8(28), |
909 B(LdaSmi), I8(2), | 966 B(LdaSmi), I8(2), |
910 B(TestEqualStrictNoFeedback), R(19), | 967 B(TestEqualStrictNoFeedback), R(10), |
911 B(JumpIfTrue), U8(19), | 968 B(JumpIfTrue), U8(19), |
912 B(LdaTrue), | 969 B(LdaTrue), |
913 B(Star), R(21), | 970 B(Star), R(12), |
914 B(Mov), R(18), R(20), | 971 B(Mov), R(9), R(11), |
915 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(20)
, U8(2), | 972 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(11)
, U8(2), |
916 B(Star), R(15), | 973 B(Star), R(6), |
917 B(LdaZero), | 974 B(LdaZero), |
918 B(Star), R(14), | 975 B(Star), R(5), |
919 B(JumpConstant), U8(14), | 976 B(JumpConstant), U8(16), |
920 B(Ldar), R(18), | 977 B(Ldar), R(9), |
921 /* 11 E> */ B(Throw), | 978 /* 11 E> */ B(Throw), |
922 B(LdaZero), | 979 B(Ldar), R(closure), |
923 B(Star), R(6), | 980 B(CreateBlockContext), U8(2), |
924 B(Mov), R(context), R(19), | 981 B(PushContext), R(1), |
925 B(Mov), R(context), R(20), | 982 B(LdaTheHole), |
926 /* 35 S> */ B(LdaImmutableCurrentContextSlot), U8(4), | 983 B(StaCurrentContextSlot), U8(4), |
927 B(Star), R(21), | 984 B(LdaZero), |
928 B(LdaNamedProperty), R(21), U8(2), U8(3), | 985 B(StaContextSlot), R(1), U8(9), U8(0), |
929 B(Star), R(22), | 986 B(Mov), R(context), R(10), |
930 B(CallProperty0), R(22), R(21), U8(5), | 987 B(Mov), R(context), R(11), |
| 988 /* 35 S> */ B(LdaImmutableContextSlot), R(1), U8(4), U8(0), |
| 989 B(Star), R(12), |
| 990 B(LdaNamedProperty), R(12), U8(3), U8(3), |
| 991 B(Star), R(13), |
| 992 B(CallProperty0), R(13), R(12), U8(5), |
931 B(JumpIfJSReceiver), U8(7), | 993 B(JumpIfJSReceiver), U8(7), |
932 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), | 994 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), |
933 B(Star), R(4), | 995 /* 35 E> */ B(StaContextSlot), R(1), U8(7), U8(0), |
934 B(Ldar), R(12), | 996 B(Ldar), R(3), |
935 B(SwitchOnSmiNoFeedback), U8(3), U8(1), I8(1), | 997 B(SwitchOnSmiNoFeedback), U8(4), U8(1), I8(1), |
936 B(LdaSmi), I8(-2), | 998 B(LdaSmi), I8(-2), |
937 /* 35 E> */ B(TestEqualStrictNoFeedback), R(12), | 999 B(TestEqualStrictNoFeedback), R(3), |
938 B(JumpIfTrue), U8(11), | 1000 B(JumpIfTrue), U8(11), |
939 B(LdaSmi), I8(79), | 1001 B(LdaSmi), I8(79), |
940 B(Star), R(21), | 1002 B(Star), R(12), |
941 B(CallRuntime), U16(Runtime::kAbort), R(21), U8(1), | 1003 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), |
942 /* 30 S> */ B(LdaNamedProperty), R(4), U8(4), U8(9), | 1004 /* 30 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), |
943 B(Star), R(21), | 1005 B(Star), R(13), |
944 B(CallProperty0), R(21), R(4), U8(7), | 1006 B(LdaNamedProperty), R(13), U8(5), U8(9), |
945 B(Star), R(5), | 1007 B(Star), R(12), |
946 /* 30 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(5), U8(1), | 1008 B(CallProperty0), R(12), R(13), U8(7), |
| 1009 /* 30 E> */ B(StaContextSlot), R(1), U8(8), U8(0), |
| 1010 B(Star), R(12), |
| 1011 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), |
947 B(ToBooleanLogicalNot), | 1012 B(ToBooleanLogicalNot), |
948 B(JumpIfFalse), U8(7), | 1013 B(JumpIfFalse), U8(13), |
949 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(5), U8(1), | 1014 B(LdaContextSlot), R(1), U8(8), U8(0), |
950 B(LdaNamedProperty), R(5), U8(5), U8(11), | 1015 B(Star), R(12), |
951 B(JumpIfToBooleanTrue), U8(95), | 1016 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), |
952 B(LdaNamedProperty), R(5), U8(6), U8(13), | 1017 B(LdaContextSlot), R(1), U8(8), U8(0), |
953 B(Star), R(7), | 1018 B(Star), R(12), |
| 1019 B(LdaNamedProperty), R(12), U8(6), U8(11), |
| 1020 B(JumpIfToBooleanTrue), U8(132), |
| 1021 B(LdaContextSlot), R(1), U8(8), U8(0), |
| 1022 B(Star), R(12), |
| 1023 B(LdaNamedProperty), R(12), U8(7), U8(13), |
| 1024 B(StaContextSlot), R(1), U8(10), U8(0), |
954 B(LdaSmi), I8(2), | 1025 B(LdaSmi), I8(2), |
955 B(Star), R(6), | 1026 B(StaContextSlot), R(1), U8(9), U8(0), |
956 B(Mov), R(7), R(3), | 1027 B(LdaContextSlot), R(1), U8(10), U8(0), |
| 1028 B(StaContextSlot), R(1), U8(6), U8(0), |
957 /* 21 E> */ B(StackCheck), | 1029 /* 21 E> */ B(StackCheck), |
958 B(Mov), R(3), R(0), | 1030 B(Ldar), R(closure), |
959 /* 40 S> */ B(LdaFalse), | 1031 B(CreateBlockContext), U8(8), |
960 B(Star), R(23), | 1032 B(PushContext), R(2), |
961 B(Mov), R(3), R(22), | 1033 B(LdaTheHole), |
962 /* 46 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(22)
, U8(2), | 1034 B(StaCurrentContextSlot), U8(4), |
963 B(Star), R(22), | 1035 B(LdaContextSlot), R(1), U8(6), U8(0), |
964 B(LdaSmi), I8(1), | 1036 B(StaCurrentContextSlot), U8(4), |
965 B(Mov), R(2), R(21), | 1037 /* 40 S> */ B(LdaImmutableContextSlot), R(1), U8(5), U8(0), |
966 B(SuspendGenerator), R(21), U8(0), | 1038 B(Star), R(12), |
967 B(Ldar), R(22), | 1039 B(LdaImmutableCurrentContextSlot), U8(4), |
| 1040 B(Star), R(13), |
| 1041 B(LdaFalse), |
| 1042 B(Star), R(14), |
| 1043 /* 46 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13)
, U8(2), |
| 1044 B(Star), R(13), |
| 1045 B(LdaSmi), I8(1), |
| 1046 B(SuspendGenerator), R(12), U8(0), |
| 1047 B(Ldar), R(13), |
968 /* 49 S> */ B(Return), | 1048 /* 49 S> */ B(Return), |
969 B(LdaSmi), I8(-2), | 1049 B(LdaSmi), I8(-2), |
970 B(Star), R(12), | 1050 B(Star), R(3), |
971 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(21), U8(1), | 1051 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(12), U8(1), |
972 B(Star), R(22), | 1052 B(Star), R(13), |
973 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(21)
, U8(1), | 1053 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(12)
, U8(1), |
974 B(Star), R(23), | 1054 B(Star), R(14), |
975 B(LdaZero), | 1055 B(LdaZero), |
976 B(TestEqualStrictNoFeedback), R(23), | 1056 B(TestEqualStrictNoFeedback), R(14), |
977 B(JumpIfTrue), U8(28), | 1057 B(JumpIfTrue), U8(30), |
978 B(LdaSmi), I8(2), | 1058 B(LdaSmi), I8(2), |
979 B(TestEqualStrictNoFeedback), R(23), | 1059 B(TestEqualStrictNoFeedback), R(14), |
980 B(JumpIfTrue), U8(19), | 1060 B(JumpIfTrue), U8(21), |
981 B(LdaTrue), | 1061 B(LdaTrue), |
982 B(Star), R(25), | 1062 B(Star), R(16), |
983 B(Mov), R(22), R(24), | 1063 B(Mov), R(13), R(15), |
984 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(24)
, U8(2), | 1064 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(15)
, U8(2), |
985 B(Star), R(18), | 1065 B(PopContext), R(2), |
986 B(LdaZero), | 1066 B(Star), R(9), |
987 B(Star), R(17), | 1067 B(LdaZero), |
988 B(Jump), U8(59), | 1068 B(Star), R(8), |
989 B(Ldar), R(22), | 1069 B(Jump), U8(71), |
| 1070 B(Ldar), R(13), |
990 /* 40 E> */ B(Throw), | 1071 /* 40 E> */ B(Throw), |
991 B(LdaZero), | 1072 B(PopContext), R(2), |
992 B(Star), R(6), | 1073 B(LdaZero), |
993 B(JumpLoop), U8(141), I8(0), | 1074 B(StaContextSlot), R(1), U8(9), U8(0), |
994 B(Jump), U8(36), | 1075 B(JumpLoop), U8(200), I8(0), |
995 B(Star), R(21), | 1076 B(Jump), U8(44), |
| 1077 B(Star), R(12), |
996 B(Ldar), R(closure), | 1078 B(Ldar), R(closure), |
997 B(CreateCatchContext), R(21), U8(7), U8(8), | 1079 B(CreateCatchContext), R(12), U8(9), U8(10), |
998 B(PushContext), R(11), | 1080 B(PushContext), R(2), |
999 B(Star), R(20), | 1081 B(Star), R(11), |
| 1082 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 1083 B(Star), R(12), |
1000 B(LdaSmi), I8(2), | 1084 B(LdaSmi), I8(2), |
1001 B(TestEqualStrict), R(6), U8(15), | 1085 B(TestEqualStrict), R(12), U8(15), |
1002 B(JumpIfFalse), U8(6), | 1086 B(JumpIfFalse), U8(8), |
1003 B(LdaSmi), I8(1), | 1087 B(LdaSmi), I8(1), |
1004 B(Star), R(6), | 1088 B(StaContextSlot), R(1), U8(9), U8(0), |
1005 B(LdaImmutableCurrentContextSlot), U8(4), | 1089 B(LdaImmutableCurrentContextSlot), U8(4), |
1006 B(Star), R(21), | 1090 B(Star), R(12), |
1007 B(CallRuntime), U16(Runtime::kReThrow), R(21), U8(1), | 1091 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), |
1008 B(PopContext), R(11), | 1092 B(PopContext), R(2), |
1009 B(LdaSmi), I8(-1), | 1093 B(LdaSmi), I8(-1), |
1010 B(Star), R(17), | 1094 B(Star), R(8), |
1011 B(Jump), U8(8), | 1095 B(Jump), U8(8), |
1012 B(Star), R(18), | 1096 B(Star), R(9), |
1013 B(LdaSmi), I8(1), | 1097 B(LdaSmi), I8(1), |
1014 B(Star), R(17), | 1098 B(Star), R(8), |
1015 B(LdaTheHole), | 1099 B(LdaTheHole), |
1016 B(SetPendingMessage), | 1100 B(SetPendingMessage), |
1017 B(Star), R(19), | 1101 B(Star), R(10), |
1018 B(LdaZero), | 1102 B(LdaContextSlot), R(1), U8(9), U8(0), |
1019 B(TestEqualStrict), R(6), U8(16), | 1103 B(Star), R(11), |
1020 B(JumpIfTrue), U8(104), | 1104 B(LdaZero), |
1021 B(LdaNamedProperty), R(4), U8(9), U8(17), | 1105 B(TestEqualStrict), R(11), U8(16), |
1022 B(Star), R(8), | 1106 B(JumpIfTrue), U8(150), |
| 1107 B(LdaContextSlot), R(1), U8(7), U8(0), |
| 1108 B(Star), R(11), |
| 1109 B(LdaNamedProperty), R(11), U8(11), U8(17), |
| 1110 B(StaContextSlot), R(1), U8(11), U8(0), |
| 1111 B(LdaContextSlot), R(1), U8(11), U8(0), |
1023 B(TestUndetectable), | 1112 B(TestUndetectable), |
1024 B(JumpIfFalse), U8(4), | 1113 B(JumpIfFalse), U8(4), |
1025 B(Jump), U8(93), | 1114 B(Jump), U8(127), |
1026 B(LdaSmi), I8(1), | 1115 B(LdaContextSlot), R(1), U8(9), U8(0), |
1027 B(TestEqualStrict), R(6), U8(20), | 1116 B(Star), R(11), |
1028 B(JumpIfFalse), U8(61), | 1117 B(LdaSmi), I8(1), |
1029 B(Ldar), R(8), | 1118 B(TestEqualStrict), R(11), U8(20), |
| 1119 B(JumpIfFalse), U8(69), |
| 1120 B(LdaContextSlot), R(1), U8(11), U8(0), |
1030 B(TestTypeOf), U8(5), | 1121 B(TestTypeOf), U8(5), |
1031 B(JumpIfFalse), U8(4), | 1122 B(JumpIfFalse), U8(4), |
1032 B(Jump), U8(18), | 1123 B(Jump), U8(18), |
1033 B(Wide), B(LdaSmi), I16(130), | 1124 B(Wide), B(LdaSmi), I16(130), |
1034 B(Star), R(20), | 1125 B(Star), R(11), |
1035 B(LdaConstant), U8(10), | 1126 B(LdaConstant), U8(12), |
1036 B(Star), R(21), | 1127 B(Star), R(12), |
1037 B(CallRuntime), U16(Runtime::kNewTypeError), R(20), U8(2), | 1128 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), |
1038 B(Throw), | 1129 B(Throw), |
1039 B(Mov), R(context), R(20), | 1130 B(Mov), R(context), R(11), |
1040 B(Mov), R(8), R(21), | 1131 B(LdaContextSlot), R(1), U8(11), U8(0), |
1041 B(Mov), R(4), R(22), | 1132 B(Star), R(12), |
1042 B(InvokeIntrinsic), U8(Runtime::k_Call), R(21), U8(2), | 1133 B(LdaContextSlot), R(1), U8(7), U8(0), |
| 1134 B(Star), R(13), |
| 1135 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), |
1043 B(Jump), U8(20), | 1136 B(Jump), U8(20), |
1044 B(Star), R(21), | 1137 B(Star), R(12), |
1045 B(Ldar), R(closure), | 1138 B(Ldar), R(closure), |
1046 B(CreateCatchContext), R(21), U8(7), U8(11), | 1139 B(CreateCatchContext), R(12), U8(9), U8(13), |
1047 B(Star), R(20), | 1140 B(Star), R(11), |
1048 B(LdaTheHole), | 1141 B(LdaTheHole), |
1049 B(SetPendingMessage), | 1142 B(SetPendingMessage), |
1050 B(Ldar), R(20), | 1143 B(Ldar), R(11), |
1051 B(PushContext), R(11), | 1144 B(PushContext), R(2), |
1052 B(PopContext), R(11), | 1145 B(PopContext), R(2), |
1053 B(Jump), U8(27), | 1146 B(Jump), U8(47), |
1054 B(Mov), R(8), R(20), | 1147 B(LdaContextSlot), R(1), U8(11), U8(0), |
1055 B(Mov), R(4), R(21), | 1148 B(Star), R(11), |
1056 B(InvokeIntrinsic), U8(Runtime::k_Call), R(20), U8(2), | 1149 B(LdaContextSlot), R(1), U8(7), U8(0), |
1057 B(Star), R(9), | 1150 B(Star), R(12), |
1058 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(9), U8(1), | 1151 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2), |
| 1152 B(StaContextSlot), R(1), U8(12), U8(0), |
| 1153 B(LdaContextSlot), R(1), U8(12), U8(0), |
| 1154 B(Star), R(11), |
| 1155 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1), |
1059 B(JumpIfToBooleanFalse), U8(4), | 1156 B(JumpIfToBooleanFalse), U8(4), |
1060 B(Jump), U8(7), | 1157 B(Jump), U8(13), |
1061 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(9), U8(1), | 1158 B(LdaContextSlot), R(1), U8(12), U8(0), |
1062 B(Ldar), R(19), | 1159 B(Star), R(11), |
1063 B(SetPendingMessage), | 1160 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(11), U8(1), |
1064 B(Ldar), R(17), | 1161 B(Ldar), R(10), |
1065 B(SwitchOnSmiNoFeedback), U8(12), U8(2), I8(0), | 1162 B(SetPendingMessage), |
1066 B(Jump), U8(19), | 1163 B(Ldar), R(8), |
1067 B(LdaZero), | 1164 B(SwitchOnSmiNoFeedback), U8(14), U8(2), I8(0), |
1068 B(Star), R(14), | 1165 B(Jump), U8(23), |
1069 B(Mov), R(18), R(15), | 1166 B(PopContext), R(1), |
1070 B(Jump), U8(40), | 1167 B(LdaZero), |
1071 B(LdaSmi), I8(1), | 1168 B(Star), R(5), |
1072 B(Star), R(14), | 1169 B(Mov), R(9), R(6), |
1073 B(Mov), R(18), R(15), | 1170 B(Jump), U8(44), |
1074 B(Jump), U8(31), | 1171 B(PopContext), R(1), |
| 1172 B(LdaSmi), I8(1), |
| 1173 B(Star), R(5), |
| 1174 B(Mov), R(9), R(6), |
| 1175 B(Jump), U8(33), |
| 1176 B(PopContext), R(1), |
1075 B(LdaUndefined), | 1177 B(LdaUndefined), |
1076 B(Star), R(17), | 1178 B(Star), R(8), |
1077 B(LdaTrue), | 1179 B(LdaTrue), |
1078 B(Star), R(18), | 1180 B(Star), R(9), |
1079 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(17)
, U8(2), | 1181 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8),
U8(2), |
1080 B(Star), R(15), | 1182 B(Star), R(6), |
1081 B(LdaZero), | 1183 B(LdaZero), |
1082 B(Star), R(14), | 1184 B(Star), R(5), |
1083 B(Jump), U8(14), | 1185 B(Jump), U8(14), |
1084 B(LdaSmi), I8(-1), | 1186 B(LdaSmi), I8(-1), |
1085 B(Star), R(14), | 1187 B(Star), R(5), |
1086 B(Jump), U8(8), | 1188 B(Jump), U8(8), |
1087 B(Star), R(15), | 1189 B(Star), R(6), |
1088 B(LdaSmi), I8(1), | 1190 B(LdaSmi), I8(1), |
1089 B(Star), R(14), | 1191 B(Star), R(5), |
1090 B(LdaTheHole), | 1192 B(LdaTheHole), |
1091 B(SetPendingMessage), | 1193 B(SetPendingMessage), |
1092 B(Star), R(16), | 1194 B(Star), R(7), |
1093 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(2), U8(1), | 1195 B(LdaImmutableCurrentContextSlot), U8(5), |
1094 B(Ldar), R(16), | 1196 B(Star), R(8), |
1095 B(SetPendingMessage), | 1197 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(8), U8(1), |
1096 B(Ldar), R(14), | 1198 B(Ldar), R(7), |
1097 B(SwitchOnSmiNoFeedback), U8(15), U8(2), I8(0), | 1199 B(SetPendingMessage), |
| 1200 B(Ldar), R(5), |
| 1201 B(SwitchOnSmiNoFeedback), U8(17), U8(2), I8(0), |
1098 B(Jump), U8(8), | 1202 B(Jump), U8(8), |
1099 B(Ldar), R(15), | 1203 B(Ldar), R(6), |
1100 /* 49 S> */ B(Return), | 1204 /* 49 S> */ B(Return), |
1101 B(Ldar), R(15), | 1205 B(Ldar), R(6), |
1102 B(ReThrow), | 1206 B(ReThrow), |
1103 B(LdaUndefined), | 1207 B(LdaUndefined), |
1104 /* 49 S> */ B(Return), | 1208 /* 49 S> */ B(Return), |
1105 ] | 1209 ] |
1106 constant pool: [ | 1210 constant pool: [ |
1107 Smi [54], | 1211 Smi [56], |
1108 Smi [133], | 1212 Smi [150], |
| 1213 FIXED_ARRAY_TYPE, |
1109 SYMBOL_TYPE, | 1214 SYMBOL_TYPE, |
1110 Smi [89], | 1215 Smi [142], |
1111 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], | 1216 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
1112 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], | 1217 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
1113 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 1218 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
| 1219 FIXED_ARRAY_TYPE, |
1114 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 1220 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
1115 FIXED_ARRAY_TYPE, | 1221 FIXED_ARRAY_TYPE, |
1116 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 1222 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
1117 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 1223 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
1118 FIXED_ARRAY_TYPE, | 1224 FIXED_ARRAY_TYPE, |
1119 Smi [6], | 1225 Smi [6], |
1120 Smi [14], | 1226 Smi [16], |
1121 Smi [398], | 1227 Smi [538], |
1122 Smi [6], | 1228 Smi [6], |
1123 Smi [9], | 1229 Smi [9], |
1124 ] | 1230 ] |
1125 handlers: [ | 1231 handlers: [ |
1126 [55, 496, 502], | 1232 [55, 638, 644], |
1127 [121, 327, 333], | 1233 [134, 411, 417], |
1128 [124, 291, 293], | 1234 [137, 367, 369], |
1129 [394, 404, 406], | 1235 [504, 520, 522], |
1130 ] | 1236 ] |
1131 | 1237 |
1132 --- | 1238 --- |
1133 snippet: " | 1239 snippet: " |
1134 async function f(arr) { | 1240 async function f(arr) { |
1135 for (let x of arr) { let y = x; } | 1241 for (let x of arr) { let y = x; } |
1136 } | 1242 } |
1137 f([1, 2, 3]); | 1243 f([1, 2, 3]); |
1138 " | 1244 " |
1139 frame size: 24 | 1245 frame size: 14 |
1140 parameter count: 2 | 1246 parameter count: 2 |
1141 bytecode array length: 397 | 1247 bytecode array length: 550 |
1142 bytecodes: [ | 1248 bytecodes: [ |
1143 B(CreateFunctionContext), U8(1), | 1249 B(CreateFunctionContext), U8(10), |
1144 B(PushContext), R(12), | 1250 B(PushContext), R(0), |
1145 B(Ldar), R(arg0), | 1251 B(Ldar), R(arg0), |
1146 B(StaCurrentContextSlot), U8(4), | 1252 B(StaCurrentContextSlot), U8(4), |
1147 /* 16 E> */ B(StackCheck), | 1253 /* 16 E> */ B(StackCheck), |
1148 B(LdaUndefined), | 1254 B(LdaUndefined), |
1149 B(Star), R(14), | 1255 B(Star), R(4), |
1150 B(CallJSRuntime), U8(%async_function_promise_create), R(14), U8(
1), | 1256 B(CallJSRuntime), U8(%async_function_promise_create), R(4), U8(1
), |
1151 B(Star), R(11), | 1257 B(StaCurrentContextSlot), U8(13), |
1152 B(Mov), R(context), R(16), | 1258 B(Mov), R(context), R(6), |
1153 B(Mov), R(context), R(17), | 1259 B(Mov), R(context), R(7), |
1154 B(LdaZero), | 1260 B(Ldar), R(closure), |
1155 B(Star), R(7), | 1261 B(CreateBlockContext), U8(0), |
1156 B(Mov), R(context), R(20), | 1262 B(PushContext), R(1), |
1157 B(Mov), R(context), R(21), | 1263 B(LdaTheHole), |
1158 /* 40 S> */ B(LdaImmutableCurrentContextSlot), U8(4), | 1264 B(StaCurrentContextSlot), U8(4), |
1159 B(Star), R(22), | 1265 B(LdaZero), |
1160 B(LdaNamedProperty), R(22), U8(0), U8(3), | 1266 B(StaContextSlot), R(1), U8(9), U8(0), |
1161 B(Star), R(23), | 1267 B(Mov), R(context), R(10), |
1162 B(CallProperty0), R(23), R(22), U8(5), | 1268 B(Mov), R(context), R(11), |
| 1269 /* 40 S> */ B(LdaImmutableContextSlot), R(1), U8(4), U8(0), |
| 1270 B(Star), R(12), |
| 1271 B(LdaNamedProperty), R(12), U8(1), U8(3), |
| 1272 B(Star), R(13), |
| 1273 B(CallProperty0), R(13), R(12), U8(5), |
1163 B(JumpIfJSReceiver), U8(7), | 1274 B(JumpIfJSReceiver), U8(7), |
1164 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), | 1275 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), |
1165 B(Star), R(5), | 1276 /* 40 E> */ B(StaContextSlot), R(1), U8(7), U8(0), |
1166 /* 35 S> */ B(LdaNamedProperty), R(5), U8(1), U8(9), | 1277 /* 35 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), |
1167 B(Star), R(22), | 1278 B(Star), R(13), |
1168 B(CallProperty0), R(22), R(5), U8(7), | 1279 B(LdaNamedProperty), R(13), U8(2), U8(9), |
1169 B(Star), R(6), | 1280 B(Star), R(12), |
1170 /* 35 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1), | 1281 B(CallProperty0), R(12), R(13), U8(7), |
| 1282 /* 35 E> */ B(StaContextSlot), R(1), U8(8), U8(0), |
| 1283 B(Star), R(12), |
| 1284 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), |
1171 B(ToBooleanLogicalNot), | 1285 B(ToBooleanLogicalNot), |
1172 B(JumpIfFalse), U8(7), | 1286 B(JumpIfFalse), U8(13), |
1173 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(6), U8(1), | 1287 B(LdaContextSlot), R(1), U8(8), U8(0), |
1174 B(LdaNamedProperty), R(6), U8(2), U8(11), | 1288 B(Star), R(12), |
1175 B(JumpIfToBooleanTrue), U8(28), | 1289 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), |
1176 B(LdaNamedProperty), R(6), U8(3), U8(13), | 1290 B(LdaContextSlot), R(1), U8(8), U8(0), |
1177 B(Star), R(8), | 1291 B(Star), R(12), |
| 1292 B(LdaNamedProperty), R(12), U8(3), U8(11), |
| 1293 B(JumpIfToBooleanTrue), U8(73), |
| 1294 B(LdaContextSlot), R(1), U8(8), U8(0), |
| 1295 B(Star), R(12), |
| 1296 B(LdaNamedProperty), R(12), U8(4), U8(13), |
| 1297 B(StaContextSlot), R(1), U8(10), U8(0), |
1178 B(LdaSmi), I8(2), | 1298 B(LdaSmi), I8(2), |
1179 B(Star), R(7), | 1299 B(StaContextSlot), R(1), U8(9), U8(0), |
1180 B(Mov), R(8), R(4), | 1300 B(LdaContextSlot), R(1), U8(10), U8(0), |
| 1301 B(StaContextSlot), R(1), U8(6), U8(0), |
1181 /* 26 E> */ B(StackCheck), | 1302 /* 26 E> */ B(StackCheck), |
1182 B(Mov), R(4), R(1), | 1303 B(Ldar), R(closure), |
1183 /* 55 S> */ B(Mov), R(1), R(0), | 1304 B(CreateBlockContext), U8(5), |
1184 B(LdaZero), | 1305 B(PushContext), R(2), |
1185 B(Star), R(7), | 1306 B(LdaTheHole), |
1186 B(JumpLoop), U8(53), I8(0), | 1307 B(StaCurrentContextSlot), U8(4), |
1187 B(Jump), U8(40), | 1308 B(LdaContextSlot), R(1), U8(6), U8(0), |
1188 B(Star), R(22), | 1309 B(StaCurrentContextSlot), U8(4), |
1189 B(Ldar), R(closure), | 1310 B(Ldar), R(closure), |
1190 /* 55 E> */ B(CreateCatchContext), R(22), U8(4), U8(5), | 1311 B(CreateBlockContext), U8(6), |
1191 B(Star), R(21), | 1312 B(PushContext), R(3), |
1192 B(LdaTheHole), | 1313 B(LdaTheHole), |
1193 B(SetPendingMessage), | 1314 B(StaCurrentContextSlot), U8(4), |
1194 B(Ldar), R(21), | 1315 /* 55 S> */ B(LdaImmutableContextSlot), R(3), U8(4), U8(0), |
1195 B(PushContext), R(13), | 1316 /* 55 E> */ B(StaCurrentContextSlot), U8(4), |
| 1317 B(PopContext), R(3), |
| 1318 B(PopContext), R(2), |
| 1319 B(LdaZero), |
| 1320 B(StaContextSlot), R(1), U8(9), U8(0), |
| 1321 B(JumpLoop), U8(120), I8(0), |
| 1322 B(Jump), U8(48), |
| 1323 B(Star), R(12), |
| 1324 B(Ldar), R(closure), |
| 1325 B(CreateCatchContext), R(12), U8(7), U8(8), |
| 1326 B(Star), R(11), |
| 1327 B(LdaTheHole), |
| 1328 B(SetPendingMessage), |
| 1329 B(Ldar), R(11), |
| 1330 B(PushContext), R(2), |
| 1331 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 1332 B(Star), R(12), |
1196 B(LdaSmi), I8(2), | 1333 B(LdaSmi), I8(2), |
1197 B(TestEqualStrict), R(7), U8(15), | 1334 B(TestEqualStrict), R(12), U8(15), |
1198 B(JumpIfFalse), U8(6), | 1335 B(JumpIfFalse), U8(8), |
1199 B(LdaSmi), I8(1), | 1336 B(LdaSmi), I8(1), |
1200 B(Star), R(7), | 1337 B(StaContextSlot), R(1), U8(9), U8(0), |
1201 B(LdaImmutableCurrentContextSlot), U8(4), | 1338 B(LdaImmutableCurrentContextSlot), U8(4), |
1202 B(Star), R(22), | 1339 B(Star), R(12), |
1203 B(CallRuntime), U16(Runtime::kReThrow), R(22), U8(1), | 1340 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), |
1204 B(PopContext), R(13), | 1341 B(PopContext), R(2), |
1205 B(LdaSmi), I8(-1), | 1342 B(LdaSmi), I8(-1), |
1206 B(Star), R(18), | 1343 B(Star), R(8), |
1207 B(Jump), U8(7), | 1344 B(Jump), U8(7), |
1208 B(Star), R(19), | |
1209 B(LdaZero), | |
1210 B(Star), R(18), | |
1211 B(LdaTheHole), | |
1212 B(SetPendingMessage), | |
1213 B(Star), R(20), | |
1214 B(LdaZero), | |
1215 B(TestEqualStrict), R(7), U8(16), | |
1216 B(JumpIfTrue), U8(104), | |
1217 B(LdaNamedProperty), R(5), U8(6), U8(17), | |
1218 B(Star), R(9), | 1345 B(Star), R(9), |
| 1346 B(LdaZero), |
| 1347 B(Star), R(8), |
| 1348 B(LdaTheHole), |
| 1349 B(SetPendingMessage), |
| 1350 B(Star), R(10), |
| 1351 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 1352 B(Star), R(11), |
| 1353 B(LdaZero), |
| 1354 B(TestEqualStrict), R(11), U8(16), |
| 1355 B(JumpIfTrue), U8(150), |
| 1356 B(LdaContextSlot), R(1), U8(7), U8(0), |
| 1357 B(Star), R(11), |
| 1358 B(LdaNamedProperty), R(11), U8(9), U8(17), |
| 1359 B(StaContextSlot), R(1), U8(11), U8(0), |
| 1360 B(LdaContextSlot), R(1), U8(11), U8(0), |
1219 B(TestUndetectable), | 1361 B(TestUndetectable), |
1220 B(JumpIfFalse), U8(4), | 1362 B(JumpIfFalse), U8(4), |
1221 B(Jump), U8(93), | 1363 B(Jump), U8(127), |
| 1364 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 1365 B(Star), R(11), |
1222 B(LdaSmi), I8(1), | 1366 B(LdaSmi), I8(1), |
1223 B(TestEqualStrict), R(7), U8(20), | 1367 B(TestEqualStrict), R(11), U8(20), |
1224 B(JumpIfFalse), U8(61), | 1368 B(JumpIfFalse), U8(69), |
1225 B(Ldar), R(9), | 1369 B(LdaContextSlot), R(1), U8(11), U8(0), |
1226 B(TestTypeOf), U8(5), | 1370 B(TestTypeOf), U8(5), |
1227 B(JumpIfFalse), U8(4), | 1371 B(JumpIfFalse), U8(4), |
1228 B(Jump), U8(18), | 1372 B(Jump), U8(18), |
1229 B(Wide), B(LdaSmi), I16(130), | 1373 B(Wide), B(LdaSmi), I16(130), |
1230 B(Star), R(21), | 1374 B(Star), R(11), |
1231 B(LdaConstant), U8(7), | 1375 B(LdaConstant), U8(10), |
1232 B(Star), R(22), | 1376 B(Star), R(12), |
1233 B(CallRuntime), U16(Runtime::kNewTypeError), R(21), U8(2), | 1377 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), |
1234 B(Throw), | 1378 B(Throw), |
1235 B(Mov), R(context), R(21), | 1379 B(Mov), R(context), R(11), |
1236 B(Mov), R(9), R(22), | 1380 B(LdaContextSlot), R(1), U8(11), U8(0), |
1237 B(Mov), R(5), R(23), | 1381 B(Star), R(12), |
1238 B(InvokeIntrinsic), U8(Runtime::k_Call), R(22), U8(2), | 1382 B(LdaContextSlot), R(1), U8(7), U8(0), |
| 1383 B(Star), R(13), |
| 1384 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), |
1239 B(Jump), U8(20), | 1385 B(Jump), U8(20), |
1240 B(Star), R(22), | 1386 B(Star), R(12), |
1241 B(Ldar), R(closure), | 1387 B(Ldar), R(closure), |
1242 B(CreateCatchContext), R(22), U8(4), U8(8), | 1388 B(CreateCatchContext), R(12), U8(7), U8(11), |
1243 B(Star), R(21), | 1389 B(Star), R(11), |
1244 B(LdaTheHole), | 1390 B(LdaTheHole), |
1245 B(SetPendingMessage), | 1391 B(SetPendingMessage), |
1246 B(Ldar), R(21), | 1392 B(Ldar), R(11), |
1247 B(PushContext), R(13), | 1393 B(PushContext), R(2), |
1248 B(PopContext), R(13), | 1394 B(PopContext), R(2), |
1249 B(Jump), U8(27), | 1395 B(Jump), U8(47), |
1250 B(Mov), R(9), R(21), | 1396 B(LdaContextSlot), R(1), U8(11), U8(0), |
1251 B(Mov), R(5), R(22), | 1397 B(Star), R(11), |
1252 B(InvokeIntrinsic), U8(Runtime::k_Call), R(21), U8(2), | 1398 B(LdaContextSlot), R(1), U8(7), U8(0), |
| 1399 B(Star), R(12), |
| 1400 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2), |
| 1401 B(StaContextSlot), R(1), U8(12), U8(0), |
| 1402 B(LdaContextSlot), R(1), U8(12), U8(0), |
| 1403 B(Star), R(11), |
| 1404 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1), |
| 1405 B(JumpIfToBooleanFalse), U8(4), |
| 1406 B(Jump), U8(13), |
| 1407 B(LdaContextSlot), R(1), U8(12), U8(0), |
| 1408 B(Star), R(11), |
| 1409 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(11), U8(1), |
| 1410 B(Ldar), R(10), |
| 1411 B(SetPendingMessage), |
| 1412 B(LdaZero), |
| 1413 B(TestEqualStrictNoFeedback), R(8), |
| 1414 B(JumpIfFalse), U8(5), |
| 1415 B(Ldar), R(9), |
| 1416 B(ReThrow), |
| 1417 B(PopContext), R(1), |
| 1418 B(LdaUndefined), |
| 1419 B(Star), R(8), |
| 1420 B(LdaCurrentContextSlot), U8(13), |
| 1421 B(Star), R(9), |
| 1422 B(LdaUndefined), |
1253 B(Star), R(10), | 1423 B(Star), R(10), |
1254 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(10), U8(1), | 1424 B(CallJSRuntime), U8(%promise_resolve), R(8), U8(3), |
1255 B(JumpIfToBooleanFalse), U8(4), | 1425 B(LdaCurrentContextSlot), U8(13), |
1256 B(Jump), U8(7), | 1426 B(Star), R(5), |
1257 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(10), U8(1), | 1427 B(LdaZero), |
1258 B(Ldar), R(20), | 1428 B(Star), R(4), |
1259 B(SetPendingMessage), | 1429 B(Jump), U8(65), |
1260 B(LdaZero), | 1430 B(Jump), U8(51), |
1261 B(TestEqualStrictNoFeedback), R(18), | 1431 B(Star), R(8), |
1262 B(JumpIfFalse), U8(5), | 1432 B(Ldar), R(closure), |
1263 B(Ldar), R(19), | 1433 B(CreateCatchContext), R(8), U8(7), U8(12), |
1264 B(ReThrow), | 1434 B(Star), R(7), |
1265 B(LdaUndefined), | 1435 B(LdaTheHole), |
1266 B(Star), R(18), | 1436 B(SetPendingMessage), |
1267 B(LdaUndefined), | 1437 B(Ldar), R(7), |
1268 B(Star), R(20), | 1438 B(PushContext), R(1), |
1269 B(Mov), R(11), R(19), | 1439 B(LdaUndefined), |
1270 B(CallJSRuntime), U8(%promise_resolve), R(18), U8(3), | 1440 B(Star), R(8), |
1271 B(LdaZero), | 1441 B(LdaContextSlot), R(1), U8(13), U8(0), |
1272 B(Star), R(14), | 1442 B(Star), R(9), |
1273 B(Mov), R(11), R(15), | |
1274 B(Jump), U8(59), | |
1275 B(Jump), U8(45), | |
1276 B(Star), R(18), | |
1277 B(Ldar), R(closure), | |
1278 B(CreateCatchContext), R(18), U8(4), U8(9), | |
1279 B(Star), R(17), | |
1280 B(LdaTheHole), | |
1281 B(SetPendingMessage), | |
1282 B(Ldar), R(17), | |
1283 B(PushContext), R(13), | |
1284 B(LdaUndefined), | |
1285 B(Star), R(18), | |
1286 B(LdaImmutableCurrentContextSlot), U8(4), | 1443 B(LdaImmutableCurrentContextSlot), U8(4), |
1287 B(Star), R(20), | 1444 B(Star), R(10), |
1288 B(LdaFalse), | 1445 B(LdaFalse), |
1289 B(Star), R(21), | 1446 B(Star), R(11), |
1290 B(Mov), R(11), R(19), | 1447 B(CallJSRuntime), U8(%promise_internal_reject), R(8), U8(4), |
1291 B(CallJSRuntime), U8(%promise_internal_reject), R(18), U8(4), | 1448 B(LdaContextSlot), R(1), U8(13), U8(0), |
1292 B(PopContext), R(13), | 1449 B(PopContext), R(1), |
1293 B(LdaZero), | 1450 B(Star), R(5), |
1294 B(Star), R(14), | 1451 B(LdaZero), |
1295 B(Mov), R(11), R(15), | 1452 B(Star), R(4), |
1296 B(Jump), U8(14), | 1453 B(Jump), U8(14), |
1297 B(LdaSmi), I8(-1), | 1454 B(LdaSmi), I8(-1), |
1298 B(Star), R(14), | 1455 B(Star), R(4), |
1299 B(Jump), U8(8), | 1456 B(Jump), U8(8), |
1300 B(Star), R(15), | 1457 B(Star), R(5), |
1301 B(LdaSmi), I8(1), | 1458 B(LdaSmi), I8(1), |
1302 B(Star), R(14), | 1459 B(Star), R(4), |
1303 B(LdaTheHole), | 1460 B(LdaTheHole), |
1304 B(SetPendingMessage), | 1461 B(SetPendingMessage), |
1305 B(Star), R(16), | 1462 B(Star), R(6), |
1306 B(LdaUndefined), | 1463 B(LdaUndefined), |
1307 B(Star), R(17), | 1464 B(Star), R(7), |
1308 B(Mov), R(11), R(18), | 1465 B(LdaCurrentContextSlot), U8(13), |
1309 B(CallJSRuntime), U8(%async_function_promise_release), R(17), U8
(2), | 1466 B(Star), R(8), |
1310 B(Ldar), R(16), | 1467 B(CallJSRuntime), U8(%async_function_promise_release), R(7), U8(
2), |
1311 B(SetPendingMessage), | 1468 B(Ldar), R(6), |
1312 B(Ldar), R(14), | 1469 B(SetPendingMessage), |
1313 B(SwitchOnSmiNoFeedback), U8(10), U8(2), I8(0), | 1470 B(Ldar), R(4), |
| 1471 B(SwitchOnSmiNoFeedback), U8(13), U8(2), I8(0), |
1314 B(Jump), U8(8), | 1472 B(Jump), U8(8), |
1315 B(Ldar), R(15), | 1473 B(Ldar), R(5), |
1316 /* 60 S> */ B(Return), | 1474 /* 60 S> */ B(Return), |
1317 B(Ldar), R(15), | 1475 B(Ldar), R(5), |
1318 B(ReThrow), | 1476 B(ReThrow), |
1319 B(LdaUndefined), | 1477 B(LdaUndefined), |
1320 /* 60 S> */ B(Return), | 1478 /* 60 S> */ B(Return), |
1321 ] | 1479 ] |
1322 constant pool: [ | 1480 constant pool: [ |
| 1481 FIXED_ARRAY_TYPE, |
1323 SYMBOL_TYPE, | 1482 SYMBOL_TYPE, |
1324 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], | 1483 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
1325 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], | 1484 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
1326 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 1485 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
| 1486 FIXED_ARRAY_TYPE, |
| 1487 FIXED_ARRAY_TYPE, |
1327 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 1488 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
1328 FIXED_ARRAY_TYPE, | 1489 FIXED_ARRAY_TYPE, |
1329 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 1490 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
1330 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 1491 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
1331 FIXED_ARRAY_TYPE, | 1492 FIXED_ARRAY_TYPE, |
1332 FIXED_ARRAY_TYPE, | 1493 FIXED_ARRAY_TYPE, |
1333 Smi [6], | 1494 Smi [6], |
1334 Smi [9], | 1495 Smi [9], |
1335 ] | 1496 ] |
1336 handlers: [ | 1497 handlers: [ |
1337 [21, 352, 358], | 1498 [21, 504, 510], |
1338 [24, 307, 309], | 1499 [24, 453, 455], |
1339 [30, 152, 158], | 1500 [41, 242, 248], |
1340 [33, 112, 114], | 1501 [44, 194, 196], |
1341 [218, 228, 230], | 1502 [334, 350, 352], |
1342 ] | 1503 ] |
1343 | 1504 |
1344 --- | 1505 --- |
1345 snippet: " | 1506 snippet: " |
1346 async function f(arr) { | 1507 async function f(arr) { |
1347 for (let x of arr) await x; | 1508 for (let x of arr) await x; |
1348 } | 1509 } |
1349 f([1, 2, 3]); | 1510 f([1, 2, 3]); |
1350 " | 1511 " |
1351 frame size: 29 | 1512 frame size: 18 |
1352 parameter count: 2 | 1513 parameter count: 2 |
1353 bytecode array length: 550 | 1514 bytecode array length: 710 |
1354 bytecodes: [ | 1515 bytecodes: [ |
1355 B(Ldar), R(new_target), | 1516 B(Ldar), R(new_target), |
1356 B(JumpIfUndefined), U8(25), | 1517 B(JumpIfUndefined), U8(25), |
1357 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), | 1518 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), |
1358 B(PushContext), R(15), | 1519 B(PushContext), R(4), |
1359 B(ResumeGenerator), R(new_target), | 1520 B(ResumeGenerator), R(new_target), |
1360 B(Star), R(14), | 1521 B(Star), R(3), |
1361 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), | 1522 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), |
1362 B(LdaSmi), I8(79), | 1523 B(LdaSmi), I8(79), |
1363 B(Star), R(16), | 1524 B(Star), R(5), |
1364 B(CallRuntime), U16(Runtime::kAbort), R(16), U8(1), | 1525 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), |
1365 B(LdaSmi), I8(-2), | 1526 B(LdaSmi), I8(-2), |
1366 B(Star), R(14), | 1527 B(Star), R(3), |
1367 B(CreateFunctionContext), U8(1), | 1528 B(CreateFunctionContext), U8(11), |
1368 B(PushContext), R(12), | 1529 B(PushContext), R(0), |
1369 B(Ldar), R(arg0), | 1530 B(Ldar), R(arg0), |
1370 B(StaCurrentContextSlot), U8(4), | 1531 B(StaCurrentContextSlot), U8(4), |
1371 B(Mov), R(closure), R(16), | 1532 B(Mov), R(closure), R(5), |
1372 B(Mov), R(this), R(17), | 1533 B(Mov), R(this), R(6), |
1373 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(16
), U8(2), | 1534 B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(5)
, U8(2), |
1374 B(Star), R(2), | 1535 B(StaCurrentContextSlot), U8(5), |
1375 /* 16 E> */ B(StackCheck), | 1536 /* 16 E> */ B(StackCheck), |
1376 B(LdaUndefined), | 1537 B(LdaUndefined), |
1377 B(Star), R(16), | 1538 B(Star), R(5), |
1378 B(CallJSRuntime), U8(%async_function_promise_create), R(16), U8(
1), | 1539 B(CallJSRuntime), U8(%async_function_promise_create), R(5), U8(1
), |
1379 B(Star), R(4), | 1540 B(StaCurrentContextSlot), U8(7), |
1380 B(Mov), R(context), R(18), | 1541 B(Mov), R(context), R(7), |
1381 B(Mov), R(context), R(19), | 1542 B(Mov), R(context), R(8), |
1382 B(LdaZero), | 1543 B(Ldar), R(closure), |
1383 B(Star), R(8), | 1544 B(CreateBlockContext), U8(1), |
1384 B(Mov), R(context), R(22), | 1545 B(PushContext), R(1), |
1385 B(Mov), R(context), R(23), | 1546 B(LdaTheHole), |
1386 /* 40 S> */ B(LdaImmutableCurrentContextSlot), U8(4), | 1547 B(StaCurrentContextSlot), U8(4), |
1387 B(Star), R(24), | 1548 B(LdaZero), |
1388 B(LdaNamedProperty), R(24), U8(1), U8(3), | 1549 B(StaContextSlot), R(1), U8(11), U8(0), |
1389 B(Star), R(25), | 1550 B(Mov), R(context), R(11), |
1390 B(CallProperty0), R(25), R(24), U8(5), | 1551 B(Mov), R(context), R(12), |
| 1552 /* 40 S> */ B(LdaImmutableContextSlot), R(1), U8(4), U8(0), |
| 1553 B(Star), R(13), |
| 1554 B(LdaNamedProperty), R(13), U8(2), U8(3), |
| 1555 B(Star), R(14), |
| 1556 B(CallProperty0), R(14), R(13), U8(5), |
1391 B(JumpIfJSReceiver), U8(7), | 1557 B(JumpIfJSReceiver), U8(7), |
1392 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), | 1558 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), |
1393 B(Star), R(6), | 1559 /* 40 E> */ B(StaContextSlot), R(1), U8(9), U8(0), |
1394 B(Ldar), R(14), | 1560 B(Ldar), R(3), |
1395 B(SwitchOnSmiNoFeedback), U8(2), U8(1), I8(0), | 1561 B(SwitchOnSmiNoFeedback), U8(3), U8(1), I8(0), |
1396 B(LdaSmi), I8(-2), | 1562 B(LdaSmi), I8(-2), |
1397 /* 40 E> */ B(TestEqualStrictNoFeedback), R(14), | 1563 B(TestEqualStrictNoFeedback), R(3), |
1398 B(JumpIfTrue), U8(11), | 1564 B(JumpIfTrue), U8(11), |
1399 B(LdaSmi), I8(79), | 1565 B(LdaSmi), I8(79), |
1400 B(Star), R(24), | 1566 B(Star), R(13), |
1401 B(CallRuntime), U16(Runtime::kAbort), R(24), U8(1), | 1567 B(CallRuntime), U16(Runtime::kAbort), R(13), U8(1), |
1402 /* 35 S> */ B(LdaNamedProperty), R(6), U8(3), U8(9), | 1568 /* 35 S> */ B(LdaContextSlot), R(1), U8(9), U8(0), |
1403 B(Star), R(24), | 1569 B(Star), R(14), |
1404 B(CallProperty0), R(24), R(6), U8(7), | 1570 B(LdaNamedProperty), R(14), U8(4), U8(9), |
1405 B(Star), R(7), | 1571 B(Star), R(13), |
1406 /* 35 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(7), U8(1), | 1572 B(CallProperty0), R(13), R(14), U8(7), |
| 1573 /* 35 E> */ B(StaContextSlot), R(1), U8(10), U8(0), |
| 1574 B(Star), R(13), |
| 1575 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(13), U8(1), |
1407 B(ToBooleanLogicalNot), | 1576 B(ToBooleanLogicalNot), |
1408 B(JumpIfFalse), U8(7), | 1577 B(JumpIfFalse), U8(13), |
1409 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(7), U8(1), | 1578 B(LdaContextSlot), R(1), U8(10), U8(0), |
1410 B(LdaNamedProperty), R(7), U8(4), U8(11), | 1579 B(Star), R(13), |
1411 B(JumpIfToBooleanTrue), U8(105), | 1580 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(13), U8(1), |
1412 B(LdaNamedProperty), R(7), U8(5), U8(13), | 1581 B(LdaContextSlot), R(1), U8(10), U8(0), |
1413 B(Star), R(9), | 1582 B(Star), R(13), |
| 1583 B(LdaNamedProperty), R(13), U8(5), U8(11), |
| 1584 B(JumpIfToBooleanTrue), U8(155), |
| 1585 B(LdaContextSlot), R(1), U8(10), U8(0), |
| 1586 B(Star), R(13), |
| 1587 B(LdaNamedProperty), R(13), U8(6), U8(13), |
| 1588 B(StaContextSlot), R(1), U8(12), U8(0), |
1414 B(LdaSmi), I8(2), | 1589 B(LdaSmi), I8(2), |
1415 B(Star), R(8), | 1590 B(StaContextSlot), R(1), U8(11), U8(0), |
1416 B(Mov), R(9), R(5), | 1591 B(LdaContextSlot), R(1), U8(12), U8(0), |
| 1592 B(StaContextSlot), R(1), U8(8), U8(0), |
1417 /* 26 E> */ B(StackCheck), | 1593 /* 26 E> */ B(StackCheck), |
1418 B(Mov), R(5), R(0), | 1594 B(Ldar), R(closure), |
1419 /* 45 S> */ B(Nop), | 1595 B(CreateBlockContext), U8(7), |
1420 /* 51 S> */ B(Mov), R(5), R(3), | 1596 B(PushContext), R(2), |
| 1597 B(LdaTheHole), |
| 1598 B(StaCurrentContextSlot), U8(4), |
| 1599 B(LdaContextSlot), R(1), U8(8), U8(0), |
| 1600 B(StaCurrentContextSlot), U8(4), |
| 1601 /* 45 S> */ B(LdaImmutableContextSlot), R(1), U8(5), U8(0), |
| 1602 B(Star), R(13), |
| 1603 /* 51 S> */ B(LdaImmutableCurrentContextSlot), U8(4), |
| 1604 B(StaContextSlot), R(1), U8(6), U8(0), |
1421 /* 45 S> */ B(LdaUndefined), | 1605 /* 45 S> */ B(LdaUndefined), |
1422 B(Star), R(25), | 1606 B(Star), R(14), |
1423 B(Mov), R(2), R(26), | 1607 B(LdaImmutableContextSlot), R(1), U8(5), U8(0), |
1424 B(Mov), R(5), R(27), | 1608 B(Star), R(15), |
1425 B(Mov), R(4), R(28), | 1609 B(LdaContextSlot), R(1), U8(6), U8(0), |
1426 B(CallJSRuntime), U8(%async_function_await_uncaught), R(25), U8(
4), | 1610 B(Star), R(16), |
1427 B(LdaZero), | 1611 B(LdaContextSlot), R(1), U8(7), U8(0), |
1428 B(Mov), R(2), R(24), | 1612 B(Star), R(17), |
1429 B(Mov), R(4), R(25), | 1613 B(CallJSRuntime), U8(%async_function_await_uncaught), R(14), U8(
4), |
1430 B(SuspendGenerator), R(24), U8(2), | 1614 B(LdaContextSlot), R(1), U8(7), U8(0), |
1431 B(Ldar), R(25), | 1615 B(Star), R(14), |
| 1616 B(LdaZero), |
| 1617 B(SuspendGenerator), R(13), U8(2), |
| 1618 B(Ldar), R(14), |
1432 /* 54 S> */ B(Return), | 1619 /* 54 S> */ B(Return), |
1433 B(LdaSmi), I8(-2), | 1620 B(LdaSmi), I8(-2), |
1434 B(Star), R(14), | 1621 B(Star), R(3), |
1435 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(24), U8(1), | 1622 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos),
R(13), U8(1), |
1436 B(Star), R(25), | 1623 B(Star), R(14), |
1437 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(24)
, U8(1), | 1624 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13)
, U8(1), |
1438 B(Star), R(26), | 1625 B(Star), R(15), |
1439 B(LdaZero), | 1626 B(LdaZero), |
1440 B(TestEqualStrictNoFeedback), R(26), | 1627 B(TestEqualStrictNoFeedback), R(15), |
1441 B(JumpIfTrue), U8(28), | 1628 B(JumpIfTrue), U8(30), |
1442 B(LdaSmi), I8(2), | 1629 B(LdaSmi), I8(2), |
1443 B(TestEqualStrictNoFeedback), R(26), | 1630 B(TestEqualStrictNoFeedback), R(15), |
1444 B(JumpIfTrue), U8(19), | 1631 B(JumpIfTrue), U8(21), |
1445 B(LdaTrue), | 1632 B(LdaTrue), |
1446 B(Star), R(28), | 1633 B(Star), R(17), |
1447 B(Mov), R(25), R(27), | 1634 B(Mov), R(14), R(16), |
1448 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(27)
, U8(2), | 1635 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(16)
, U8(2), |
1449 B(Star), R(21), | 1636 B(PopContext), R(2), |
1450 B(LdaZero), | 1637 B(Star), R(10), |
1451 B(Star), R(20), | 1638 B(LdaZero), |
1452 B(Jump), U8(63), | 1639 B(Star), R(9), |
1453 B(Ldar), R(25), | 1640 B(Jump), U8(75), |
| 1641 B(Ldar), R(14), |
1454 B(ReThrow), | 1642 B(ReThrow), |
1455 B(LdaZero), | 1643 B(PopContext), R(2), |
1456 B(Star), R(8), | 1644 B(LdaZero), |
1457 B(JumpLoop), U8(151), I8(0), | 1645 B(StaContextSlot), R(1), U8(11), U8(0), |
1458 B(Jump), U8(40), | 1646 B(JumpLoop), U8(223), I8(0), |
1459 B(Star), R(24), | 1647 B(Jump), U8(48), |
1460 B(Ldar), R(closure), | 1648 B(Star), R(13), |
1461 B(CreateCatchContext), R(24), U8(6), U8(7), | 1649 B(Ldar), R(closure), |
1462 B(Star), R(23), | 1650 B(CreateCatchContext), R(13), U8(8), U8(9), |
1463 B(LdaTheHole), | 1651 B(Star), R(12), |
1464 B(SetPendingMessage), | 1652 B(LdaTheHole), |
1465 B(Ldar), R(23), | 1653 B(SetPendingMessage), |
1466 B(PushContext), R(13), | 1654 B(Ldar), R(12), |
| 1655 B(PushContext), R(2), |
| 1656 B(LdaContextSlot), R(1), U8(11), U8(0), |
| 1657 B(Star), R(13), |
1467 B(LdaSmi), I8(2), | 1658 B(LdaSmi), I8(2), |
1468 B(TestEqualStrict), R(8), U8(15), | 1659 B(TestEqualStrict), R(13), U8(15), |
1469 B(JumpIfFalse), U8(6), | 1660 B(JumpIfFalse), U8(8), |
1470 B(LdaSmi), I8(1), | 1661 B(LdaSmi), I8(1), |
1471 B(Star), R(8), | 1662 B(StaContextSlot), R(1), U8(11), U8(0), |
1472 B(LdaImmutableCurrentContextSlot), U8(4), | 1663 B(LdaImmutableCurrentContextSlot), U8(4), |
1473 B(Star), R(24), | 1664 B(Star), R(13), |
1474 B(CallRuntime), U16(Runtime::kReThrow), R(24), U8(1), | 1665 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), |
1475 B(PopContext), R(13), | 1666 B(PopContext), R(2), |
1476 B(LdaSmi), I8(-1), | 1667 B(LdaSmi), I8(-1), |
1477 B(Star), R(20), | 1668 B(Star), R(9), |
1478 B(Jump), U8(8), | 1669 B(Jump), U8(8), |
1479 B(Star), R(21), | 1670 B(Star), R(10), |
1480 B(LdaSmi), I8(1), | 1671 B(LdaSmi), I8(1), |
1481 B(Star), R(20), | 1672 B(Star), R(9), |
1482 B(LdaTheHole), | 1673 B(LdaTheHole), |
1483 B(SetPendingMessage), | 1674 B(SetPendingMessage), |
1484 B(Star), R(22), | 1675 B(Star), R(11), |
1485 B(LdaZero), | 1676 B(LdaContextSlot), R(1), U8(11), U8(0), |
1486 B(TestEqualStrict), R(8), U8(16), | 1677 B(Star), R(12), |
1487 B(JumpIfTrue), U8(104), | 1678 B(LdaZero), |
1488 B(LdaNamedProperty), R(6), U8(8), U8(17), | 1679 B(TestEqualStrict), R(12), U8(16), |
1489 B(Star), R(10), | 1680 B(JumpIfTrue), U8(150), |
| 1681 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 1682 B(Star), R(12), |
| 1683 B(LdaNamedProperty), R(12), U8(10), U8(17), |
| 1684 B(StaContextSlot), R(1), U8(13), U8(0), |
| 1685 B(LdaContextSlot), R(1), U8(13), U8(0), |
1490 B(TestUndetectable), | 1686 B(TestUndetectable), |
1491 B(JumpIfFalse), U8(4), | 1687 B(JumpIfFalse), U8(4), |
1492 B(Jump), U8(93), | 1688 B(Jump), U8(127), |
| 1689 B(LdaContextSlot), R(1), U8(11), U8(0), |
| 1690 B(Star), R(12), |
1493 B(LdaSmi), I8(1), | 1691 B(LdaSmi), I8(1), |
1494 B(TestEqualStrict), R(8), U8(20), | 1692 B(TestEqualStrict), R(12), U8(20), |
1495 B(JumpIfFalse), U8(61), | 1693 B(JumpIfFalse), U8(69), |
1496 B(Ldar), R(10), | 1694 B(LdaContextSlot), R(1), U8(13), U8(0), |
1497 B(TestTypeOf), U8(5), | 1695 B(TestTypeOf), U8(5), |
1498 B(JumpIfFalse), U8(4), | 1696 B(JumpIfFalse), U8(4), |
1499 B(Jump), U8(18), | 1697 B(Jump), U8(18), |
1500 B(Wide), B(LdaSmi), I16(130), | 1698 B(Wide), B(LdaSmi), I16(130), |
1501 B(Star), R(23), | 1699 B(Star), R(12), |
1502 B(LdaConstant), U8(9), | 1700 B(LdaConstant), U8(11), |
1503 B(Star), R(24), | 1701 B(Star), R(13), |
1504 B(CallRuntime), U16(Runtime::kNewTypeError), R(23), U8(2), | 1702 B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2), |
1505 B(Throw), | 1703 B(Throw), |
1506 B(Mov), R(context), R(23), | 1704 B(Mov), R(context), R(12), |
1507 B(Mov), R(10), R(24), | 1705 B(LdaContextSlot), R(1), U8(13), U8(0), |
1508 B(Mov), R(6), R(25), | 1706 B(Star), R(13), |
1509 B(InvokeIntrinsic), U8(Runtime::k_Call), R(24), U8(2), | 1707 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 1708 B(Star), R(14), |
| 1709 B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2), |
1510 B(Jump), U8(20), | 1710 B(Jump), U8(20), |
1511 B(Star), R(24), | 1711 B(Star), R(13), |
1512 B(Ldar), R(closure), | 1712 B(Ldar), R(closure), |
1513 B(CreateCatchContext), R(24), U8(6), U8(10), | 1713 B(CreateCatchContext), R(13), U8(8), U8(12), |
1514 B(Star), R(23), | 1714 B(Star), R(12), |
1515 B(LdaTheHole), | 1715 B(LdaTheHole), |
1516 B(SetPendingMessage), | 1716 B(SetPendingMessage), |
1517 B(Ldar), R(23), | 1717 B(Ldar), R(12), |
1518 B(PushContext), R(13), | 1718 B(PushContext), R(2), |
1519 B(PopContext), R(13), | 1719 B(PopContext), R(2), |
1520 B(Jump), U8(27), | 1720 B(Jump), U8(47), |
1521 B(Mov), R(10), R(23), | 1721 B(LdaContextSlot), R(1), U8(13), U8(0), |
1522 B(Mov), R(6), R(24), | 1722 B(Star), R(12), |
1523 B(InvokeIntrinsic), U8(Runtime::k_Call), R(23), U8(2), | 1723 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 1724 B(Star), R(13), |
| 1725 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), |
| 1726 B(StaContextSlot), R(1), U8(14), U8(0), |
| 1727 B(LdaContextSlot), R(1), U8(14), U8(0), |
| 1728 B(Star), R(12), |
| 1729 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), |
| 1730 B(JumpIfToBooleanFalse), U8(4), |
| 1731 B(Jump), U8(13), |
| 1732 B(LdaContextSlot), R(1), U8(14), U8(0), |
| 1733 B(Star), R(12), |
| 1734 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), |
| 1735 B(Ldar), R(11), |
| 1736 B(SetPendingMessage), |
| 1737 B(Ldar), R(9), |
| 1738 B(SwitchOnSmiNoFeedback), U8(13), U8(2), I8(0), |
| 1739 B(Jump), U8(15), |
| 1740 B(PopContext), R(1), |
| 1741 B(LdaZero), |
| 1742 B(Star), R(5), |
| 1743 B(Mov), R(10), R(6), |
| 1744 B(Jump), U8(93), |
| 1745 B(Ldar), R(10), |
| 1746 B(ReThrow), |
| 1747 B(PopContext), R(1), |
| 1748 B(LdaUndefined), |
| 1749 B(Star), R(9), |
| 1750 B(LdaCurrentContextSlot), U8(7), |
| 1751 B(Star), R(10), |
| 1752 B(LdaUndefined), |
1524 B(Star), R(11), | 1753 B(Star), R(11), |
1525 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1), | 1754 B(CallJSRuntime), U8(%promise_resolve), R(9), U8(3), |
1526 B(JumpIfToBooleanFalse), U8(4), | 1755 B(LdaCurrentContextSlot), U8(7), |
1527 B(Jump), U8(7), | 1756 B(Star), R(6), |
1528 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(11), U8(1), | 1757 B(LdaZero), |
1529 B(Ldar), R(22), | 1758 B(Star), R(5), |
1530 B(SetPendingMessage), | 1759 B(Jump), U8(65), |
1531 B(Ldar), R(20), | 1760 B(Jump), U8(51), |
1532 B(SwitchOnSmiNoFeedback), U8(11), U8(2), I8(0), | 1761 B(Star), R(9), |
1533 B(Jump), U8(13), | 1762 B(Ldar), R(closure), |
1534 B(LdaZero), | 1763 B(CreateCatchContext), R(9), U8(8), U8(15), |
1535 B(Star), R(16), | 1764 B(Star), R(8), |
1536 B(Mov), R(21), R(17), | 1765 B(LdaTheHole), |
1537 B(Jump), U8(83), | 1766 B(SetPendingMessage), |
1538 B(Ldar), R(21), | 1767 B(Ldar), R(8), |
1539 B(ReThrow), | 1768 B(PushContext), R(1), |
1540 B(LdaUndefined), | 1769 B(LdaUndefined), |
1541 B(Star), R(20), | 1770 B(Star), R(9), |
1542 B(LdaUndefined), | 1771 B(LdaContextSlot), R(1), U8(7), U8(0), |
1543 B(Star), R(22), | 1772 B(Star), R(10), |
1544 B(Mov), R(4), R(21), | |
1545 B(CallJSRuntime), U8(%promise_resolve), R(20), U8(3), | |
1546 B(LdaZero), | |
1547 B(Star), R(16), | |
1548 B(Mov), R(4), R(17), | |
1549 B(Jump), U8(59), | |
1550 B(Jump), U8(45), | |
1551 B(Star), R(20), | |
1552 B(Ldar), R(closure), | |
1553 B(CreateCatchContext), R(20), U8(6), U8(13), | |
1554 B(Star), R(19), | |
1555 B(LdaTheHole), | |
1556 B(SetPendingMessage), | |
1557 B(Ldar), R(19), | |
1558 B(PushContext), R(13), | |
1559 B(LdaUndefined), | |
1560 B(Star), R(20), | |
1561 B(LdaImmutableCurrentContextSlot), U8(4), | 1773 B(LdaImmutableCurrentContextSlot), U8(4), |
1562 B(Star), R(22), | 1774 B(Star), R(11), |
1563 B(LdaFalse), | 1775 B(LdaFalse), |
1564 B(Star), R(23), | 1776 B(Star), R(12), |
1565 B(Mov), R(4), R(21), | 1777 B(CallJSRuntime), U8(%promise_internal_reject), R(9), U8(4), |
1566 B(CallJSRuntime), U8(%promise_internal_reject), R(20), U8(4), | 1778 B(LdaContextSlot), R(1), U8(7), U8(0), |
1567 B(PopContext), R(13), | 1779 B(PopContext), R(1), |
1568 B(LdaZero), | 1780 B(Star), R(6), |
1569 B(Star), R(16), | 1781 B(LdaZero), |
1570 B(Mov), R(4), R(17), | 1782 B(Star), R(5), |
1571 B(Jump), U8(14), | 1783 B(Jump), U8(14), |
1572 B(LdaSmi), I8(-1), | 1784 B(LdaSmi), I8(-1), |
1573 B(Star), R(16), | 1785 B(Star), R(5), |
1574 B(Jump), U8(8), | 1786 B(Jump), U8(8), |
1575 B(Star), R(17), | 1787 B(Star), R(6), |
1576 B(LdaSmi), I8(1), | 1788 B(LdaSmi), I8(1), |
1577 B(Star), R(16), | 1789 B(Star), R(5), |
1578 B(LdaTheHole), | 1790 B(LdaTheHole), |
1579 B(SetPendingMessage), | 1791 B(SetPendingMessage), |
1580 B(Star), R(18), | 1792 B(Star), R(7), |
1581 B(LdaUndefined), | 1793 B(LdaUndefined), |
1582 B(Star), R(19), | 1794 B(Star), R(8), |
1583 B(Mov), R(4), R(20), | 1795 B(LdaCurrentContextSlot), U8(7), |
1584 B(CallJSRuntime), U8(%async_function_promise_release), R(19), U8
(2), | 1796 B(Star), R(9), |
1585 B(Ldar), R(18), | 1797 B(CallJSRuntime), U8(%async_function_promise_release), R(8), U8(
2), |
1586 B(SetPendingMessage), | 1798 B(Ldar), R(7), |
1587 B(Ldar), R(16), | 1799 B(SetPendingMessage), |
1588 B(SwitchOnSmiNoFeedback), U8(14), U8(2), I8(0), | 1800 B(Ldar), R(5), |
| 1801 B(SwitchOnSmiNoFeedback), U8(16), U8(2), I8(0), |
1589 B(Jump), U8(8), | 1802 B(Jump), U8(8), |
1590 B(Ldar), R(17), | 1803 B(Ldar), R(6), |
1591 /* 54 S> */ B(Return), | 1804 /* 54 S> */ B(Return), |
1592 B(Ldar), R(17), | 1805 B(Ldar), R(6), |
1593 B(ReThrow), | 1806 B(ReThrow), |
1594 B(LdaUndefined), | 1807 B(LdaUndefined), |
1595 /* 54 S> */ B(Return), | 1808 /* 54 S> */ B(Return), |
1596 ] | 1809 ] |
1597 constant pool: [ | 1810 constant pool: [ |
1598 Smi [85], | 1811 Smi [100], |
| 1812 FIXED_ARRAY_TYPE, |
1599 SYMBOL_TYPE, | 1813 SYMBOL_TYPE, |
1600 Smi [99], | 1814 Smi [165], |
1601 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], | 1815 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
1602 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], | 1816 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
1603 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 1817 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
| 1818 FIXED_ARRAY_TYPE, |
1604 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 1819 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
1605 FIXED_ARRAY_TYPE, | 1820 FIXED_ARRAY_TYPE, |
1606 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 1821 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
1607 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 1822 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
1608 FIXED_ARRAY_TYPE, | 1823 FIXED_ARRAY_TYPE, |
1609 Smi [6], | 1824 Smi [6], |
1610 Smi [14], | 1825 Smi [16], |
1611 FIXED_ARRAY_TYPE, | 1826 FIXED_ARRAY_TYPE, |
1612 Smi [6], | 1827 Smi [6], |
1613 Smi [9], | 1828 Smi [9], |
1614 ] | 1829 ] |
1615 handlers: [ | 1830 handlers: [ |
1616 [64, 505, 511], | 1831 [64, 664, 670], |
1617 [67, 460, 462], | 1832 [67, 613, 615], |
1618 [73, 293, 299], | 1833 [84, 388, 394], |
1619 [76, 253, 255], | 1834 [87, 340, 342], |
1620 [360, 370, 372], | 1835 [481, 497, 499], |
1621 ] | 1836 ] |
1622 | 1837 |
OLD | NEW |