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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/CountOperators.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 a = 1; return ++a; 10 var a = 1; return ++a;
11 " 11 "
12 frame size: 1 12 frame size: 2
13 parameter count: 1 13 parameter count: 1
14 bytecode array length: 10 14 bytecode array length: 14
15 bytecodes: [ 15 bytecodes: [
16 /* 30 E> */ B(StackCheck), 16 /* 30 E> */ B(StackCheck),
17 /* 42 S> */ B(LdaSmi), I8(1), 17 /* 42 S> */ B(LdaConstant), U8(0),
18 B(Star), R(1),
19 B(LdaSmi), I8(1),
18 B(Star), R(0), 20 B(Star), R(0),
19 /* 45 S> */ B(Inc), U8(2), 21 /* 45 S> */ B(Inc), U8(4),
20 B(Star), R(0), 22 B(Star), R(0),
21 /* 57 S> */ B(Return), 23 /* 57 S> */ B(Return),
22 ] 24 ]
23 constant pool: [ 25 constant pool: [
26 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
24 ] 27 ]
25 handlers: [ 28 handlers: [
26 ] 29 ]
27 30
28 --- 31 ---
29 snippet: " 32 snippet: "
30 var a = 1; return a++; 33 var a = 1; return a++;
31 " 34 "
32 frame size: 2 35 frame size: 2
33 parameter count: 1 36 parameter count: 1
34 bytecode array length: 16 37 bytecode array length: 20
35 bytecodes: [ 38 bytecodes: [
36 /* 30 E> */ B(StackCheck), 39 /* 30 E> */ B(StackCheck),
37 /* 42 S> */ B(LdaSmi), I8(1), 40 /* 42 S> */ B(LdaConstant), U8(0),
41 B(Star), R(1),
42 B(LdaSmi), I8(1),
38 B(Star), R(0), 43 B(Star), R(0),
39 /* 45 S> */ B(ToNumber), R(1), 44 /* 45 S> */ B(ToNumber), R(1),
40 B(Ldar), R(1), 45 B(Ldar), R(1),
41 B(Inc), U8(2), 46 B(Inc), U8(4),
42 B(Star), R(0), 47 B(Star), R(0),
43 B(Ldar), R(1), 48 B(Ldar), R(1),
44 /* 57 S> */ B(Return), 49 /* 57 S> */ B(Return),
45 ] 50 ]
46 constant pool: [ 51 constant pool: [
52 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
47 ] 53 ]
48 handlers: [ 54 handlers: [
49 ] 55 ]
50 56
51 --- 57 ---
52 snippet: " 58 snippet: "
53 var a = 1; return --a; 59 var a = 1; return --a;
54 " 60 "
55 frame size: 1 61 frame size: 2
56 parameter count: 1 62 parameter count: 1
57 bytecode array length: 10 63 bytecode array length: 14
58 bytecodes: [ 64 bytecodes: [
59 /* 30 E> */ B(StackCheck), 65 /* 30 E> */ B(StackCheck),
60 /* 42 S> */ B(LdaSmi), I8(1), 66 /* 42 S> */ B(LdaConstant), U8(0),
67 B(Star), R(1),
68 B(LdaSmi), I8(1),
61 B(Star), R(0), 69 B(Star), R(0),
62 /* 45 S> */ B(Dec), U8(2), 70 /* 45 S> */ B(Dec), U8(4),
63 B(Star), R(0), 71 B(Star), R(0),
64 /* 57 S> */ B(Return), 72 /* 57 S> */ B(Return),
65 ] 73 ]
66 constant pool: [ 74 constant pool: [
75 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
67 ] 76 ]
68 handlers: [ 77 handlers: [
69 ] 78 ]
70 79
71 --- 80 ---
72 snippet: " 81 snippet: "
73 var a = 1; return a--; 82 var a = 1; return a--;
74 " 83 "
75 frame size: 2 84 frame size: 2
76 parameter count: 1 85 parameter count: 1
77 bytecode array length: 16 86 bytecode array length: 20
78 bytecodes: [ 87 bytecodes: [
79 /* 30 E> */ B(StackCheck), 88 /* 30 E> */ B(StackCheck),
80 /* 42 S> */ B(LdaSmi), I8(1), 89 /* 42 S> */ B(LdaConstant), U8(0),
90 B(Star), R(1),
91 B(LdaSmi), I8(1),
81 B(Star), R(0), 92 B(Star), R(0),
82 /* 45 S> */ B(ToNumber), R(1), 93 /* 45 S> */ B(ToNumber), R(1),
83 B(Ldar), R(1), 94 B(Ldar), R(1),
84 B(Dec), U8(2), 95 B(Dec), U8(4),
85 B(Star), R(0), 96 B(Star), R(0),
86 B(Ldar), R(1), 97 B(Ldar), R(1),
87 /* 57 S> */ B(Return), 98 /* 57 S> */ B(Return),
88 ] 99 ]
89 constant pool: [ 100 constant pool: [
101 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
90 ] 102 ]
91 handlers: [ 103 handlers: [
92 ] 104 ]
93 105
94 --- 106 ---
95 snippet: " 107 snippet: "
96 var a = { val: 1 }; return a.val++; 108 var a = { val: 1 }; return a.val++;
97 " 109 "
98 frame size: 3 110 frame size: 3
99 parameter count: 1 111 parameter count: 1
100 bytecode array length: 26 112 bytecode array length: 30
101 bytecodes: [ 113 bytecodes: [
102 /* 30 E> */ B(StackCheck), 114 /* 30 E> */ B(StackCheck),
103 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1), 115 /* 42 S> */ B(LdaConstant), U8(0),
104 B(Mov), R(1), R(0), 116 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2),
105 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(3), 117 B(Star), R(1),
118 B(Mov), R(2), R(0),
119 /* 54 S> */ B(LdaNamedProperty), R(0), U8(2), U8(5),
106 B(ToNumber), R(2), 120 B(ToNumber), R(2),
107 B(Ldar), R(2), 121 B(Ldar), R(2),
108 B(Inc), U8(7), 122 B(Inc), U8(9),
109 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(5), 123 /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(7),
110 B(Ldar), R(2), 124 B(Ldar), R(2),
111 /* 70 S> */ B(Return), 125 /* 70 S> */ B(Return),
112 ] 126 ]
113 constant pool: [ 127 constant pool: [
128 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
114 FIXED_ARRAY_TYPE, 129 FIXED_ARRAY_TYPE,
115 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], 130 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
116 ] 131 ]
117 handlers: [ 132 handlers: [
118 ] 133 ]
119 134
120 --- 135 ---
121 snippet: " 136 snippet: "
122 var a = { val: 1 }; return --a.val; 137 var a = { val: 1 }; return --a.val;
123 " 138 "
124 frame size: 2 139 frame size: 3
125 parameter count: 1 140 parameter count: 1
126 bytecode array length: 20 141 bytecode array length: 24
127 bytecodes: [ 142 bytecodes: [
128 /* 30 E> */ B(StackCheck), 143 /* 30 E> */ B(StackCheck),
129 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1), 144 /* 42 S> */ B(LdaConstant), U8(0),
130 B(Mov), R(1), R(0), 145 B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2),
131 /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(3), 146 B(Star), R(1),
132 B(Dec), U8(7), 147 B(Mov), R(2), R(0),
133 /* 65 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(5), 148 /* 54 S> */ B(LdaNamedProperty), R(0), U8(2), U8(5),
149 B(Dec), U8(9),
150 /* 65 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(7),
134 /* 70 S> */ B(Return), 151 /* 70 S> */ B(Return),
135 ] 152 ]
136 constant pool: [ 153 constant pool: [
154 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
137 FIXED_ARRAY_TYPE, 155 FIXED_ARRAY_TYPE,
138 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"], 156 ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
139 ] 157 ]
140 handlers: [ 158 handlers: [
141 ] 159 ]
142 160
143 --- 161 ---
144 snippet: " 162 snippet: "
145 var name = 'var'; var a = { val: 1 }; return a[name]--; 163 var name = 'var'; var a = { val: 1 }; return a[name]--;
146 " 164 "
147 frame size: 5 165 frame size: 5
148 parameter count: 1 166 parameter count: 1
149 bytecode array length: 31 167 bytecode array length: 39
150 bytecodes: [ 168 bytecodes: [
151 /* 30 E> */ B(StackCheck), 169 /* 30 E> */ B(StackCheck),
152 /* 45 S> */ B(LdaConstant), U8(0), 170 /* 45 S> */ B(LdaConstant), U8(0),
171 B(Star), R(2),
172 B(LdaConstant), U8(1),
153 B(Star), R(0), 173 B(Star), R(0),
154 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2), 174 /* 60 S> */ B(LdaConstant), U8(2),
155 B(Mov), R(2), R(1), 175 B(CreateObjectLiteral), U8(3), U8(4), U8(1), R(3),
176 B(Star), R(2),
177 B(Mov), R(3), R(1),
156 /* 72 S> */ B(Ldar), R(0), 178 /* 72 S> */ B(Ldar), R(0),
157 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(3), 179 /* 81 E> */ B(LdaKeyedProperty), R(1), U8(7),
158 B(ToNumber), R(4), 180 B(ToNumber), R(4),
159 B(Ldar), R(4), 181 B(Ldar), R(4),
160 B(Dec), U8(7), 182 B(Dec), U8(11),
161 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(5), 183 /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(9),
162 B(Ldar), R(4), 184 B(Ldar), R(4),
163 /* 90 S> */ B(Return), 185 /* 90 S> */ B(Return),
164 ] 186 ]
165 constant pool: [ 187 constant pool: [
188 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
166 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var"], 189 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var"],
190 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
167 FIXED_ARRAY_TYPE, 191 FIXED_ARRAY_TYPE,
168 ] 192 ]
169 handlers: [ 193 handlers: [
170 ] 194 ]
171 195
172 --- 196 ---
173 snippet: " 197 snippet: "
174 var name = 'var'; var a = { val: 1 }; return ++a[name]; 198 var name = 'var'; var a = { val: 1 }; return ++a[name];
175 " 199 "
176 frame size: 3 200 frame size: 4
177 parameter count: 1 201 parameter count: 1
178 bytecode array length: 25 202 bytecode array length: 33
179 bytecodes: [ 203 bytecodes: [
180 /* 30 E> */ B(StackCheck), 204 /* 30 E> */ B(StackCheck),
181 /* 45 S> */ B(LdaConstant), U8(0), 205 /* 45 S> */ B(LdaConstant), U8(0),
206 B(Star), R(2),
207 B(LdaConstant), U8(1),
182 B(Star), R(0), 208 B(Star), R(0),
183 /* 60 S> */ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2), 209 /* 60 S> */ B(LdaConstant), U8(2),
184 B(Mov), R(2), R(1), 210 B(CreateObjectLiteral), U8(3), U8(4), U8(1), R(3),
211 B(Star), R(2),
212 B(Mov), R(3), R(1),
185 /* 72 S> */ B(Ldar), R(0), 213 /* 72 S> */ B(Ldar), R(0),
186 /* 83 E> */ B(LdaKeyedProperty), R(1), U8(3), 214 /* 83 E> */ B(LdaKeyedProperty), R(1), U8(7),
187 B(Inc), U8(7), 215 B(Inc), U8(11),
188 /* 87 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(5), 216 /* 87 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(9),
189 /* 90 S> */ B(Return), 217 /* 90 S> */ B(Return),
190 ] 218 ]
191 constant pool: [ 219 constant pool: [
220 ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
192 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var"], 221 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var"],
222 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
193 FIXED_ARRAY_TYPE, 223 FIXED_ARRAY_TYPE,
194 ] 224 ]
195 handlers: [ 225 handlers: [
196 ] 226 ]
197 227
198 --- 228 ---
199 snippet: " 229 snippet: "
200 var a = 1; var b = function() { return a }; return ++a; 230 var a = 1; var b = function() { return a }; return ++a;
201 " 231 "
202 frame size: 2 232 frame size: 3
203 parameter count: 1 233 parameter count: 1
204 bytecode array length: 22 234 bytecode array length: 30
205 bytecodes: [ 235 bytecodes: [
206 B(CreateFunctionContext), U8(1), 236 B(CreateFunctionContext), U8(1),
207 B(PushContext), R(1), 237 B(PushContext), R(1),
208 /* 30 E> */ B(StackCheck), 238 /* 30 E> */ B(StackCheck),
209 /* 42 S> */ B(LdaSmi), I8(1), 239 /* 42 S> */ B(LdaConstant), U8(0),
240 B(Star), R(2),
241 B(LdaSmi), I8(1),
210 /* 42 E> */ B(StaCurrentContextSlot), U8(4), 242 /* 42 E> */ B(StaCurrentContextSlot), U8(4),
211 /* 53 S> */ B(CreateClosure), U8(0), U8(2), U8(2), 243 /* 53 S> */ B(LdaConstant), U8(1),
244 B(Star), R(2),
245 B(CreateClosure), U8(2), U8(4), U8(2),
212 B(Star), R(0), 246 B(Star), R(0),
213 /* 78 S> */ B(LdaCurrentContextSlot), U8(4), 247 /* 78 S> */ B(LdaCurrentContextSlot), U8(4),
214 B(Inc), U8(3), 248 B(Inc), U8(7),
215 /* 87 E> */ B(StaCurrentContextSlot), U8(4), 249 /* 87 E> */ B(StaCurrentContextSlot), U8(4),
216 /* 90 S> */ B(Return), 250 /* 90 S> */ B(Return),
217 ] 251 ]
218 constant pool: [ 252 constant pool: [
253 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
254 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
219 SHARED_FUNCTION_INFO_TYPE, 255 SHARED_FUNCTION_INFO_TYPE,
220 ] 256 ]
221 handlers: [ 257 handlers: [
222 ] 258 ]
223 259
224 --- 260 ---
225 snippet: " 261 snippet: "
226 var a = 1; var b = function() { return a }; return a--; 262 var a = 1; var b = function() { return a }; return a--;
227 " 263 "
228 frame size: 3 264 frame size: 3
229 parameter count: 1 265 parameter count: 1
230 bytecode array length: 28 266 bytecode array length: 36
231 bytecodes: [ 267 bytecodes: [
232 B(CreateFunctionContext), U8(1), 268 B(CreateFunctionContext), U8(1),
233 B(PushContext), R(1), 269 B(PushContext), R(1),
234 /* 30 E> */ B(StackCheck), 270 /* 30 E> */ B(StackCheck),
235 /* 42 S> */ B(LdaSmi), I8(1), 271 /* 42 S> */ B(LdaConstant), U8(0),
272 B(Star), R(2),
273 B(LdaSmi), I8(1),
236 /* 42 E> */ B(StaCurrentContextSlot), U8(4), 274 /* 42 E> */ B(StaCurrentContextSlot), U8(4),
237 /* 53 S> */ B(CreateClosure), U8(0), U8(2), U8(2), 275 /* 53 S> */ B(LdaConstant), U8(1),
276 B(Star), R(2),
277 B(CreateClosure), U8(2), U8(4), U8(2),
238 B(Star), R(0), 278 B(Star), R(0),
239 /* 78 S> */ B(LdaCurrentContextSlot), U8(4), 279 /* 78 S> */ B(LdaCurrentContextSlot), U8(4),
240 B(ToNumber), R(2), 280 B(ToNumber), R(2),
241 B(Ldar), R(2), 281 B(Ldar), R(2),
242 B(Dec), U8(3), 282 B(Dec), U8(7),
243 /* 86 E> */ B(StaCurrentContextSlot), U8(4), 283 /* 86 E> */ B(StaCurrentContextSlot), U8(4),
244 B(Ldar), R(2), 284 B(Ldar), R(2),
245 /* 90 S> */ B(Return), 285 /* 90 S> */ B(Return),
246 ] 286 ]
247 constant pool: [ 287 constant pool: [
288 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
289 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
248 SHARED_FUNCTION_INFO_TYPE, 290 SHARED_FUNCTION_INFO_TYPE,
249 ] 291 ]
250 handlers: [ 292 handlers: [
251 ] 293 ]
252 294
253 --- 295 ---
254 snippet: " 296 snippet: "
255 var idx = 1; var a = [1, 2]; return a[idx++] = 2; 297 var idx = 1; var a = [1, 2]; return a[idx++] = 2;
256 " 298 "
257 frame size: 4 299 frame size: 6
258 parameter count: 1 300 parameter count: 1
259 bytecode array length: 28 301 bytecode array length: 46
260 bytecodes: [ 302 bytecodes: [
261 /* 30 E> */ B(StackCheck), 303 /* 30 E> */ B(StackCheck),
262 /* 44 S> */ B(LdaSmi), I8(1), 304 /* 44 S> */ B(LdaConstant), U8(0),
305 B(Star), R(2),
306 B(LdaSmi), I8(1),
263 B(Star), R(0), 307 B(Star), R(0),
264 /* 55 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(9), 308 /* 55 S> */ B(LdaConstant), U8(1),
309 B(Star), R(2),
310 B(CreateArrayLiteral), U8(2), U8(4), U8(9),
265 B(Star), R(1), 311 B(Star), R(1),
266 /* 63 S> */ B(Ldar), R(0), 312 /* 63 S> */ B(Ldar), R(0),
267 B(ToNumber), R(3), 313 B(ToNumber), R(4),
268 B(Ldar), R(3), 314 B(Ldar), R(4),
269 B(Inc), U8(3), 315 B(Inc), U8(7),
316 B(Star), R(0),
317 B(Ldar), R(0),
318 /* 75 E> */ B(ToNumber), R(5),
319 B(Ldar), R(5),
320 B(Inc), U8(7),
270 B(Star), R(0), 321 B(Star), R(0),
271 B(LdaSmi), I8(2), 322 B(LdaSmi), I8(2),
272 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(4), 323 /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(4), U8(8),
273 /* 84 S> */ B(Return), 324 /* 84 S> */ B(Return),
274 ] 325 ]
275 constant pool: [ 326 constant pool: [
327 ONE_BYTE_INTERNALIZED_STRING_TYPE ["idx"],
328 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
276 CONSTANT_ELEMENTS_PAIR_TYPE, 329 CONSTANT_ELEMENTS_PAIR_TYPE,
277 ] 330 ]
278 handlers: [ 331 handlers: [
279 ] 332 ]
280 333
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698