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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 /* 69 S> */ B(LdaSmi), U8(-20), | 730 /* 69 S> */ B(LdaSmi), U8(-20), |
731 /* 85 S> */ B(Return), | 731 /* 85 S> */ B(Return), |
732 B(LdaUndefined), | 732 B(LdaUndefined), |
733 /* 85 S> */ B(Return), | 733 /* 85 S> */ B(Return), |
734 ] | 734 ] |
735 constant pool: [ | 735 constant pool: [ |
736 ] | 736 ] |
737 handlers: [ | 737 handlers: [ |
738 ] | 738 ] |
739 | 739 |
| 740 --- |
| 741 snippet: " |
| 742 function f(a, b) { |
| 743 if (a == b || a < 0) { |
| 744 return 1; |
| 745 } else if (a > 0 && b > 0) { |
| 746 return 0; |
| 747 } else { |
| 748 return -1; |
| 749 } |
| 750 }; |
| 751 f(-1, 1); |
| 752 " |
| 753 frame size: 0 |
| 754 parameter count: 3 |
| 755 bytecode array length: 32 |
| 756 bytecodes: [ |
| 757 /* 10 E> */ B(StackCheck), |
| 758 /* 21 S> */ B(Ldar), R(arg1), |
| 759 /* 27 E> */ B(TestEqual), R(arg0), |
| 760 B(JumpIfTrue), U8(7), |
| 761 B(LdaZero), |
| 762 /* 37 E> */ B(TestLessThan), R(arg0), |
| 763 B(JumpIfFalse), U8(5), |
| 764 /* 48 S> */ B(LdaSmi), U8(1), |
| 765 /* 133 S> */ B(Return), |
| 766 /* 67 S> */ B(LdaZero), |
| 767 /* 73 E> */ B(TestGreaterThan), R(arg0), |
| 768 B(JumpIfFalse), U8(9), |
| 769 B(LdaZero), |
| 770 /* 82 E> */ B(TestGreaterThan), R(arg1), |
| 771 B(JumpIfFalse), U8(4), |
| 772 /* 93 S> */ B(LdaZero), |
| 773 /* 133 S> */ B(Return), |
| 774 /* 118 S> */ B(LdaSmi), U8(-1), |
| 775 /* 133 S> */ B(Return), |
| 776 B(LdaUndefined), |
| 777 /* 133 S> */ B(Return), |
| 778 ] |
| 779 constant pool: [ |
| 780 ] |
| 781 handlers: [ |
| 782 ] |
| 783 |
OLD | NEW |