| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 pool type: mixed | 6 pool type: mixed |
| 7 execute: yes | 7 execute: yes |
| 8 wrap: no | 8 wrap: no |
| 9 test function name: f | 9 test function name: f |
| 10 | 10 |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 if (a < b) { return 1; } | 655 if (a < b) { return 1; } |
| 656 if (a > b) { return 1; } | 656 if (a > b) { return 1; } |
| 657 if (a <= b) { return 1; } | 657 if (a <= b) { return 1; } |
| 658 if (a >= b) { return 1; } | 658 if (a >= b) { return 1; } |
| 659 if (a in b) { return 1; } | 659 if (a in b) { return 1; } |
| 660 if (a instanceof b) { return 1; } | 660 if (a instanceof b) { return 1; } |
| 661 return 0; | 661 return 0; |
| 662 } | 662 } |
| 663 f(1, 1); | 663 f(1, 1); |
| 664 " | 664 " |
| 665 frame size: 6 | 665 frame size: 1 |
| 666 parameter count: 3 | 666 parameter count: 3 |
| 667 bytecode array length: 226 | 667 bytecode array length: 107 |
| 668 bytecodes: [ | 668 bytecodes: [ |
| 669 /* 10 E> */ B(StackCheck), | 669 /* 10 E> */ B(StackCheck), |
| 670 /* 21 S> */ B(Ldar), R(arg0), | 670 /* 21 S> */ B(Ldar), R(arg0), |
| 671 B(Star), R(3), | 671 B(Star), R(0), |
| 672 /* 30 E> */ B(Ldar), R(arg1), | 672 /* 30 E> */ B(Ldar), R(arg1), |
| 673 /* 27 E> */ B(TestEqual), R(3), | 673 /* 27 E> */ B(TestEqual), R(0), |
| 674 B(JumpIfFalse), U8(5), | 674 B(JumpIfFalse), U8(5), |
| 675 /* 35 S> */ B(LdaSmi), U8(1), | 675 /* 35 S> */ B(LdaSmi), U8(1), |
| 676 /* 262 S> */ B(Return), | 676 /* 262 S> */ B(Return), |
| 677 /* 49 S> */ B(Ldar), R(arg0), | 677 /* 49 S> */ B(Ldar), R(arg0), |
| 678 B(Star), R(3), | 678 B(Star), R(0), |
| 679 /* 59 E> */ B(Ldar), R(arg1), | 679 /* 59 E> */ B(Ldar), R(arg1), |
| 680 /* 55 E> */ B(TestEqualStrict), R(3), | 680 /* 55 E> */ B(TestEqualStrict), R(0), |
| 681 B(JumpIfFalse), U8(5), | 681 B(JumpIfFalse), U8(5), |
| 682 /* 64 S> */ B(LdaSmi), U8(1), | 682 /* 64 S> */ B(LdaSmi), U8(1), |
| 683 /* 262 S> */ B(Return), | 683 /* 262 S> */ B(Return), |
| 684 /* 78 S> */ B(Ldar), R(arg0), | 684 /* 78 S> */ B(Ldar), R(arg0), |
| 685 B(Star), R(3), | 685 B(Star), R(0), |
| 686 /* 86 E> */ B(Ldar), R(arg1), | 686 /* 86 E> */ B(Ldar), R(arg1), |
| 687 /* 84 E> */ B(TestLessThan), R(3), | 687 /* 84 E> */ B(TestLessThan), R(0), |
| 688 B(JumpIfFalse), U8(5), | 688 B(JumpIfFalse), U8(5), |
| 689 /* 91 S> */ B(LdaSmi), U8(1), | 689 /* 91 S> */ B(LdaSmi), U8(1), |
| 690 /* 262 S> */ B(Return), | 690 /* 262 S> */ B(Return), |
| 691 /* 105 S> */ B(Ldar), R(arg0), | 691 /* 105 S> */ B(Ldar), R(arg0), |
| 692 B(Star), R(3), | 692 B(Star), R(0), |
| 693 /* 113 E> */ B(Ldar), R(arg1), | 693 /* 113 E> */ B(Ldar), R(arg1), |
| 694 /* 111 E> */ B(TestGreaterThan), R(3), | 694 /* 111 E> */ B(TestGreaterThan), R(0), |
| 695 B(JumpIfFalse), U8(5), | 695 B(JumpIfFalse), U8(5), |
| 696 /* 118 S> */ B(LdaSmi), U8(1), | 696 /* 118 S> */ B(LdaSmi), U8(1), |
| 697 /* 262 S> */ B(Return), | 697 /* 262 S> */ B(Return), |
| 698 /* 132 S> */ B(Ldar), R(arg0), | 698 /* 132 S> */ B(Ldar), R(arg0), |
| 699 B(Star), R(3), | 699 B(Star), R(0), |
| 700 /* 141 E> */ B(Ldar), R(arg1), | 700 /* 141 E> */ B(Ldar), R(arg1), |
| 701 /* 138 E> */ B(TestLessThanOrEqual), R(3), | 701 /* 138 E> */ B(TestLessThanOrEqual), R(0), |
| 702 B(JumpIfFalse), U8(5), | 702 B(JumpIfFalse), U8(5), |
| 703 /* 146 S> */ B(LdaSmi), U8(1), | 703 /* 146 S> */ B(LdaSmi), U8(1), |
| 704 /* 262 S> */ B(Return), | 704 /* 262 S> */ B(Return), |
| 705 /* 160 S> */ B(Ldar), R(arg0), | 705 /* 160 S> */ B(Ldar), R(arg0), |
| 706 B(Star), R(3), | 706 B(Star), R(0), |
| 707 /* 169 E> */ B(Ldar), R(arg1), | 707 /* 169 E> */ B(Ldar), R(arg1), |
| 708 /* 166 E> */ B(TestGreaterThanOrEqual), R(3), | 708 /* 166 E> */ B(TestGreaterThanOrEqual), R(0), |
| 709 B(JumpIfFalse), U8(5), | 709 B(JumpIfFalse), U8(5), |
| 710 /* 174 S> */ B(LdaSmi), U8(1), | 710 /* 174 S> */ B(LdaSmi), U8(1), |
| 711 /* 262 S> */ B(Return), | 711 /* 262 S> */ B(Return), |
| 712 /* 188 S> */ B(Ldar), R(arg0), | 712 /* 188 S> */ B(Ldar), R(arg0), |
| 713 B(Star), R(3), | 713 B(Star), R(0), |
| 714 /* 197 E> */ B(Ldar), R(arg1), | 714 /* 197 E> */ B(Ldar), R(arg1), |
| 715 /* 194 E> */ B(TestIn), R(3), | 715 /* 194 E> */ B(TestIn), R(0), |
| 716 B(JumpIfFalse), U8(5), | 716 B(JumpIfFalse), U8(5), |
| 717 /* 202 S> */ B(LdaSmi), U8(1), | 717 /* 202 S> */ B(LdaSmi), U8(1), |
| 718 /* 262 S> */ B(Return), | 718 /* 262 S> */ B(Return), |
| 719 /* 216 S> */ B(Ldar), R(arg0), | 719 /* 216 S> */ B(Ldar), R(arg0), |
| 720 B(Star), R(0), | 720 B(Star), R(0), |
| 721 /* 233 E> */ B(Ldar), R(arg1), | 721 /* 233 E> */ B(Ldar), R(arg1), |
| 722 B(Star), R(1), | 722 /* 222 E> */ B(TestInstanceOf), R(0), |
| 723 B(Star), R(3), | 723 B(JumpIfFalse), U8(5), |
| 724 B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(3), U8(1), | |
| 725 B(JumpIfToBooleanFalse), U8(4), | |
| 726 B(Jump), U8(16), | |
| 727 /* 222 S> */ B(LdaSmi), U8(61), | |
| 728 B(Star), R(3), | |
| 729 B(LdaConstant), U8(0), | |
| 730 B(Star), R(4), | |
| 731 B(CallRuntime), U16(Runtime::kNewTypeError), R(3), U8(2), | |
| 732 /* 222 E> */ B(Throw), | |
| 733 B(Ldar), R(1), | |
| 734 B(Star), R(3), | |
| 735 /* 222 E> */ B(LdaConstant), U8(1), | |
| 736 B(KeyedLoadIC), R(3), U8(1), | |
| 737 B(Star), R(2), | |
| 738 B(Star), R(3), | |
| 739 B(LdaUndefined), | |
| 740 B(TestEqualStrict), R(3), | |
| 741 B(JumpIfFalse), U8(55), | |
| 742 B(Ldar), R(1), | |
| 743 B(TypeOf), | |
| 744 B(Star), R(3), | |
| 745 B(LdaConstant), U8(2), | |
| 746 B(TestEqualStrict), R(3), | |
| 747 B(JumpIfFalse), U8(4), | |
| 748 B(Jump), U8(16), | |
| 749 /* 222 S> */ B(LdaSmi), U8(16), | |
| 750 B(Star), R(3), | |
| 751 B(LdaConstant), U8(0), | |
| 752 B(Star), R(4), | |
| 753 B(CallRuntime), U16(Runtime::kNewTypeError), R(3), U8(2), | |
| 754 /* 222 E> */ B(Throw), | |
| 755 B(CallRuntime), U16(Runtime::k_GetOrdinaryHasInstance), R(0), U8
(0), | |
| 756 B(Star), R(2), | |
| 757 B(Star), R(3), | |
| 758 B(Ldar), R(1), | |
| 759 B(Star), R(4), | |
| 760 B(Ldar), R(0), | |
| 761 B(Star), R(5), | |
| 762 B(CallRuntime), U16(Runtime::k_Call), R(3), U8(3), | |
| 763 B(Star), R(2), | |
| 764 B(Jump), U8(23), | |
| 765 B(Ldar), R(2), | |
| 766 B(Star), R(3), | |
| 767 B(Ldar), R(1), | |
| 768 B(Star), R(4), | |
| 769 B(Ldar), R(0), | |
| 770 B(Star), R(5), | |
| 771 B(CallRuntime), U16(Runtime::k_Call), R(3), U8(3), | |
| 772 B(LogicalNot), | |
| 773 B(LogicalNot), | |
| 774 B(Star), R(2), | |
| 775 B(Ldar), R(2), | |
| 776 B(JumpIfToBooleanFalse), U8(5), | |
| 777 /* 238 S> */ B(LdaSmi), U8(1), | 724 /* 238 S> */ B(LdaSmi), U8(1), |
| 778 /* 262 S> */ B(Return), | 725 /* 262 S> */ B(Return), |
| 779 /* 252 S> */ B(LdaZero), | 726 /* 252 S> */ B(LdaZero), |
| 780 /* 262 S> */ B(Return), | 727 /* 262 S> */ B(Return), |
| 781 ] | 728 ] |
| 782 constant pool: [ | 729 constant pool: [ |
| 783 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | |
| 784 InstanceType::SYMBOL_TYPE, | |
| 785 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | |
| 786 ] | 730 ] |
| 787 handlers: [ | 731 handlers: [ |
| 788 ] | 732 ] |
| 789 | 733 |
| 790 --- | 734 --- |
| 791 snippet: " | 735 snippet: " |
| 792 function f() { | 736 function f() { |
| 793 var a = 0; | 737 var a = 0; |
| 794 if (a) { | 738 if (a) { |
| 795 return 20; | 739 return 20; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 812 /* 69 S> */ B(LdaSmi), U8(-20), | 756 /* 69 S> */ B(LdaSmi), U8(-20), |
| 813 /* 85 S> */ B(Return), | 757 /* 85 S> */ B(Return), |
| 814 B(LdaUndefined), | 758 B(LdaUndefined), |
| 815 /* 85 S> */ B(Return), | 759 /* 85 S> */ B(Return), |
| 816 ] | 760 ] |
| 817 constant pool: [ | 761 constant pool: [ |
| 818 ] | 762 ] |
| 819 handlers: [ | 763 handlers: [ |
| 820 ] | 764 ] |
| 821 | 765 |
| OLD | NEW |