| 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: number | 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 |
| 11 --- | 11 --- |
| 12 snippet: " | 12 snippet: " |
| 13 function f() { | 13 function f() { |
| 14 if (0) { | 14 if (0) { |
| 15 return 1; | 15 return 1; |
| 16 } else { | 16 } else { |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 B(Star), R(1), | 408 B(Star), R(1), |
| 409 B(Star), R(0), | 409 B(Star), R(0), |
| 410 B(Wide), B(LdaSmi), U16(200), | 410 B(Wide), B(LdaSmi), U16(200), |
| 411 B(Return), | 411 B(Return), |
| 412 B(Wide), B(LdaSmi), U16(-200), | 412 B(Wide), B(LdaSmi), U16(-200), |
| 413 B(Return), | 413 B(Return), |
| 414 B(LdaUndefined), | 414 B(LdaUndefined), |
| 415 B(Return), | 415 B(Return), |
| 416 ] | 416 ] |
| 417 constant pool: [ | 417 constant pool: [ |
| 418 0.01, | 418 InstanceType::HEAP_NUMBER_TYPE, |
| 419 265, | 419 kInstanceTypeDontCare, |
| 420 ] | 420 ] |
| 421 handlers: [ | 421 handlers: [ |
| 422 ] | 422 ] |
| 423 | 423 |
| 424 --- | 424 --- |
| 425 snippet: " | 425 snippet: " |
| 426 function f() { | 426 function f() { |
| 427 var a = 0; var b = 0; | 427 var a = 0; var b = 0; |
| 428 if (a) { | 428 if (a) { |
| 429 b = a; a = b; | 429 b = a; a = b; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 B(Star), R(1), | 635 B(Star), R(1), |
| 636 B(Star), R(0), | 636 B(Star), R(0), |
| 637 B(Wide), B(LdaSmi), U16(200), | 637 B(Wide), B(LdaSmi), U16(200), |
| 638 B(Return), | 638 B(Return), |
| 639 B(Wide), B(LdaSmi), U16(-200), | 639 B(Wide), B(LdaSmi), U16(-200), |
| 640 B(Return), | 640 B(Return), |
| 641 B(LdaUndefined), | 641 B(LdaUndefined), |
| 642 B(Return), | 642 B(Return), |
| 643 ] | 643 ] |
| 644 constant pool: [ | 644 constant pool: [ |
| 645 265, | 645 kInstanceTypeDontCare, |
| 646 ] | 646 ] |
| 647 handlers: [ | 647 handlers: [ |
| 648 ] | 648 ] |
| 649 | 649 |
| 650 --- | 650 --- |
| 651 snippet: " | 651 snippet: " |
| 652 function f(a, b) { | 652 function f(a, b) { |
| 653 if (a == b) { return 1; } | 653 if (a == b) { return 1; } |
| 654 if (a === b) { return 1; } | 654 if (a === b) { return 1; } |
| 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: 1 | 665 frame size: 6 |
| 666 parameter count: 3 | 666 parameter count: 3 |
| 667 bytecode array length: 107 | 667 bytecode array length: 226 |
| 668 bytecodes: [ | 668 bytecodes: [ |
| 669 B(StackCheck), | 669 B(StackCheck), |
| 670 B(Ldar), R(arg0), | 670 B(Ldar), R(arg0), |
| 671 B(Star), R(0), | 671 B(Star), R(3), |
| 672 B(Ldar), R(arg1), | 672 B(Ldar), R(arg1), |
| 673 B(TestEqual), R(0), | 673 B(TestEqual), R(3), |
| 674 B(JumpIfFalse), U8(5), |
| 675 B(LdaSmi), U8(1), |
| 676 B(Return), |
| 677 B(Ldar), R(arg0), |
| 678 B(Star), R(3), |
| 679 B(Ldar), R(arg1), |
| 680 B(TestEqualStrict), R(3), |
| 681 B(JumpIfFalse), U8(5), |
| 682 B(LdaSmi), U8(1), |
| 683 B(Return), |
| 684 B(Ldar), R(arg0), |
| 685 B(Star), R(3), |
| 686 B(Ldar), R(arg1), |
| 687 B(TestLessThan), R(3), |
| 688 B(JumpIfFalse), U8(5), |
| 689 B(LdaSmi), U8(1), |
| 690 B(Return), |
| 691 B(Ldar), R(arg0), |
| 692 B(Star), R(3), |
| 693 B(Ldar), R(arg1), |
| 694 B(TestGreaterThan), R(3), |
| 695 B(JumpIfFalse), U8(5), |
| 696 B(LdaSmi), U8(1), |
| 697 B(Return), |
| 698 B(Ldar), R(arg0), |
| 699 B(Star), R(3), |
| 700 B(Ldar), R(arg1), |
| 701 B(TestLessThanOrEqual), R(3), |
| 702 B(JumpIfFalse), U8(5), |
| 703 B(LdaSmi), U8(1), |
| 704 B(Return), |
| 705 B(Ldar), R(arg0), |
| 706 B(Star), R(3), |
| 707 B(Ldar), R(arg1), |
| 708 B(TestGreaterThanOrEqual), R(3), |
| 709 B(JumpIfFalse), U8(5), |
| 710 B(LdaSmi), U8(1), |
| 711 B(Return), |
| 712 B(Ldar), R(arg0), |
| 713 B(Star), R(3), |
| 714 B(Ldar), R(arg1), |
| 715 B(TestIn), R(3), |
| 674 B(JumpIfFalse), U8(5), | 716 B(JumpIfFalse), U8(5), |
| 675 B(LdaSmi), U8(1), | 717 B(LdaSmi), U8(1), |
| 676 B(Return), | 718 B(Return), |
| 677 B(Ldar), R(arg0), | 719 B(Ldar), R(arg0), |
| 678 B(Star), R(0), | 720 B(Star), R(0), |
| 679 B(Ldar), R(arg1), | 721 B(Ldar), R(arg1), |
| 680 B(TestEqualStrict), R(0), | 722 B(Star), R(1), |
| 681 B(JumpIfFalse), U8(5), | 723 B(Star), R(3), |
| 682 B(LdaSmi), U8(1), | 724 B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(3), U8(1), |
| 683 B(Return), | 725 B(JumpIfToBooleanFalse), U8(4), |
| 684 B(Ldar), R(arg0), | 726 B(Jump), U8(16), |
| 685 B(Star), R(0), | 727 B(LdaSmi), U8(60), |
| 686 B(Ldar), R(arg1), | 728 B(Star), R(3), |
| 687 B(TestLessThan), R(0), | 729 B(LdaConstant), U8(0), |
| 688 B(JumpIfFalse), U8(5), | 730 B(Star), R(4), |
| 689 B(LdaSmi), U8(1), | 731 B(CallRuntime), U16(Runtime::kNewTypeError), R(3), U8(2), |
| 690 B(Return), | 732 B(Throw), |
| 691 B(Ldar), R(arg0), | 733 B(Ldar), R(1), |
| 692 B(Star), R(0), | 734 B(Star), R(3), |
| 693 B(Ldar), R(arg1), | 735 B(LdaConstant), U8(1), |
| 694 B(TestGreaterThan), R(0), | 736 B(KeyedLoadIC), R(3), U8(1), |
| 695 B(JumpIfFalse), U8(5), | 737 B(Star), R(2), |
| 696 B(LdaSmi), U8(1), | 738 B(Star), R(3), |
| 697 B(Return), | 739 B(LdaUndefined), |
| 698 B(Ldar), R(arg0), | 740 B(TestEqualStrict), R(3), |
| 699 B(Star), R(0), | 741 B(JumpIfFalse), U8(55), |
| 700 B(Ldar), R(arg1), | 742 B(Ldar), R(1), |
| 701 B(TestLessThanOrEqual), R(0), | 743 B(TypeOf), |
| 702 B(JumpIfFalse), U8(5), | 744 B(Star), R(3), |
| 703 B(LdaSmi), U8(1), | 745 B(LdaConstant), U8(2), |
| 704 B(Return), | 746 B(TestEqualStrict), R(3), |
| 705 B(Ldar), R(arg0), | 747 B(JumpIfFalse), U8(4), |
| 706 B(Star), R(0), | 748 B(Jump), U8(16), |
| 707 B(Ldar), R(arg1), | 749 B(LdaSmi), U8(16), |
| 708 B(TestGreaterThanOrEqual), R(0), | 750 B(Star), R(3), |
| 709 B(JumpIfFalse), U8(5), | 751 B(LdaConstant), U8(0), |
| 710 B(LdaSmi), U8(1), | 752 B(Star), R(4), |
| 711 B(Return), | 753 B(CallRuntime), U16(Runtime::kNewTypeError), R(3), U8(2), |
| 712 B(Ldar), R(arg0), | 754 B(Throw), |
| 713 B(Star), R(0), | 755 B(CallRuntime), U16(Runtime::k_GetOrdinaryHasInstance), R(0), U8(0), |
| 714 B(Ldar), R(arg1), | 756 B(Star), R(2), |
| 715 B(TestIn), R(0), | 757 B(Star), R(3), |
| 716 B(JumpIfFalse), U8(5), | 758 B(Ldar), R(1), |
| 717 B(LdaSmi), U8(1), | 759 B(Star), R(4), |
| 718 B(Return), | 760 B(Ldar), R(0), |
| 719 B(Ldar), R(arg0), | 761 B(Star), R(5), |
| 720 B(Star), R(0), | 762 B(CallRuntime), U16(Runtime::k_Call), R(3), U8(3), |
| 721 B(Ldar), R(arg1), | 763 B(Star), R(2), |
| 722 B(TestInstanceOf), R(0), | 764 B(Jump), U8(23), |
| 723 B(JumpIfFalse), U8(5), | 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), |
| 724 B(LdaSmi), U8(1), | 777 B(LdaSmi), U8(1), |
| 725 B(Return), | 778 B(Return), |
| 726 B(LdaZero), | 779 B(LdaZero), |
| 727 B(Return), | 780 B(Return), |
| 728 ] | 781 ] |
| 729 constant pool: [ | 782 constant pool: [ |
| 783 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 784 InstanceType::SYMBOL_TYPE, |
| 785 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 730 ] | 786 ] |
| 731 handlers: [ | 787 handlers: [ |
| 732 ] | 788 ] |
| 733 | 789 |
| 734 --- | 790 --- |
| 735 snippet: " | 791 snippet: " |
| 736 function f() { | 792 function f() { |
| 737 var a = 0; | 793 var a = 0; |
| 738 if (a) { | 794 if (a) { |
| 739 return 20; | 795 return 20; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 756 B(LdaSmi), U8(-20), | 812 B(LdaSmi), U8(-20), |
| 757 B(Return), | 813 B(Return), |
| 758 B(LdaUndefined), | 814 B(LdaUndefined), |
| 759 B(Return), | 815 B(Return), |
| 760 ] | 816 ] |
| 761 constant pool: [ | 817 constant pool: [ |
| 762 ] | 818 ] |
| 763 handlers: [ | 819 handlers: [ |
| 764 ] | 820 ] |
| 765 | 821 |
| OLD | NEW |