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: 20 | 153 bytecode array length: 18 |
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(9), | 158 B(JumpIfFalse), U8(7), |
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), | |
162 /* 63 S> */ B(Wide), B(LdaSmi), U16(-200), | 161 /* 63 S> */ B(Wide), B(LdaSmi), U16(-200), |
163 /* 80 S> */ B(Return), | 162 /* 80 S> */ B(Return), |
164 B(LdaUndefined), | 163 B(LdaUndefined), |
165 /* 80 S> */ B(Return), | 164 /* 80 S> */ B(Return), |
166 ] | 165 ] |
167 constant pool: [ | 166 constant pool: [ |
168 ] | 167 ] |
169 handlers: [ | 168 handlers: [ |
170 ] | 169 ] |
171 | 170 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 b = a; a = b; | 254 b = a; a = b; |
256 b = a; a = b; | 255 b = a; a = b; |
257 b = a; a = b; | 256 b = a; a = b; |
258 b = a; a = b; | 257 b = a; a = b; |
259 b = a; a = b; | 258 b = a; a = b; |
260 b = a; a = b; | 259 b = a; a = b; |
261 return 200; } else { return -200; } } f(0.001); | 260 return 200; } else { return -200; } } f(0.001); |
262 " | 261 " |
263 frame size: 2 | 262 frame size: 2 |
264 parameter count: 2 | 263 parameter count: 2 |
265 bytecode array length: 411 | 264 bytecode array length: 409 |
266 bytecodes: [ | 265 bytecodes: [ |
267 /* 10 E> */ B(StackCheck), | 266 /* 10 E> */ B(StackCheck), |
268 /* 24 S> */ B(LdaZero), | 267 /* 24 S> */ B(LdaZero), |
269 B(Star), R(0), | 268 B(Star), R(0), |
270 /* 35 S> */ B(LdaZero), | 269 /* 35 S> */ B(LdaZero), |
271 B(Star), R(1), | 270 B(Star), R(1), |
272 /* 38 S> */ B(LdaConstant), U8(0), | 271 /* 38 S> */ B(LdaConstant), U8(0), |
273 /* 44 E> */ B(TestEqualStrict), R(0), | 272 /* 44 E> */ B(TestEqualStrict), R(0), |
274 B(JumpIfFalseConstant), U8(1), | 273 B(JumpIfFalseConstant), U8(1), |
275 /* 58 S> */ B(Mov), R(0), R(1), | 274 /* 58 S> */ B(Mov), R(0), R(1), |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 /* 1018 S> */ B(Mov), R(0), R(1), | 394 /* 1018 S> */ B(Mov), R(0), R(1), |
396 /* 1025 S> */ B(Mov), R(1), R(0), | 395 /* 1025 S> */ B(Mov), R(1), R(0), |
397 /* 1034 S> */ B(Mov), R(0), R(1), | 396 /* 1034 S> */ B(Mov), R(0), R(1), |
398 /* 1041 S> */ B(Mov), R(1), R(0), | 397 /* 1041 S> */ B(Mov), R(1), R(0), |
399 /* 1050 S> */ B(Mov), R(0), R(1), | 398 /* 1050 S> */ B(Mov), R(0), R(1), |
400 /* 1057 S> */ B(Mov), R(1), R(0), | 399 /* 1057 S> */ B(Mov), R(1), R(0), |
401 /* 1066 S> */ B(Mov), R(0), R(1), | 400 /* 1066 S> */ B(Mov), R(0), R(1), |
402 /* 1073 S> */ B(Mov), R(1), R(0), | 401 /* 1073 S> */ B(Mov), R(1), R(0), |
403 /* 1081 S> */ B(Wide), B(LdaSmi), U16(200), | 402 /* 1081 S> */ B(Wide), B(LdaSmi), U16(200), |
404 /* 1117 S> */ B(Return), | 403 /* 1117 S> */ B(Return), |
405 B(Jump), U8(7), | |
406 /* 1102 S> */ B(Wide), B(LdaSmi), U16(-200), | 404 /* 1102 S> */ B(Wide), B(LdaSmi), U16(-200), |
407 /* 1117 S> */ B(Return), | 405 /* 1117 S> */ B(Return), |
408 B(LdaUndefined), | 406 B(LdaUndefined), |
409 /* 1117 S> */ B(Return), | 407 /* 1117 S> */ B(Return), |
410 ] | 408 ] |
411 constant pool: [ | 409 constant pool: [ |
412 InstanceType::HEAP_NUMBER_TYPE, | 410 InstanceType::HEAP_NUMBER_TYPE, |
413 kInstanceTypeDontCare, | 411 kInstanceTypeDontCare, |
414 ] | 412 ] |
415 handlers: [ | 413 handlers: [ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 b = a; a = b; | 481 b = a; a = b; |
484 b = a; a = b; | 482 b = a; a = b; |
485 b = a; a = b; | 483 b = a; a = b; |
486 b = a; a = b; | 484 b = a; a = b; |
487 return 200; } else { return -200; } | 485 return 200; } else { return -200; } |
488 }; | 486 }; |
489 f(); | 487 f(); |
490 " | 488 " |
491 frame size: 2 | 489 frame size: 2 |
492 parameter count: 1 | 490 parameter count: 1 |
493 bytecode array length: 409 | 491 bytecode array length: 407 |
494 bytecodes: [ | 492 bytecodes: [ |
495 /* 10 E> */ B(StackCheck), | 493 /* 10 E> */ B(StackCheck), |
496 /* 25 S> */ B(LdaZero), | 494 /* 25 S> */ B(LdaZero), |
497 B(Star), R(0), | 495 B(Star), R(0), |
498 /* 36 S> */ B(LdaZero), | 496 /* 36 S> */ B(LdaZero), |
499 B(Star), R(1), | 497 B(Star), R(1), |
500 /* 41 S> */ B(Ldar), R(0), | 498 /* 41 S> */ B(Ldar), R(0), |
501 B(JumpIfToBooleanFalseConstant), U8(0), | 499 B(JumpIfToBooleanFalseConstant), U8(0), |
502 /* 52 S> */ B(Mov), R(0), R(1), | 500 /* 52 S> */ B(Mov), R(0), R(1), |
503 /* 59 S> */ B(Mov), R(1), R(0), | 501 /* 59 S> */ B(Mov), R(1), R(0), |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 /* 1012 S> */ B(Mov), R(0), R(1), | 620 /* 1012 S> */ B(Mov), R(0), R(1), |
623 /* 1019 S> */ B(Mov), R(1), R(0), | 621 /* 1019 S> */ B(Mov), R(1), R(0), |
624 /* 1028 S> */ B(Mov), R(0), R(1), | 622 /* 1028 S> */ B(Mov), R(0), R(1), |
625 /* 1035 S> */ B(Mov), R(1), R(0), | 623 /* 1035 S> */ B(Mov), R(1), R(0), |
626 /* 1044 S> */ B(Mov), R(0), R(1), | 624 /* 1044 S> */ B(Mov), R(0), R(1), |
627 /* 1051 S> */ B(Mov), R(1), R(0), | 625 /* 1051 S> */ B(Mov), R(1), R(0), |
628 /* 1060 S> */ B(Mov), R(0), R(1), | 626 /* 1060 S> */ B(Mov), R(0), R(1), |
629 /* 1067 S> */ B(Mov), R(1), R(0), | 627 /* 1067 S> */ B(Mov), R(1), R(0), |
630 /* 1076 S> */ B(Wide), B(LdaSmi), U16(200), | 628 /* 1076 S> */ B(Wide), B(LdaSmi), U16(200), |
631 /* 1112 S> */ B(Return), | 629 /* 1112 S> */ B(Return), |
632 B(Jump), U8(7), | |
633 /* 1097 S> */ B(Wide), B(LdaSmi), U16(-200), | 630 /* 1097 S> */ B(Wide), B(LdaSmi), U16(-200), |
634 /* 1112 S> */ B(Return), | 631 /* 1112 S> */ B(Return), |
635 B(LdaUndefined), | 632 B(LdaUndefined), |
636 /* 1112 S> */ B(Return), | 633 /* 1112 S> */ B(Return), |
637 ] | 634 ] |
638 constant pool: [ | 635 constant pool: [ |
639 kInstanceTypeDontCare, | 636 kInstanceTypeDontCare, |
640 ] | 637 ] |
641 handlers: [ | 638 handlers: [ |
642 ] | 639 ] |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 if (a) { | 713 if (a) { |
717 return 20; | 714 return 20; |
718 } else { | 715 } else { |
719 return -20; | 716 return -20; |
720 } | 717 } |
721 }; | 718 }; |
722 f(); | 719 f(); |
723 " | 720 " |
724 frame size: 1 | 721 frame size: 1 |
725 parameter count: 1 | 722 parameter count: 1 |
726 bytecode array length: 16 | 723 bytecode array length: 14 |
727 bytecodes: [ | 724 bytecodes: [ |
728 /* 10 E> */ B(StackCheck), | 725 /* 10 E> */ B(StackCheck), |
729 /* 25 S> */ B(LdaZero), | 726 /* 25 S> */ B(LdaZero), |
730 B(Star), R(0), | 727 B(Star), R(0), |
731 /* 30 S> */ B(JumpIfToBooleanFalse), U8(7), | 728 /* 30 S> */ B(JumpIfToBooleanFalse), U8(5), |
732 /* 43 S> */ B(LdaSmi), U8(20), | 729 /* 43 S> */ B(LdaSmi), U8(20), |
733 /* 85 S> */ B(Return), | 730 /* 85 S> */ B(Return), |
734 B(Jump), U8(5), | |
735 /* 69 S> */ B(LdaSmi), U8(-20), | 731 /* 69 S> */ B(LdaSmi), U8(-20), |
736 /* 85 S> */ B(Return), | 732 /* 85 S> */ B(Return), |
737 B(LdaUndefined), | 733 B(LdaUndefined), |
738 /* 85 S> */ B(Return), | 734 /* 85 S> */ B(Return), |
739 ] | 735 ] |
740 constant pool: [ | 736 constant pool: [ |
741 ] | 737 ] |
742 handlers: [ | 738 handlers: [ |
743 ] | 739 ] |
744 | 740 |
OLD | NEW |