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

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

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. Created 3 years, 10 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 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 var x = 0; 10 var x = 0;
11 while (x != 10) { 11 while (x != 10) {
12 x = x + 10; 12 x = x + 10;
13 } 13 }
14 return x; 14 return x;
15 " 15 "
16 frame size: 1 16 frame size: 2
17 parameter count: 1 17 parameter count: 1
18 bytecode array length: 25 18 bytecode array length: 32
19 bytecodes: [ 19 bytecodes: [
20 /* 30 E> */ B(StackCheck), 20 /* 30 E> */ B(StackCheck),
21 /* 42 S> */ B(LdaZero), 21 /* 42 S> */ B(LdaConstant), U8(0),
22 B(Star), R(1),
23 B(LdaZero),
22 B(Star), R(0), 24 B(Star), R(0),
23 /* 54 S> */ B(LdaSmi), I8(10), 25 /* 54 S> */ B(LdaSmi), I8(10),
24 /* 54 E> */ B(TestEqual), R(0), U8(2), 26 /* 54 E> */ B(TestEqual), R(0), U8(4),
25 B(JumpIfTrue), U8(13), 27 B(JumpIfTrue), U8(16),
26 /* 45 E> */ B(StackCheck), 28 /* 45 E> */ B(StackCheck),
27 /* 65 S> */ B(LdaSmi), I8(10), 29 /* 65 S> */ B(LdaConstant), U8(0),
28 /* 71 E> */ B(Add), R(0), U8(3), 30 B(Star), R(1),
31 /* 71 E> */ B(AddSmi), I8(10), R(0), U8(5),
29 B(Star), R(0), 32 B(Star), R(0),
30 B(JumpLoop), U8(15), I8(0), 33 B(JumpLoop), U8(18), I8(0),
31 /* 79 S> */ B(Ldar), R(0), 34 /* 79 S> */ B(Ldar), R(0),
32 /* 89 S> */ B(Return), 35 /* 89 S> */ B(Return),
33 ] 36 ]
34 constant pool: [ 37 constant pool: [
38 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
35 ] 39 ]
36 handlers: [ 40 handlers: [
37 ] 41 ]
38 42
39 --- 43 ---
40 snippet: " 44 snippet: "
41 var x = false; 45 var x = false;
42 do { 46 do {
43 x = !x; 47 x = !x;
44 } while(x == false); 48 } while(x == false);
45 return x; 49 return x;
46 " 50 "
47 frame size: 1 51 frame size: 2
48 parameter count: 1 52 parameter count: 1
49 bytecode array length: 22 53 bytecode array length: 30
50 bytecodes: [ 54 bytecodes: [
51 /* 30 E> */ B(StackCheck), 55 /* 30 E> */ B(StackCheck),
52 /* 42 S> */ B(LdaFalse), 56 /* 42 S> */ B(LdaConstant), U8(0),
57 B(Star), R(1),
58 B(LdaFalse),
53 B(Star), R(0), 59 B(Star), R(0),
54 /* 49 E> */ B(StackCheck), 60 /* 49 E> */ B(StackCheck),
55 /* 56 S> */ B(Ldar), R(0), 61 /* 56 S> */ B(LdaConstant), U8(0),
56 B(ToBooleanLogicalNot), 62 B(Star), R(1),
63 B(Ldar), R(0),
64 /* 61 E> */ B(ToBooleanLogicalNot),
57 B(Star), R(0), 65 B(Star), R(0),
58 /* 74 S> */ B(LdaFalse), 66 /* 74 S> */ B(LdaFalse),
59 /* 74 E> */ B(TestEqual), R(0), U8(2), 67 /* 74 E> */ B(TestEqual), R(0), U8(6),
60 B(JumpIfFalse), U8(5), 68 B(JumpIfFalse), U8(5),
61 B(JumpLoop), U8(12), I8(0), 69 B(JumpLoop), U8(16), I8(0),
62 /* 85 S> */ B(Ldar), R(0), 70 /* 85 S> */ B(Ldar), R(0),
63 /* 95 S> */ B(Return), 71 /* 95 S> */ B(Return),
64 ] 72 ]
65 constant pool: [ 73 constant pool: [
74 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
66 ] 75 ]
67 handlers: [ 76 handlers: [
68 ] 77 ]
69 78
70 --- 79 ---
71 snippet: " 80 snippet: "
72 var x = 101; 81 var x = 101;
73 return void(x * 3); 82 return void(x * 3);
74 " 83 "
75 frame size: 1 84 frame size: 2
76 parameter count: 1 85 parameter count: 1
77 bytecode array length: 12 86 bytecode array length: 16
78 bytecodes: [ 87 bytecodes: [
79 /* 30 E> */ B(StackCheck), 88 /* 30 E> */ B(StackCheck),
80 /* 42 S> */ B(LdaSmi), I8(101), 89 /* 42 S> */ B(LdaConstant), U8(0),
90 B(Star), R(1),
91 B(LdaSmi), I8(101),
81 B(Star), R(0), 92 B(Star), R(0),
82 /* 47 S> */ B(LdaSmi), I8(3), 93 /* 47 S> */ B(LdaSmi), I8(3),
83 /* 61 E> */ B(Mul), R(0), U8(2), 94 /* 61 E> */ B(Mul), R(0), U8(4),
84 B(LdaUndefined), 95 B(LdaUndefined),
85 /* 67 S> */ B(Return), 96 /* 67 S> */ B(Return),
86 ] 97 ]
87 constant pool: [ 98 constant pool: [
99 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
88 ] 100 ]
89 handlers: [ 101 handlers: [
90 ] 102 ]
91 103
92 --- 104 ---
93 snippet: " 105 snippet: "
94 var x = 1234; 106 var x = 1234;
95 var y = void (x * x - 1); 107 var y = void (x * x - 1);
96 return y; 108 return y;
97 " 109 "
98 frame size: 3 110 frame size: 4
99 parameter count: 1 111 parameter count: 1
100 bytecode array length: 22 112 bytecode array length: 31
101 bytecodes: [ 113 bytecodes: [
102 /* 30 E> */ B(StackCheck), 114 /* 30 E> */ B(StackCheck),
103 /* 42 S> */ B(Wide), B(LdaSmi), I16(1234), 115 /* 42 S> */ B(LdaConstant), U8(0),
116 B(Star), R(2),
117 B(Wide), B(LdaSmi), I16(1234),
104 B(Star), R(0), 118 B(Star), R(0),
105 /* 56 S> */ B(Nop), 119 /* 56 S> */ B(LdaConstant), U8(1),
106 /* 64 E> */ B(Mul), R(0), U8(2),
107 B(Star), R(2), 120 B(Star), R(2),
108 /* 68 E> */ B(SubSmi), I8(1), R(2), U8(3), 121 B(Ldar), R(0),
122 /* 64 E> */ B(Mul), R(0), U8(4),
123 B(Star), R(3),
124 /* 68 E> */ B(SubSmi), I8(1), R(3), U8(5),
109 B(LdaUndefined), 125 B(LdaUndefined),
110 B(Star), R(1), 126 B(Star), R(1),
111 /* 74 S> */ B(Nop), 127 /* 74 S> */ B(Nop),
112 /* 84 S> */ B(Return), 128 /* 84 S> */ B(Return),
113 ] 129 ]
114 constant pool: [ 130 constant pool: [
131 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
132 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y"],
115 ] 133 ]
116 handlers: [ 134 handlers: [
117 ] 135 ]
118 136
119 --- 137 ---
120 snippet: " 138 snippet: "
121 var x = 13; 139 var x = 13;
122 return ~x; 140 return ~x;
123 " 141 "
124 frame size: 1 142 frame size: 2
125 parameter count: 1 143 parameter count: 1
126 bytecode array length: 11 144 bytecode array length: 15
127 bytecodes: [ 145 bytecodes: [
128 /* 30 E> */ B(StackCheck), 146 /* 30 E> */ B(StackCheck),
129 /* 42 S> */ B(LdaSmi), I8(13), 147 /* 42 S> */ B(LdaConstant), U8(0),
148 B(Star), R(1),
149 B(LdaSmi), I8(13),
130 B(Star), R(0), 150 B(Star), R(0),
131 /* 46 S> */ B(LdaSmi), I8(-1), 151 /* 46 S> */ B(LdaSmi), I8(-1),
132 /* 53 E> */ B(BitwiseXor), R(0), U8(2), 152 /* 53 E> */ B(BitwiseXor), R(0), U8(4),
133 /* 57 S> */ B(Return), 153 /* 57 S> */ B(Return),
134 ] 154 ]
135 constant pool: [ 155 constant pool: [
156 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
136 ] 157 ]
137 handlers: [ 158 handlers: [
138 ] 159 ]
139 160
140 --- 161 ---
141 snippet: " 162 snippet: "
142 var x = 13; 163 var x = 13;
143 return +x; 164 return +x;
144 " 165 "
145 frame size: 1 166 frame size: 2
146 parameter count: 1 167 parameter count: 1
147 bytecode array length: 11 168 bytecode array length: 15
148 bytecodes: [ 169 bytecodes: [
149 /* 30 E> */ B(StackCheck), 170 /* 30 E> */ B(StackCheck),
150 /* 42 S> */ B(LdaSmi), I8(13), 171 /* 42 S> */ B(LdaConstant), U8(0),
172 B(Star), R(1),
173 B(LdaSmi), I8(13),
151 B(Star), R(0), 174 B(Star), R(0),
152 /* 46 S> */ B(LdaSmi), I8(1), 175 /* 46 S> */ B(LdaSmi), I8(1),
153 /* 53 E> */ B(Mul), R(0), U8(2), 176 /* 53 E> */ B(Mul), R(0), U8(4),
154 /* 57 S> */ B(Return), 177 /* 57 S> */ B(Return),
155 ] 178 ]
156 constant pool: [ 179 constant pool: [
180 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
157 ] 181 ]
158 handlers: [ 182 handlers: [
159 ] 183 ]
160 184
161 --- 185 ---
162 snippet: " 186 snippet: "
163 var x = 13; 187 var x = 13;
164 return -x; 188 return -x;
165 " 189 "
166 frame size: 1 190 frame size: 2
167 parameter count: 1 191 parameter count: 1
168 bytecode array length: 11 192 bytecode array length: 15
169 bytecodes: [ 193 bytecodes: [
170 /* 30 E> */ B(StackCheck), 194 /* 30 E> */ B(StackCheck),
171 /* 42 S> */ B(LdaSmi), I8(13), 195 /* 42 S> */ B(LdaConstant), U8(0),
196 B(Star), R(1),
197 B(LdaSmi), I8(13),
172 B(Star), R(0), 198 B(Star), R(0),
173 /* 46 S> */ B(LdaSmi), I8(-1), 199 /* 46 S> */ B(LdaSmi), I8(-1),
174 /* 53 E> */ B(Mul), R(0), U8(2), 200 /* 53 E> */ B(Mul), R(0), U8(4),
175 /* 57 S> */ B(Return), 201 /* 57 S> */ B(Return),
176 ] 202 ]
177 constant pool: [ 203 constant pool: [
204 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
178 ] 205 ]
179 handlers: [ 206 handlers: [
180 ] 207 ]
181 208
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698