| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 if (a <= 0) { | 143 if (a <= 0) { |
| 144 return 200; | 144 return 200; |
| 145 } else { | 145 } else { |
| 146 return -200; | 146 return -200; |
| 147 } | 147 } |
| 148 }; | 148 }; |
| 149 f(99); | 149 f(99); |
| 150 " | 150 " |
| 151 frame size: 0 | 151 frame size: 0 |
| 152 parameter count: 2 | 152 parameter count: 2 |
| 153 bytecode array length: 18 | 153 bytecode array length: 20 |
| 154 bytecodes: [ | 154 bytecodes: [ |
| 155 /* 10 E> */ B(StackCheck), | 155 /* 10 E> */ B(StackCheck), |
| 156 /* 18 S> */ B(LdaZero), | 156 /* 18 S> */ B(LdaZero), |
| 157 /* 24 E> */ B(TestLessThanOrEqual), R(arg0), | 157 /* 24 E> */ B(TestLessThanOrEqual), R(arg0), |
| 158 B(JumpIfFalse), U8(7), | 158 B(JumpIfFalse), U8(9), |
| 159 /* 36 S> */ B(Wide), B(LdaSmi), U16(200), | 159 /* 36 S> */ B(Wide), B(LdaSmi), U16(200), |
| 160 /* 80 S> */ B(Return), | 160 /* 80 S> */ B(Return), |
| 161 B(Jump), U8(7), |
| 161 /* 63 S> */ B(Wide), B(LdaSmi), U16(-200), | 162 /* 63 S> */ B(Wide), B(LdaSmi), U16(-200), |
| 162 /* 80 S> */ B(Return), | 163 /* 80 S> */ B(Return), |
| 163 B(LdaUndefined), | 164 B(LdaUndefined), |
| 164 /* 80 S> */ B(Return), | 165 /* 80 S> */ B(Return), |
| 165 ] | 166 ] |
| 166 constant pool: [ | 167 constant pool: [ |
| 167 ] | 168 ] |
| 168 handlers: [ | 169 handlers: [ |
| 169 ] | 170 ] |
| 170 | 171 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 b = a; a = b; | 256 b = a; a = b; |
| 256 b = a; a = b; | 257 b = a; a = b; |
| 257 b = a; a = b; | 258 b = a; a = b; |
| 258 b = a; a = b; | 259 b = a; a = b; |
| 259 b = a; a = b; | 260 b = a; a = b; |
| 260 b = a; a = b; | 261 b = a; a = b; |
| 261 return 200; } else { return -200; } } f(0.001); | 262 return 200; } else { return -200; } } f(0.001); |
| 262 " | 263 " |
| 263 frame size: 2 | 264 frame size: 2 |
| 264 parameter count: 2 | 265 parameter count: 2 |
| 265 bytecode array length: 537 | 266 bytecode array length: 539 |
| 266 bytecodes: [ | 267 bytecodes: [ |
| 267 /* 10 E> */ B(StackCheck), | 268 /* 10 E> */ B(StackCheck), |
| 268 /* 24 S> */ B(LdaZero), | 269 /* 24 S> */ B(LdaZero), |
| 269 B(Star), R(0), | 270 B(Star), R(0), |
| 270 /* 35 S> */ B(LdaZero), | 271 /* 35 S> */ B(LdaZero), |
| 271 B(Star), R(1), | 272 B(Star), R(1), |
| 272 /* 38 S> */ B(LdaConstant), U8(0), | 273 /* 38 S> */ B(LdaConstant), U8(0), |
| 273 /* 44 E> */ B(TestEqualStrict), R(0), | 274 /* 44 E> */ B(TestEqualStrict), R(0), |
| 274 B(JumpIfFalseConstant), U8(1), | 275 B(JumpIfFalseConstant), U8(1), |
| 275 /* 58 S> */ B(Nop), | 276 /* 58 S> */ B(Nop), |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 /* 1050 S> */ B(Nop), | 524 /* 1050 S> */ B(Nop), |
| 524 B(Mov), R(0), R(1), | 525 B(Mov), R(0), R(1), |
| 525 /* 1057 S> */ B(Nop), | 526 /* 1057 S> */ B(Nop), |
| 526 B(Mov), R(1), R(0), | 527 B(Mov), R(1), R(0), |
| 527 /* 1066 S> */ B(Nop), | 528 /* 1066 S> */ B(Nop), |
| 528 B(Mov), R(0), R(1), | 529 B(Mov), R(0), R(1), |
| 529 /* 1073 S> */ B(Nop), | 530 /* 1073 S> */ B(Nop), |
| 530 B(Mov), R(1), R(0), | 531 B(Mov), R(1), R(0), |
| 531 /* 1081 S> */ B(Wide), B(LdaSmi), U16(200), | 532 /* 1081 S> */ B(Wide), B(LdaSmi), U16(200), |
| 532 /* 1117 S> */ B(Return), | 533 /* 1117 S> */ B(Return), |
| 534 B(Jump), U8(7), |
| 533 /* 1102 S> */ B(Wide), B(LdaSmi), U16(-200), | 535 /* 1102 S> */ B(Wide), B(LdaSmi), U16(-200), |
| 534 /* 1117 S> */ B(Return), | 536 /* 1117 S> */ B(Return), |
| 535 B(LdaUndefined), | 537 B(LdaUndefined), |
| 536 /* 1117 S> */ B(Return), | 538 /* 1117 S> */ B(Return), |
| 537 ] | 539 ] |
| 538 constant pool: [ | 540 constant pool: [ |
| 539 InstanceType::HEAP_NUMBER_TYPE, | 541 InstanceType::HEAP_NUMBER_TYPE, |
| 540 kInstanceTypeDontCare, | 542 kInstanceTypeDontCare, |
| 541 ] | 543 ] |
| 542 handlers: [ | 544 handlers: [ |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 b = a; a = b; | 612 b = a; a = b; |
| 611 b = a; a = b; | 613 b = a; a = b; |
| 612 b = a; a = b; | 614 b = a; a = b; |
| 613 b = a; a = b; | 615 b = a; a = b; |
| 614 return 200; } else { return -200; } | 616 return 200; } else { return -200; } |
| 615 }; | 617 }; |
| 616 f(); | 618 f(); |
| 617 " | 619 " |
| 618 frame size: 2 | 620 frame size: 2 |
| 619 parameter count: 1 | 621 parameter count: 1 |
| 620 bytecode array length: 535 | 622 bytecode array length: 537 |
| 621 bytecodes: [ | 623 bytecodes: [ |
| 622 /* 10 E> */ B(StackCheck), | 624 /* 10 E> */ B(StackCheck), |
| 623 /* 25 S> */ B(LdaZero), | 625 /* 25 S> */ B(LdaZero), |
| 624 B(Star), R(0), | 626 B(Star), R(0), |
| 625 /* 36 S> */ B(LdaZero), | 627 /* 36 S> */ B(LdaZero), |
| 626 B(Star), R(1), | 628 B(Star), R(1), |
| 627 /* 41 S> */ B(Ldar), R(0), | 629 /* 41 S> */ B(Ldar), R(0), |
| 628 B(JumpIfToBooleanFalseConstant), U8(0), | 630 B(JumpIfToBooleanFalseConstant), U8(0), |
| 629 /* 52 S> */ B(Nop), | 631 /* 52 S> */ B(Nop), |
| 630 B(Mov), R(0), R(1), | 632 B(Mov), R(0), R(1), |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 /* 1044 S> */ B(Nop), | 879 /* 1044 S> */ B(Nop), |
| 878 B(Mov), R(0), R(1), | 880 B(Mov), R(0), R(1), |
| 879 /* 1051 S> */ B(Nop), | 881 /* 1051 S> */ B(Nop), |
| 880 B(Mov), R(1), R(0), | 882 B(Mov), R(1), R(0), |
| 881 /* 1060 S> */ B(Nop), | 883 /* 1060 S> */ B(Nop), |
| 882 B(Mov), R(0), R(1), | 884 B(Mov), R(0), R(1), |
| 883 /* 1067 S> */ B(Nop), | 885 /* 1067 S> */ B(Nop), |
| 884 B(Mov), R(1), R(0), | 886 B(Mov), R(1), R(0), |
| 885 /* 1076 S> */ B(Wide), B(LdaSmi), U16(200), | 887 /* 1076 S> */ B(Wide), B(LdaSmi), U16(200), |
| 886 /* 1112 S> */ B(Return), | 888 /* 1112 S> */ B(Return), |
| 889 B(Jump), U8(7), |
| 887 /* 1097 S> */ B(Wide), B(LdaSmi), U16(-200), | 890 /* 1097 S> */ B(Wide), B(LdaSmi), U16(-200), |
| 888 /* 1112 S> */ B(Return), | 891 /* 1112 S> */ B(Return), |
| 889 B(LdaUndefined), | 892 B(LdaUndefined), |
| 890 /* 1112 S> */ B(Return), | 893 /* 1112 S> */ B(Return), |
| 891 ] | 894 ] |
| 892 constant pool: [ | 895 constant pool: [ |
| 893 kInstanceTypeDontCare, | 896 kInstanceTypeDontCare, |
| 894 ] | 897 ] |
| 895 handlers: [ | 898 handlers: [ |
| 896 ] | 899 ] |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 if (a) { | 981 if (a) { |
| 979 return 20; | 982 return 20; |
| 980 } else { | 983 } else { |
| 981 return -20; | 984 return -20; |
| 982 } | 985 } |
| 983 }; | 986 }; |
| 984 f(); | 987 f(); |
| 985 " | 988 " |
| 986 frame size: 1 | 989 frame size: 1 |
| 987 parameter count: 1 | 990 parameter count: 1 |
| 988 bytecode array length: 14 | 991 bytecode array length: 16 |
| 989 bytecodes: [ | 992 bytecodes: [ |
| 990 /* 10 E> */ B(StackCheck), | 993 /* 10 E> */ B(StackCheck), |
| 991 /* 25 S> */ B(LdaZero), | 994 /* 25 S> */ B(LdaZero), |
| 992 B(Star), R(0), | 995 B(Star), R(0), |
| 993 /* 30 S> */ B(JumpIfToBooleanFalse), U8(5), | 996 /* 30 S> */ B(JumpIfToBooleanFalse), U8(7), |
| 994 /* 43 S> */ B(LdaSmi), U8(20), | 997 /* 43 S> */ B(LdaSmi), U8(20), |
| 995 /* 85 S> */ B(Return), | 998 /* 85 S> */ B(Return), |
| 999 B(Jump), U8(5), |
| 996 /* 69 S> */ B(LdaSmi), U8(-20), | 1000 /* 69 S> */ B(LdaSmi), U8(-20), |
| 997 /* 85 S> */ B(Return), | 1001 /* 85 S> */ B(Return), |
| 998 B(LdaUndefined), | 1002 B(LdaUndefined), |
| 999 /* 85 S> */ B(Return), | 1003 /* 85 S> */ B(Return), |
| 1000 ] | 1004 ] |
| 1001 constant pool: [ | 1005 constant pool: [ |
| 1002 ] | 1006 ] |
| 1003 handlers: [ | 1007 handlers: [ |
| 1004 ] | 1008 ] |
| 1005 | 1009 |
| OLD | NEW |