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: number |
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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 265, |
646 ] | 646 ] |
647 handlers: [ | 647 handlers: [ |
648 ] | 648 ] |
649 | 649 |
650 --- | |
651 snippet: " | |
652 function f(a, b) { | |
653 if (a == b) { return 1; } | |
654 if (a === b) { return 1; } | |
655 if (a < b) { return 1; } | |
656 if (a > b) { return 1; } | |
657 if (a <= b) { return 1; } | |
658 if (a >= b) { return 1; } | |
659 if (a in b) { return 1; } | |
660 if (a instanceof b) { return 1; } | |
661 return 0; | |
662 } | |
663 f(1, 1); | |
664 " | |
665 frame size: 1 | |
666 parameter count: 3 | |
667 bytecode array length: 107 | |
668 bytecodes: [ | |
669 B(StackCheck), | |
670 B(Ldar), R(arg0), | |
671 B(Star), R(0), | |
672 B(Ldar), R(arg1), | |
673 B(TestEqual), R(0), | |
674 B(JumpIfFalse), U8(5), | |
675 B(LdaSmi), U8(1), | |
676 B(Return), | |
677 B(Ldar), R(arg0), | |
678 B(Star), R(0), | |
679 B(Ldar), R(arg1), | |
680 B(TestEqualStrict), R(0), | |
681 B(JumpIfFalse), U8(5), | |
682 B(LdaSmi), U8(1), | |
683 B(Return), | |
684 B(Ldar), R(arg0), | |
685 B(Star), R(0), | |
686 B(Ldar), R(arg1), | |
687 B(TestLessThan), R(0), | |
688 B(JumpIfFalse), U8(5), | |
689 B(LdaSmi), U8(1), | |
690 B(Return), | |
691 B(Ldar), R(arg0), | |
692 B(Star), R(0), | |
693 B(Ldar), R(arg1), | |
694 B(TestGreaterThan), R(0), | |
695 B(JumpIfFalse), U8(5), | |
696 B(LdaSmi), U8(1), | |
697 B(Return), | |
698 B(Ldar), R(arg0), | |
699 B(Star), R(0), | |
700 B(Ldar), R(arg1), | |
701 B(TestLessThanOrEqual), R(0), | |
702 B(JumpIfFalse), U8(5), | |
703 B(LdaSmi), U8(1), | |
704 B(Return), | |
705 B(Ldar), R(arg0), | |
706 B(Star), R(0), | |
707 B(Ldar), R(arg1), | |
708 B(TestGreaterThanOrEqual), R(0), | |
709 B(JumpIfFalse), U8(5), | |
710 B(LdaSmi), U8(1), | |
711 B(Return), | |
712 B(Ldar), R(arg0), | |
713 B(Star), R(0), | |
714 B(Ldar), R(arg1), | |
715 B(TestIn), R(0), | |
716 B(JumpIfFalse), U8(5), | |
717 B(LdaSmi), U8(1), | |
718 B(Return), | |
719 B(Ldar), R(arg0), | |
720 B(Star), R(0), | |
721 B(Ldar), R(arg1), | |
722 B(TestInstanceOf), R(0), | |
723 B(JumpIfFalse), U8(5), | |
724 B(LdaSmi), U8(1), | |
725 B(Return), | |
726 B(LdaZero), | |
727 B(Return), | |
728 ] | |
729 constant pool: [ | |
730 ] | |
731 handlers: [ | |
732 ] | |
733 | |
734 --- | |
735 snippet: " | |
736 function f() { | |
737 var a = 0; | |
738 if (a) { | |
739 return 20; | |
740 } else { | |
741 return -20; | |
742 } | |
743 }; | |
744 f(); | |
745 " | |
746 frame size: 1 | |
747 parameter count: 1 | |
748 bytecode array length: 14 | |
749 bytecodes: [ | |
750 B(StackCheck), | |
751 B(LdaZero), | |
752 B(Star), R(0), | |
753 B(JumpIfToBooleanFalse), U8(5), | |
754 B(LdaSmi), U8(20), | |
755 B(Return), | |
756 B(LdaSmi), U8(-20), | |
757 B(Return), | |
758 B(LdaUndefined), | |
759 B(Return), | |
760 ] | |
761 constant pool: [ | |
762 ] | |
763 handlers: [ | |
764 ] | |
765 | |
OLD | NEW |