Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/IfConditions.golden

Issue 2337123003: [turbofan] Collect invocation counts and compute relative call frequencies. (Closed)
Patch Set: Address feedback. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 execute: yes 6 execute: yes
7 wrap: no 7 wrap: no
8 test function name: f 8 test function name: f
9 9
10 --- 10 ---
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 f(); 114 f();
115 " 115 "
116 frame size: 2 116 frame size: 2
117 parameter count: 1 117 parameter count: 1
118 bytecode array length: 23 118 bytecode array length: 23
119 bytecodes: [ 119 bytecodes: [
120 /* 10 E> */ B(StackCheck), 120 /* 10 E> */ B(StackCheck),
121 /* 25 S> */ B(LdaSmi), U8(1), 121 /* 25 S> */ B(LdaSmi), U8(1),
122 B(Star), R(0), 122 B(Star), R(0),
123 /* 30 S> */ B(JumpIfToBooleanFalse), U8(13), 123 /* 30 S> */ B(JumpIfToBooleanFalse), U8(13),
124 /* 43 S> */ B(AddSmi), U8(1), R(0), U8(1), 124 /* 43 S> */ B(AddSmi), U8(1), R(0), U8(2),
125 B(Mov), R(0), R(1), 125 B(Mov), R(0), R(1),
126 B(Star), R(0), 126 B(Star), R(0),
127 B(Jump), U8(5), 127 B(Jump), U8(5),
128 /* 66 S> */ B(LdaSmi), U8(2), 128 /* 66 S> */ B(LdaSmi), U8(2),
129 /* 80 S> */ B(Return), 129 /* 80 S> */ B(Return),
130 B(LdaUndefined), 130 B(LdaUndefined),
131 /* 80 S> */ B(Return), 131 /* 80 S> */ B(Return),
132 ] 132 ]
133 constant pool: [ 133 constant pool: [
134 ] 134 ]
(...skipping 10 matching lines...) Expand all
145 } 145 }
146 }; 146 };
147 f(99); 147 f(99);
148 " 148 "
149 frame size: 0 149 frame size: 0
150 parameter count: 2 150 parameter count: 2
151 bytecode array length: 19 151 bytecode array length: 19
152 bytecodes: [ 152 bytecodes: [
153 /* 10 E> */ B(StackCheck), 153 /* 10 E> */ B(StackCheck),
154 /* 18 S> */ B(LdaZero), 154 /* 18 S> */ B(LdaZero),
155 /* 24 E> */ B(TestLessThanOrEqual), R(arg0), U8(1), 155 /* 24 E> */ B(TestLessThanOrEqual), R(arg0), U8(2),
156 B(JumpIfFalse), U8(7), 156 B(JumpIfFalse), U8(7),
157 /* 36 S> */ B(Wide), B(LdaSmi), U16(200), 157 /* 36 S> */ B(Wide), B(LdaSmi), U16(200),
158 /* 80 S> */ B(Return), 158 /* 80 S> */ B(Return),
159 /* 63 S> */ B(Wide), B(LdaSmi), U16(-200), 159 /* 63 S> */ B(Wide), B(LdaSmi), U16(-200),
160 /* 80 S> */ B(Return), 160 /* 80 S> */ B(Return),
161 B(LdaUndefined), 161 B(LdaUndefined),
162 /* 80 S> */ B(Return), 162 /* 80 S> */ B(Return),
163 ] 163 ]
164 constant pool: [ 164 constant pool: [
165 ] 165 ]
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 frame size: 2 260 frame size: 2
261 parameter count: 2 261 parameter count: 2
262 bytecode array length: 410 262 bytecode array length: 410
263 bytecodes: [ 263 bytecodes: [
264 /* 10 E> */ B(StackCheck), 264 /* 10 E> */ B(StackCheck),
265 /* 24 S> */ B(LdaZero), 265 /* 24 S> */ B(LdaZero),
266 B(Star), R(0), 266 B(Star), R(0),
267 /* 35 S> */ B(LdaZero), 267 /* 35 S> */ B(LdaZero),
268 B(Star), R(1), 268 B(Star), R(1),
269 /* 38 S> */ B(LdaConstant), U8(0), 269 /* 38 S> */ B(LdaConstant), U8(0),
270 /* 44 E> */ B(TestEqualStrict), R(0), U8(1), 270 /* 44 E> */ B(TestEqualStrict), R(0), U8(2),
271 B(JumpIfFalseConstant), U8(1), 271 B(JumpIfFalseConstant), U8(1),
272 /* 58 S> */ B(Mov), R(0), R(1), 272 /* 58 S> */ B(Mov), R(0), R(1),
273 /* 65 S> */ B(Mov), R(1), R(0), 273 /* 65 S> */ B(Mov), R(1), R(0),
274 /* 74 S> */ B(Mov), R(0), R(1), 274 /* 74 S> */ B(Mov), R(0), R(1),
275 /* 81 S> */ B(Mov), R(1), R(0), 275 /* 81 S> */ B(Mov), R(1), R(0),
276 /* 90 S> */ B(Mov), R(0), R(1), 276 /* 90 S> */ B(Mov), R(0), R(1),
277 /* 97 S> */ B(Mov), R(1), R(0), 277 /* 97 S> */ B(Mov), R(1), R(0),
278 /* 106 S> */ B(Mov), R(0), R(1), 278 /* 106 S> */ B(Mov), R(0), R(1),
279 /* 113 S> */ B(Mov), R(1), R(0), 279 /* 113 S> */ B(Mov), R(1), R(0),
280 /* 122 S> */ B(Mov), R(0), R(1), 280 /* 122 S> */ B(Mov), R(0), R(1),
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 return 0; 650 return 0;
651 } 651 }
652 f(1, 1); 652 f(1, 1);
653 " 653 "
654 frame size: 0 654 frame size: 0
655 parameter count: 3 655 parameter count: 3
656 bytecode array length: 81 656 bytecode array length: 81
657 bytecodes: [ 657 bytecodes: [
658 /* 10 E> */ B(StackCheck), 658 /* 10 E> */ B(StackCheck),
659 /* 21 S> */ B(Ldar), R(arg1), 659 /* 21 S> */ B(Ldar), R(arg1),
660 /* 27 E> */ B(TestEqual), R(arg0), U8(1), 660 /* 27 E> */ B(TestEqual), R(arg0), U8(2),
661 B(JumpIfFalse), U8(5), 661 B(JumpIfFalse), U8(5),
662 /* 35 S> */ B(LdaSmi), U8(1), 662 /* 35 S> */ B(LdaSmi), U8(1),
663 /* 262 S> */ B(Return), 663 /* 262 S> */ B(Return),
664 /* 49 S> */ B(Ldar), R(arg1), 664 /* 49 S> */ B(Ldar), R(arg1),
665 /* 55 E> */ B(TestEqualStrict), R(arg0), U8(2), 665 /* 55 E> */ B(TestEqualStrict), R(arg0), U8(3),
666 B(JumpIfFalse), U8(5), 666 B(JumpIfFalse), U8(5),
667 /* 64 S> */ B(LdaSmi), U8(1), 667 /* 64 S> */ B(LdaSmi), U8(1),
668 /* 262 S> */ B(Return), 668 /* 262 S> */ B(Return),
669 /* 78 S> */ B(Ldar), R(arg1), 669 /* 78 S> */ B(Ldar), R(arg1),
670 /* 84 E> */ B(TestLessThan), R(arg0), U8(3), 670 /* 84 E> */ B(TestLessThan), R(arg0), U8(4),
671 B(JumpIfFalse), U8(5), 671 B(JumpIfFalse), U8(5),
672 /* 91 S> */ B(LdaSmi), U8(1), 672 /* 91 S> */ B(LdaSmi), U8(1),
673 /* 262 S> */ B(Return), 673 /* 262 S> */ B(Return),
674 /* 105 S> */ B(Ldar), R(arg1), 674 /* 105 S> */ B(Ldar), R(arg1),
675 /* 111 E> */ B(TestGreaterThan), R(arg0), U8(4), 675 /* 111 E> */ B(TestGreaterThan), R(arg0), U8(5),
676 B(JumpIfFalse), U8(5), 676 B(JumpIfFalse), U8(5),
677 /* 118 S> */ B(LdaSmi), U8(1), 677 /* 118 S> */ B(LdaSmi), U8(1),
678 /* 262 S> */ B(Return), 678 /* 262 S> */ B(Return),
679 /* 132 S> */ B(Ldar), R(arg1), 679 /* 132 S> */ B(Ldar), R(arg1),
680 /* 138 E> */ B(TestLessThanOrEqual), R(arg0), U8(5), 680 /* 138 E> */ B(TestLessThanOrEqual), R(arg0), U8(6),
681 B(JumpIfFalse), U8(5), 681 B(JumpIfFalse), U8(5),
682 /* 146 S> */ B(LdaSmi), U8(1), 682 /* 146 S> */ B(LdaSmi), U8(1),
683 /* 262 S> */ B(Return), 683 /* 262 S> */ B(Return),
684 /* 160 S> */ B(Ldar), R(arg1), 684 /* 160 S> */ B(Ldar), R(arg1),
685 /* 166 E> */ B(TestGreaterThanOrEqual), R(arg0), U8(6), 685 /* 166 E> */ B(TestGreaterThanOrEqual), R(arg0), U8(7),
686 B(JumpIfFalse), U8(5), 686 B(JumpIfFalse), U8(5),
687 /* 174 S> */ B(LdaSmi), U8(1), 687 /* 174 S> */ B(LdaSmi), U8(1),
688 /* 262 S> */ B(Return), 688 /* 262 S> */ B(Return),
689 /* 188 S> */ B(Ldar), R(arg1), 689 /* 188 S> */ B(Ldar), R(arg1),
690 /* 194 E> */ B(TestIn), R(arg0), 690 /* 194 E> */ B(TestIn), R(arg0),
691 B(JumpIfFalse), U8(5), 691 B(JumpIfFalse), U8(5),
692 /* 202 S> */ B(LdaSmi), U8(1), 692 /* 202 S> */ B(LdaSmi), U8(1),
693 /* 262 S> */ B(Return), 693 /* 262 S> */ B(Return),
694 /* 216 S> */ B(Ldar), R(arg1), 694 /* 216 S> */ B(Ldar), R(arg1),
695 /* 222 E> */ B(TestInstanceOf), R(arg0), 695 /* 222 E> */ B(TestInstanceOf), R(arg0),
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 } 748 }
749 }; 749 };
750 f(-1, 1); 750 f(-1, 1);
751 " 751 "
752 frame size: 0 752 frame size: 0
753 parameter count: 3 753 parameter count: 3
754 bytecode array length: 36 754 bytecode array length: 36
755 bytecodes: [ 755 bytecodes: [
756 /* 10 E> */ B(StackCheck), 756 /* 10 E> */ B(StackCheck),
757 /* 21 S> */ B(Ldar), R(arg1), 757 /* 21 S> */ B(Ldar), R(arg1),
758 /* 27 E> */ B(TestEqual), R(arg0), U8(1), 758 /* 27 E> */ B(TestEqual), R(arg0), U8(2),
759 B(JumpIfTrue), U8(8), 759 B(JumpIfTrue), U8(8),
760 B(LdaZero), 760 B(LdaZero),
761 /* 37 E> */ B(TestLessThan), R(arg0), U8(2), 761 /* 37 E> */ B(TestLessThan), R(arg0), U8(3),
762 B(JumpIfFalse), U8(5), 762 B(JumpIfFalse), U8(5),
763 /* 48 S> */ B(LdaSmi), U8(1), 763 /* 48 S> */ B(LdaSmi), U8(1),
764 /* 133 S> */ B(Return), 764 /* 133 S> */ B(Return),
765 /* 67 S> */ B(LdaZero), 765 /* 67 S> */ B(LdaZero),
766 /* 73 E> */ B(TestGreaterThan), R(arg0), U8(3), 766 /* 73 E> */ B(TestGreaterThan), R(arg0), U8(4),
767 B(JumpIfFalse), U8(10), 767 B(JumpIfFalse), U8(10),
768 B(LdaZero), 768 B(LdaZero),
769 /* 82 E> */ B(TestGreaterThan), R(arg1), U8(4), 769 /* 82 E> */ B(TestGreaterThan), R(arg1), U8(5),
770 B(JumpIfFalse), U8(4), 770 B(JumpIfFalse), U8(4),
771 /* 93 S> */ B(LdaZero), 771 /* 93 S> */ B(LdaZero),
772 /* 133 S> */ B(Return), 772 /* 133 S> */ B(Return),
773 /* 118 S> */ B(LdaSmi), U8(-1), 773 /* 118 S> */ B(LdaSmi), U8(-1),
774 /* 133 S> */ B(Return), 774 /* 133 S> */ B(Return),
775 B(LdaUndefined), 775 B(LdaUndefined),
776 /* 133 S> */ B(Return), 776 /* 133 S> */ B(Return),
777 ] 777 ]
778 constant pool: [ 778 constant pool: [
779 ] 779 ]
780 handlers: [ 780 handlers: [
781 ] 781 ]
782 782
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698