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

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

Issue 2263253002: [interpreter] Make the binary op with Smi bytecode handlers collect type feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. Created 4 years, 4 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 pool type: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 while (x < 10) { 58 while (x < 10) {
59 y = y * 12; 59 y = y * 12;
60 x = x + 1; 60 x = x + 1;
61 if (x == 3) continue; 61 if (x == 3) continue;
62 if (x == 4) break; 62 if (x == 4) break;
63 } 63 }
64 return y; 64 return y;
65 " 65 "
66 frame size: 2 66 frame size: 2
67 parameter count: 1 67 parameter count: 1
68 bytecode array length: 48 68 bytecode array length: 49
69 bytecodes: [ 69 bytecodes: [
70 /* 30 E> */ B(StackCheck), 70 /* 30 E> */ B(StackCheck),
71 /* 42 S> */ B(LdaZero), 71 /* 42 S> */ B(LdaZero),
72 B(Star), R(0), 72 B(Star), R(0),
73 /* 53 S> */ B(LdaSmi), U8(1), 73 /* 53 S> */ B(LdaSmi), U8(1),
74 B(Star), R(1), 74 B(Star), R(1),
75 /* 65 S> */ B(LdaSmi), U8(10), 75 /* 65 S> */ B(LdaSmi), U8(10),
76 /* 65 E> */ B(TestLessThan), R(0), 76 /* 65 E> */ B(TestLessThan), R(0),
77 B(JumpIfFalse), U8(33), 77 B(JumpIfFalse), U8(34),
78 /* 56 E> */ B(StackCheck), 78 /* 56 E> */ B(StackCheck),
79 /* 75 S> */ B(LdaSmi), U8(12), 79 /* 75 S> */ B(LdaSmi), U8(12),
80 B(Mul), R(1), U8(1), 80 B(Mul), R(1), U8(1),
81 B(Star), R(1), 81 B(Star), R(1),
82 /* 89 S> */ B(AddSmi), U8(1), R(0), 82 /* 89 S> */ B(AddSmi), U8(1), R(0), U8(2),
83 B(Star), R(0), 83 B(Star), R(0),
84 /* 102 S> */ B(LdaSmi), U8(3), 84 /* 102 S> */ B(LdaSmi), U8(3),
85 /* 108 E> */ B(TestEqual), R(0), 85 /* 108 E> */ B(TestEqual), R(0),
86 B(JumpIfFalse), U8(4), 86 B(JumpIfFalse), U8(4),
87 /* 114 S> */ B(Jump), U8(10), 87 /* 114 S> */ B(Jump), U8(10),
88 /* 126 S> */ B(LdaSmi), U8(4), 88 /* 126 S> */ B(LdaSmi), U8(4),
89 /* 132 E> */ B(TestEqual), R(0), 89 /* 132 E> */ B(TestEqual), R(0),
90 B(JumpIfFalse), U8(4), 90 B(JumpIfFalse), U8(4),
91 /* 138 S> */ B(Jump), U8(4), 91 /* 138 S> */ B(Jump), U8(4),
92 B(Jump), U8(-35), 92 B(Jump), U8(-36),
93 /* 147 S> */ B(Ldar), R(1), 93 /* 147 S> */ B(Ldar), R(1),
94 /* 157 S> */ B(Return), 94 /* 157 S> */ B(Return),
95 ] 95 ]
96 constant pool: [ 96 constant pool: [
97 ] 97 ]
98 handlers: [ 98 handlers: [
99 ] 99 ]
100 100
101 --- 101 ---
102 snippet: " 102 snippet: "
103 var i = 0; 103 var i = 0;
104 while (true) { 104 while (true) {
105 if (i < 0) continue; 105 if (i < 0) continue;
106 if (i == 3) break; 106 if (i == 3) break;
107 if (i == 4) break; 107 if (i == 4) break;
108 if (i == 10) continue; 108 if (i == 10) continue;
109 if (i == 5) break; 109 if (i == 5) break;
110 i = i + 1; 110 i = i + 1;
111 } 111 }
112 return i; 112 return i;
113 " 113 "
114 frame size: 1 114 frame size: 1
115 parameter count: 1 115 parameter count: 1
116 bytecode array length: 54 116 bytecode array length: 55
117 bytecodes: [ 117 bytecodes: [
118 /* 30 E> */ B(StackCheck), 118 /* 30 E> */ B(StackCheck),
119 /* 42 S> */ B(LdaZero), 119 /* 42 S> */ B(LdaZero),
120 B(Star), R(0), 120 B(Star), R(0),
121 /* 45 E> */ B(StackCheck), 121 /* 45 E> */ B(StackCheck),
122 /* 62 S> */ B(LdaZero), 122 /* 62 S> */ B(LdaZero),
123 /* 68 E> */ B(TestLessThan), R(0), 123 /* 68 E> */ B(TestLessThan), R(0),
124 B(JumpIfFalse), U8(4), 124 B(JumpIfFalse), U8(4),
125 /* 73 S> */ B(Jump), U8(39), 125 /* 73 S> */ B(Jump), U8(40),
126 /* 85 S> */ B(LdaSmi), U8(3), 126 /* 85 S> */ B(LdaSmi), U8(3),
127 /* 91 E> */ B(TestEqual), R(0), 127 /* 91 E> */ B(TestEqual), R(0),
128 B(JumpIfFalse), U8(4), 128 B(JumpIfFalse), U8(4),
129 /* 97 S> */ B(Jump), U8(33), 129 /* 97 S> */ B(Jump), U8(34),
130 /* 106 S> */ B(LdaSmi), U8(4), 130 /* 106 S> */ B(LdaSmi), U8(4),
131 /* 112 E> */ B(TestEqual), R(0), 131 /* 112 E> */ B(TestEqual), R(0),
132 B(JumpIfFalse), U8(4), 132 B(JumpIfFalse), U8(4),
133 /* 118 S> */ B(Jump), U8(25), 133 /* 118 S> */ B(Jump), U8(26),
134 /* 127 S> */ B(LdaSmi), U8(10), 134 /* 127 S> */ B(LdaSmi), U8(10),
135 /* 133 E> */ B(TestEqual), R(0), 135 /* 133 E> */ B(TestEqual), R(0),
136 B(JumpIfFalse), U8(4), 136 B(JumpIfFalse), U8(4),
137 /* 140 S> */ B(Jump), U8(15), 137 /* 140 S> */ B(Jump), U8(16),
138 /* 152 S> */ B(LdaSmi), U8(5), 138 /* 152 S> */ B(LdaSmi), U8(5),
139 /* 158 E> */ B(TestEqual), R(0), 139 /* 158 E> */ B(TestEqual), R(0),
140 B(JumpIfFalse), U8(4), 140 B(JumpIfFalse), U8(4),
141 /* 164 S> */ B(Jump), U8(9), 141 /* 164 S> */ B(Jump), U8(10),
142 /* 173 S> */ B(AddSmi), U8(1), R(0), 142 /* 173 S> */ B(AddSmi), U8(1), R(0), U8(1),
143 B(Star), R(0), 143 B(Star), R(0),
144 B(Jump), U8(-45), 144 B(Jump), U8(-46),
145 /* 186 S> */ B(Ldar), R(0), 145 /* 186 S> */ B(Ldar), R(0),
146 /* 196 S> */ B(Return), 146 /* 196 S> */ B(Return),
147 ] 147 ]
148 constant pool: [ 148 constant pool: [
149 ] 149 ]
150 handlers: [ 150 handlers: [
151 ] 151 ]
152 152
153 --- 153 ---
154 snippet: " 154 snippet: "
155 var i = 0; 155 var i = 0;
156 while (true) { 156 while (true) {
157 while (i < 3) { 157 while (i < 3) {
158 if (i == 2) break; 158 if (i == 2) break;
159 i = i + 1; 159 i = i + 1;
160 } 160 }
161 i = i + 1; 161 i = i + 1;
162 break; 162 break;
163 } 163 }
164 return i; 164 return i;
165 " 165 "
166 frame size: 1 166 frame size: 1
167 parameter count: 1 167 parameter count: 1
168 bytecode array length: 37 168 bytecode array length: 39
169 bytecodes: [ 169 bytecodes: [
170 /* 30 E> */ B(StackCheck), 170 /* 30 E> */ B(StackCheck),
171 /* 42 S> */ B(LdaZero), 171 /* 42 S> */ B(LdaZero),
172 B(Star), R(0), 172 B(Star), R(0),
173 /* 45 E> */ B(StackCheck), 173 /* 45 E> */ B(StackCheck),
174 /* 71 S> */ B(LdaSmi), U8(3), 174 /* 71 S> */ B(LdaSmi), U8(3),
175 /* 71 E> */ B(TestLessThan), R(0), 175 /* 71 E> */ B(TestLessThan), R(0),
176 B(JumpIfFalse), U8(18), 176 B(JumpIfFalse), U8(19),
177 /* 62 E> */ B(StackCheck), 177 /* 62 E> */ B(StackCheck),
178 /* 82 S> */ B(LdaSmi), U8(2), 178 /* 82 S> */ B(LdaSmi), U8(2),
179 /* 88 E> */ B(TestEqual), R(0), 179 /* 88 E> */ B(TestEqual), R(0),
180 B(JumpIfFalse), U8(4), 180 B(JumpIfFalse), U8(4),
181 /* 94 S> */ B(Jump), U8(9), 181 /* 94 S> */ B(Jump), U8(10),
182 /* 105 S> */ B(AddSmi), U8(1), R(0), 182 /* 105 S> */ B(AddSmi), U8(1), R(0), U8(1),
183 B(Star), R(0), 183 B(Star), R(0),
184 B(Jump), U8(-20), 184 B(Jump), U8(-21),
185 /* 122 S> */ B(AddSmi), U8(1), R(0), 185 /* 122 S> */ B(AddSmi), U8(1), R(0), U8(2),
186 B(Star), R(0), 186 B(Star), R(0),
187 /* 135 S> */ B(Jump), U8(2), 187 /* 135 S> */ B(Jump), U8(2),
188 /* 144 S> */ B(Ldar), R(0), 188 /* 144 S> */ B(Ldar), R(0),
189 /* 154 S> */ B(Return), 189 /* 154 S> */ B(Return),
190 ] 190 ]
191 constant pool: [ 191 constant pool: [
192 ] 192 ]
193 handlers: [ 193 handlers: [
194 ] 194 ]
195 195
196 --- 196 ---
197 snippet: " 197 snippet: "
198 var x = 10; 198 var x = 10;
199 var y = 1; 199 var y = 1;
200 while (x) { 200 while (x) {
201 y = y * 12; 201 y = y * 12;
202 x = x - 1; 202 x = x - 1;
203 } 203 }
204 return y; 204 return y;
205 " 205 "
206 frame size: 2 206 frame size: 2
207 parameter count: 1 207 parameter count: 1
208 bytecode array length: 31 208 bytecode array length: 32
209 bytecodes: [ 209 bytecodes: [
210 /* 30 E> */ B(StackCheck), 210 /* 30 E> */ B(StackCheck),
211 /* 42 S> */ B(LdaSmi), U8(10), 211 /* 42 S> */ B(LdaSmi), U8(10),
212 B(Star), R(0), 212 B(Star), R(0),
213 /* 54 S> */ B(LdaSmi), U8(1), 213 /* 54 S> */ B(LdaSmi), U8(1),
214 B(Star), R(1), 214 B(Star), R(1),
215 /* 64 S> */ B(Ldar), R(0), 215 /* 64 S> */ B(Ldar), R(0),
216 B(JumpIfToBooleanFalse), U8(17), 216 B(JumpIfToBooleanFalse), U8(18),
217 /* 57 E> */ B(StackCheck), 217 /* 57 E> */ B(StackCheck),
218 /* 71 S> */ B(LdaSmi), U8(12), 218 /* 71 S> */ B(LdaSmi), U8(12),
219 B(Mul), R(1), U8(1), 219 B(Mul), R(1), U8(1),
220 B(Star), R(1), 220 B(Star), R(1),
221 /* 85 S> */ B(SubSmi), U8(1), R(0), 221 /* 85 S> */ B(SubSmi), U8(1), R(0), U8(2),
222 B(Star), R(0), 222 B(Star), R(0),
223 B(Jump), U8(-17), 223 B(Jump), U8(-18),
224 /* 98 S> */ B(Ldar), R(1), 224 /* 98 S> */ B(Ldar), R(1),
225 /* 108 S> */ B(Return), 225 /* 108 S> */ B(Return),
226 ] 226 ]
227 constant pool: [ 227 constant pool: [
228 ] 228 ]
229 handlers: [ 229 handlers: [
230 ] 230 ]
231 231
232 --- 232 ---
233 snippet: " 233 snippet: "
234 var x = 0; var y = 1; 234 var x = 0; var y = 1;
235 do { 235 do {
236 y = y * 10; 236 y = y * 10;
237 if (x == 5) break; 237 if (x == 5) break;
238 if (x == 6) continue; 238 if (x == 6) continue;
239 x = x + 1; 239 x = x + 1;
240 } while (x < 10); 240 } while (x < 10);
241 return y; 241 return y;
242 " 242 "
243 frame size: 2 243 frame size: 2
244 parameter count: 1 244 parameter count: 1
245 bytecode array length: 46 245 bytecode array length: 47
246 bytecodes: [ 246 bytecodes: [
247 /* 30 E> */ B(StackCheck), 247 /* 30 E> */ B(StackCheck),
248 /* 42 S> */ B(LdaZero), 248 /* 42 S> */ B(LdaZero),
249 B(Star), R(0), 249 B(Star), R(0),
250 /* 53 S> */ B(LdaSmi), U8(1), 250 /* 53 S> */ B(LdaSmi), U8(1),
251 B(Star), R(1), 251 B(Star), R(1),
252 /* 56 E> */ B(StackCheck), 252 /* 56 E> */ B(StackCheck),
253 /* 63 S> */ B(LdaSmi), U8(10), 253 /* 63 S> */ B(LdaSmi), U8(10),
254 B(Mul), R(1), U8(1), 254 B(Mul), R(1), U8(1),
255 B(Star), R(1), 255 B(Star), R(1),
256 /* 77 S> */ B(LdaSmi), U8(5), 256 /* 77 S> */ B(LdaSmi), U8(5),
257 /* 83 E> */ B(TestEqual), R(0), 257 /* 83 E> */ B(TestEqual), R(0),
258 B(JumpIfFalse), U8(4), 258 B(JumpIfFalse), U8(4),
259 /* 89 S> */ B(Jump), U8(21), 259 /* 89 S> */ B(Jump), U8(22),
260 /* 98 S> */ B(LdaSmi), U8(6), 260 /* 98 S> */ B(LdaSmi), U8(6),
261 /* 104 E> */ B(TestEqual), R(0), 261 /* 104 E> */ B(TestEqual), R(0),
262 B(JumpIfFalse), U8(4), 262 B(JumpIfFalse), U8(4),
263 /* 110 S> */ B(Jump), U8(7), 263 /* 110 S> */ B(Jump), U8(8),
264 /* 122 S> */ B(AddSmi), U8(1), R(0), 264 /* 122 S> */ B(AddSmi), U8(1), R(0), U8(2),
265 B(Star), R(0), 265 B(Star), R(0),
266 /* 144 S> */ B(LdaSmi), U8(10), 266 /* 144 S> */ B(LdaSmi), U8(10),
267 /* 144 E> */ B(TestLessThan), R(0), 267 /* 144 E> */ B(TestLessThan), R(0),
268 B(JumpIfTrue), U8(-33), 268 B(JumpIfTrue), U8(-34),
269 /* 151 S> */ B(Ldar), R(1), 269 /* 151 S> */ B(Ldar), R(1),
270 /* 161 S> */ B(Return), 270 /* 161 S> */ B(Return),
271 ] 271 ]
272 constant pool: [ 272 constant pool: [
273 ] 273 ]
274 handlers: [ 274 handlers: [
275 ] 275 ]
276 276
277 --- 277 ---
278 snippet: " 278 snippet: "
279 var x = 10; 279 var x = 10;
280 var y = 1; 280 var y = 1;
281 do { 281 do {
282 y = y * 12; 282 y = y * 12;
283 x = x - 1; 283 x = x - 1;
284 } while (x); 284 } while (x);
285 return y; 285 return y;
286 " 286 "
287 frame size: 2 287 frame size: 2
288 parameter count: 1 288 parameter count: 1
289 bytecode array length: 27 289 bytecode array length: 28
290 bytecodes: [ 290 bytecodes: [
291 /* 30 E> */ B(StackCheck), 291 /* 30 E> */ B(StackCheck),
292 /* 42 S> */ B(LdaSmi), U8(10), 292 /* 42 S> */ B(LdaSmi), U8(10),
293 B(Star), R(0), 293 B(Star), R(0),
294 /* 54 S> */ B(LdaSmi), U8(1), 294 /* 54 S> */ B(LdaSmi), U8(1),
295 B(Star), R(1), 295 B(Star), R(1),
296 /* 57 E> */ B(StackCheck), 296 /* 57 E> */ B(StackCheck),
297 /* 64 S> */ B(LdaSmi), U8(12), 297 /* 64 S> */ B(LdaSmi), U8(12),
298 B(Mul), R(1), U8(1), 298 B(Mul), R(1), U8(1),
299 B(Star), R(1), 299 B(Star), R(1),
300 /* 78 S> */ B(SubSmi), U8(1), R(0), 300 /* 78 S> */ B(SubSmi), U8(1), R(0), U8(2),
301 B(Star), R(0), 301 B(Star), R(0),
302 /* 98 S> */ B(JumpIfToBooleanTrue), U8(-13), 302 /* 98 S> */ B(JumpIfToBooleanTrue), U8(-14),
303 /* 102 S> */ B(Ldar), R(1), 303 /* 102 S> */ B(Ldar), R(1),
304 /* 112 S> */ B(Return), 304 /* 112 S> */ B(Return),
305 ] 305 ]
306 constant pool: [ 306 constant pool: [
307 ] 307 ]
308 handlers: [ 308 handlers: [
309 ] 309 ]
310 310
311 --- 311 ---
312 snippet: " 312 snippet: "
313 var x = 0; var y = 1; 313 var x = 0; var y = 1;
314 do { 314 do {
315 y = y * 10; 315 y = y * 10;
316 if (x == 5) break; 316 if (x == 5) break;
317 x = x + 1; 317 x = x + 1;
318 if (x == 6) continue; 318 if (x == 6) continue;
319 } while (false); 319 } while (false);
320 return y; 320 return y;
321 " 321 "
322 frame size: 2 322 frame size: 2
323 parameter count: 1 323 parameter count: 1
324 bytecode array length: 40 324 bytecode array length: 41
325 bytecodes: [ 325 bytecodes: [
326 /* 30 E> */ B(StackCheck), 326 /* 30 E> */ B(StackCheck),
327 /* 42 S> */ B(LdaZero), 327 /* 42 S> */ B(LdaZero),
328 B(Star), R(0), 328 B(Star), R(0),
329 /* 53 S> */ B(LdaSmi), U8(1), 329 /* 53 S> */ B(LdaSmi), U8(1),
330 B(Star), R(1), 330 B(Star), R(1),
331 /* 56 E> */ B(StackCheck), 331 /* 56 E> */ B(StackCheck),
332 /* 63 S> */ B(LdaSmi), U8(10), 332 /* 63 S> */ B(LdaSmi), U8(10),
333 B(Mul), R(1), U8(1), 333 B(Mul), R(1), U8(1),
334 B(Star), R(1), 334 B(Star), R(1),
335 /* 77 S> */ B(LdaSmi), U8(5), 335 /* 77 S> */ B(LdaSmi), U8(5),
336 /* 83 E> */ B(TestEqual), R(0), 336 /* 83 E> */ B(TestEqual), R(0),
337 B(JumpIfFalse), U8(4), 337 B(JumpIfFalse), U8(4),
338 /* 89 S> */ B(Jump), U8(15), 338 /* 89 S> */ B(Jump), U8(16),
339 /* 98 S> */ B(AddSmi), U8(1), R(0), 339 /* 98 S> */ B(AddSmi), U8(1), R(0), U8(2),
340 B(Star), R(0), 340 B(Star), R(0),
341 /* 111 S> */ B(LdaSmi), U8(6), 341 /* 111 S> */ B(LdaSmi), U8(6),
342 /* 117 E> */ B(TestEqual), R(0), 342 /* 117 E> */ B(TestEqual), R(0),
343 B(JumpIfFalse), U8(4), 343 B(JumpIfFalse), U8(4),
344 /* 123 S> */ B(Jump), U8(2), 344 /* 123 S> */ B(Jump), U8(2),
345 /* 150 S> */ B(Ldar), R(1), 345 /* 150 S> */ B(Ldar), R(1),
346 /* 160 S> */ B(Return), 346 /* 160 S> */ B(Return),
347 ] 347 ]
348 constant pool: [ 348 constant pool: [
349 ] 349 ]
350 handlers: [ 350 handlers: [
351 ] 351 ]
352 352
353 --- 353 ---
354 snippet: " 354 snippet: "
355 var x = 0; var y = 1; 355 var x = 0; var y = 1;
356 do { 356 do {
357 y = y * 10; 357 y = y * 10;
358 if (x == 5) break; 358 if (x == 5) break;
359 x = x + 1; 359 x = x + 1;
360 if (x == 6) continue; 360 if (x == 6) continue;
361 } while (true); 361 } while (true);
362 return y; 362 return y;
363 " 363 "
364 frame size: 2 364 frame size: 2
365 parameter count: 1 365 parameter count: 1
366 bytecode array length: 42 366 bytecode array length: 43
367 bytecodes: [ 367 bytecodes: [
368 /* 30 E> */ B(StackCheck), 368 /* 30 E> */ B(StackCheck),
369 /* 42 S> */ B(LdaZero), 369 /* 42 S> */ B(LdaZero),
370 B(Star), R(0), 370 B(Star), R(0),
371 /* 53 S> */ B(LdaSmi), U8(1), 371 /* 53 S> */ B(LdaSmi), U8(1),
372 B(Star), R(1), 372 B(Star), R(1),
373 /* 56 E> */ B(StackCheck), 373 /* 56 E> */ B(StackCheck),
374 /* 63 S> */ B(LdaSmi), U8(10), 374 /* 63 S> */ B(LdaSmi), U8(10),
375 B(Mul), R(1), U8(1), 375 B(Mul), R(1), U8(1),
376 B(Star), R(1), 376 B(Star), R(1),
377 /* 77 S> */ B(LdaSmi), U8(5), 377 /* 77 S> */ B(LdaSmi), U8(5),
378 /* 83 E> */ B(TestEqual), R(0), 378 /* 83 E> */ B(TestEqual), R(0),
379 B(JumpIfFalse), U8(4), 379 B(JumpIfFalse), U8(4),
380 /* 89 S> */ B(Jump), U8(17), 380 /* 89 S> */ B(Jump), U8(18),
381 /* 98 S> */ B(AddSmi), U8(1), R(0), 381 /* 98 S> */ B(AddSmi), U8(1), R(0), U8(2),
382 B(Star), R(0), 382 B(Star), R(0),
383 /* 111 S> */ B(LdaSmi), U8(6), 383 /* 111 S> */ B(LdaSmi), U8(6),
384 /* 117 E> */ B(TestEqual), R(0), 384 /* 117 E> */ B(TestEqual), R(0),
385 B(JumpIfFalse), U8(4), 385 B(JumpIfFalse), U8(4),
386 /* 123 S> */ B(Jump), U8(2), 386 /* 123 S> */ B(Jump), U8(2),
387 B(Jump), U8(-29), 387 B(Jump), U8(-30),
388 /* 149 S> */ B(Ldar), R(1), 388 /* 149 S> */ B(Ldar), R(1),
389 /* 159 S> */ B(Return), 389 /* 159 S> */ B(Return),
390 ] 390 ]
391 constant pool: [ 391 constant pool: [
392 ] 392 ]
393 handlers: [ 393 handlers: [
394 ] 394 ]
395 395
396 --- 396 ---
397 snippet: " 397 snippet: "
398 var x = 0; 398 var x = 0;
399 for (;;) { 399 for (;;) {
400 if (x == 1) break; 400 if (x == 1) break;
401 if (x == 2) continue; 401 if (x == 2) continue;
402 x = x + 1; 402 x = x + 1;
403 } 403 }
404 " 404 "
405 frame size: 1 405 frame size: 1
406 parameter count: 1 406 parameter count: 1
407 bytecode array length: 30 407 bytecode array length: 31
408 bytecodes: [ 408 bytecodes: [
409 /* 30 E> */ B(StackCheck), 409 /* 30 E> */ B(StackCheck),
410 /* 42 S> */ B(LdaZero), 410 /* 42 S> */ B(LdaZero),
411 B(Star), R(0), 411 B(Star), R(0),
412 /* 45 E> */ B(StackCheck), 412 /* 45 E> */ B(StackCheck),
413 /* 58 S> */ B(LdaSmi), U8(1), 413 /* 58 S> */ B(LdaSmi), U8(1),
414 /* 64 E> */ B(TestEqual), R(0), 414 /* 64 E> */ B(TestEqual), R(0),
415 B(JumpIfFalse), U8(4), 415 B(JumpIfFalse), U8(4),
416 /* 70 S> */ B(Jump), U8(17), 416 /* 70 S> */ B(Jump), U8(18),
417 /* 79 S> */ B(LdaSmi), U8(2), 417 /* 79 S> */ B(LdaSmi), U8(2),
418 /* 85 E> */ B(TestEqual), R(0), 418 /* 85 E> */ B(TestEqual), R(0),
419 B(JumpIfFalse), U8(4), 419 B(JumpIfFalse), U8(4),
420 /* 91 S> */ B(Jump), U8(7), 420 /* 91 S> */ B(Jump), U8(8),
421 /* 103 S> */ B(AddSmi), U8(1), R(0), 421 /* 103 S> */ B(AddSmi), U8(1), R(0), U8(1),
422 B(Star), R(0), 422 B(Star), R(0),
423 B(Jump), U8(-22), 423 B(Jump), U8(-23),
424 B(LdaUndefined), 424 B(LdaUndefined),
425 /* 116 S> */ B(Return), 425 /* 116 S> */ B(Return),
426 ] 426 ]
427 constant pool: [ 427 constant pool: [
428 ] 428 ]
429 handlers: [ 429 handlers: [
430 ] 430 ]
431 431
432 --- 432 ---
433 snippet: " 433 snippet: "
434 for (var x = 0;;) { 434 for (var x = 0;;) {
435 if (x == 1) break; 435 if (x == 1) break;
436 if (x == 2) continue; 436 if (x == 2) continue;
437 x = x + 1; 437 x = x + 1;
438 } 438 }
439 " 439 "
440 frame size: 1 440 frame size: 1
441 parameter count: 1 441 parameter count: 1
442 bytecode array length: 30 442 bytecode array length: 31
443 bytecodes: [ 443 bytecodes: [
444 /* 30 E> */ B(StackCheck), 444 /* 30 E> */ B(StackCheck),
445 /* 47 S> */ B(LdaZero), 445 /* 47 S> */ B(LdaZero),
446 B(Star), R(0), 446 B(Star), R(0),
447 /* 34 E> */ B(StackCheck), 447 /* 34 E> */ B(StackCheck),
448 /* 56 S> */ B(LdaSmi), U8(1), 448 /* 56 S> */ B(LdaSmi), U8(1),
449 /* 62 E> */ B(TestEqual), R(0), 449 /* 62 E> */ B(TestEqual), R(0),
450 B(JumpIfFalse), U8(4), 450 B(JumpIfFalse), U8(4),
451 /* 68 S> */ B(Jump), U8(17), 451 /* 68 S> */ B(Jump), U8(18),
452 /* 77 S> */ B(LdaSmi), U8(2), 452 /* 77 S> */ B(LdaSmi), U8(2),
453 /* 83 E> */ B(TestEqual), R(0), 453 /* 83 E> */ B(TestEqual), R(0),
454 B(JumpIfFalse), U8(4), 454 B(JumpIfFalse), U8(4),
455 /* 89 S> */ B(Jump), U8(7), 455 /* 89 S> */ B(Jump), U8(8),
456 /* 101 S> */ B(AddSmi), U8(1), R(0), 456 /* 101 S> */ B(AddSmi), U8(1), R(0), U8(1),
457 B(Star), R(0), 457 B(Star), R(0),
458 B(Jump), U8(-22), 458 B(Jump), U8(-23),
459 B(LdaUndefined), 459 B(LdaUndefined),
460 /* 114 S> */ B(Return), 460 /* 114 S> */ B(Return),
461 ] 461 ]
462 constant pool: [ 462 constant pool: [
463 ] 463 ]
464 handlers: [ 464 handlers: [
465 ] 465 ]
466 466
467 --- 467 ---
468 snippet: " 468 snippet: "
469 var x = 0; 469 var x = 0;
470 for (;; x = x + 1) { 470 for (;; x = x + 1) {
471 if (x == 1) break; 471 if (x == 1) break;
472 if (x == 2) continue; 472 if (x == 2) continue;
473 } 473 }
474 " 474 "
475 frame size: 1 475 frame size: 1
476 parameter count: 1 476 parameter count: 1
477 bytecode array length: 30 477 bytecode array length: 31
478 bytecodes: [ 478 bytecodes: [
479 /* 30 E> */ B(StackCheck), 479 /* 30 E> */ B(StackCheck),
480 /* 42 S> */ B(LdaZero), 480 /* 42 S> */ B(LdaZero),
481 B(Star), R(0), 481 B(Star), R(0),
482 /* 45 E> */ B(StackCheck), 482 /* 45 E> */ B(StackCheck),
483 /* 68 S> */ B(LdaSmi), U8(1), 483 /* 68 S> */ B(LdaSmi), U8(1),
484 /* 74 E> */ B(TestEqual), R(0), 484 /* 74 E> */ B(TestEqual), R(0),
485 B(JumpIfFalse), U8(4), 485 B(JumpIfFalse), U8(4),
486 /* 80 S> */ B(Jump), U8(17), 486 /* 80 S> */ B(Jump), U8(18),
487 /* 89 S> */ B(LdaSmi), U8(2), 487 /* 89 S> */ B(LdaSmi), U8(2),
488 /* 95 E> */ B(TestEqual), R(0), 488 /* 95 E> */ B(TestEqual), R(0),
489 B(JumpIfFalse), U8(4), 489 B(JumpIfFalse), U8(4),
490 /* 101 S> */ B(Jump), U8(2), 490 /* 101 S> */ B(Jump), U8(2),
491 /* 55 S> */ B(AddSmi), U8(1), R(0), 491 /* 55 S> */ B(AddSmi), U8(1), R(0), U8(1),
492 B(Star), R(0), 492 B(Star), R(0),
493 B(Jump), U8(-22), 493 B(Jump), U8(-23),
494 B(LdaUndefined), 494 B(LdaUndefined),
495 /* 113 S> */ B(Return), 495 /* 113 S> */ B(Return),
496 ] 496 ]
497 constant pool: [ 497 constant pool: [
498 ] 498 ]
499 handlers: [ 499 handlers: [
500 ] 500 ]
501 501
502 --- 502 ---
503 snippet: " 503 snippet: "
504 for (var x = 0;; x = x + 1) { 504 for (var x = 0;; x = x + 1) {
505 if (x == 1) break; 505 if (x == 1) break;
506 if (x == 2) continue; 506 if (x == 2) continue;
507 } 507 }
508 " 508 "
509 frame size: 1 509 frame size: 1
510 parameter count: 1 510 parameter count: 1
511 bytecode array length: 30 511 bytecode array length: 31
512 bytecodes: [ 512 bytecodes: [
513 /* 30 E> */ B(StackCheck), 513 /* 30 E> */ B(StackCheck),
514 /* 47 S> */ B(LdaZero), 514 /* 47 S> */ B(LdaZero),
515 B(Star), R(0), 515 B(Star), R(0),
516 /* 34 E> */ B(StackCheck), 516 /* 34 E> */ B(StackCheck),
517 /* 66 S> */ B(LdaSmi), U8(1), 517 /* 66 S> */ B(LdaSmi), U8(1),
518 /* 72 E> */ B(TestEqual), R(0), 518 /* 72 E> */ B(TestEqual), R(0),
519 B(JumpIfFalse), U8(4), 519 B(JumpIfFalse), U8(4),
520 /* 78 S> */ B(Jump), U8(17), 520 /* 78 S> */ B(Jump), U8(18),
521 /* 87 S> */ B(LdaSmi), U8(2), 521 /* 87 S> */ B(LdaSmi), U8(2),
522 /* 93 E> */ B(TestEqual), R(0), 522 /* 93 E> */ B(TestEqual), R(0),
523 B(JumpIfFalse), U8(4), 523 B(JumpIfFalse), U8(4),
524 /* 99 S> */ B(Jump), U8(2), 524 /* 99 S> */ B(Jump), U8(2),
525 /* 53 S> */ B(AddSmi), U8(1), R(0), 525 /* 53 S> */ B(AddSmi), U8(1), R(0), U8(1),
526 B(Star), R(0), 526 B(Star), R(0),
527 B(Jump), U8(-22), 527 B(Jump), U8(-23),
528 B(LdaUndefined), 528 B(LdaUndefined),
529 /* 111 S> */ B(Return), 529 /* 111 S> */ B(Return),
530 ] 530 ]
531 constant pool: [ 531 constant pool: [
532 ] 532 ]
533 handlers: [ 533 handlers: [
534 ] 534 ]
535 535
536 --- 536 ---
537 snippet: " 537 snippet: "
538 var u = 0; 538 var u = 0;
539 for (var i = 0; i < 100; i = i + 1) { 539 for (var i = 0; i < 100; i = i + 1) {
540 u = u + 1; 540 u = u + 1;
541 continue; 541 continue;
542 } 542 }
543 " 543 "
544 frame size: 2 544 frame size: 2
545 parameter count: 1 545 parameter count: 1
546 bytecode array length: 30 546 bytecode array length: 32
547 bytecodes: [ 547 bytecodes: [
548 /* 30 E> */ B(StackCheck), 548 /* 30 E> */ B(StackCheck),
549 /* 42 S> */ B(LdaZero), 549 /* 42 S> */ B(LdaZero),
550 B(Star), R(0), 550 B(Star), R(0),
551 /* 58 S> */ B(LdaZero), 551 /* 58 S> */ B(LdaZero),
552 B(Star), R(1), 552 B(Star), R(1),
553 /* 63 S> */ B(LdaSmi), U8(100), 553 /* 63 S> */ B(LdaSmi), U8(100),
554 /* 63 E> */ B(TestLessThan), R(1), 554 /* 63 E> */ B(TestLessThan), R(1),
555 B(JumpIfFalse), U8(17), 555 B(JumpIfFalse), U8(19),
556 /* 45 E> */ B(StackCheck), 556 /* 45 E> */ B(StackCheck),
557 /* 85 S> */ B(AddSmi), U8(1), R(0), 557 /* 85 S> */ B(AddSmi), U8(1), R(0), U8(2),
558 B(Star), R(0), 558 B(Star), R(0),
559 /* 98 S> */ B(Jump), U8(2), 559 /* 98 S> */ B(Jump), U8(2),
560 /* 72 S> */ B(AddSmi), U8(1), R(1), 560 /* 72 S> */ B(AddSmi), U8(1), R(1), U8(1),
561 B(Star), R(1), 561 B(Star), R(1),
562 B(Jump), U8(-19), 562 B(Jump), U8(-21),
563 B(LdaUndefined), 563 B(LdaUndefined),
564 /* 110 S> */ B(Return), 564 /* 110 S> */ B(Return),
565 ] 565 ]
566 constant pool: [ 566 constant pool: [
567 ] 567 ]
568 handlers: [ 568 handlers: [
569 ] 569 ]
570 570
571 --- 571 ---
572 snippet: " 572 snippet: "
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 snippet: " 632 snippet: "
633 var x = 0; 633 var x = 0;
634 for (var i = 0; true; ++i) { 634 for (var i = 0; true; ++i) {
635 x = x + 1; 635 x = x + 1;
636 if (x == 20) break; 636 if (x == 20) break;
637 }; 637 };
638 return x; 638 return x;
639 " 639 "
640 frame size: 2 640 frame size: 2
641 parameter count: 1 641 parameter count: 1
642 bytecode array length: 32 642 bytecode array length: 33
643 bytecodes: [ 643 bytecodes: [
644 /* 30 E> */ B(StackCheck), 644 /* 30 E> */ B(StackCheck),
645 /* 42 S> */ B(LdaZero), 645 /* 42 S> */ B(LdaZero),
646 B(Star), R(0), 646 B(Star), R(0),
647 /* 58 S> */ B(LdaZero), 647 /* 58 S> */ B(LdaZero),
648 B(Star), R(1), 648 B(Star), R(1),
649 /* 45 E> */ B(StackCheck), 649 /* 45 E> */ B(StackCheck),
650 /* 76 S> */ B(AddSmi), U8(1), R(0), 650 /* 76 S> */ B(AddSmi), U8(1), R(0), U8(2),
651 B(Star), R(0), 651 B(Star), R(0),
652 /* 89 S> */ B(LdaSmi), U8(20), 652 /* 89 S> */ B(LdaSmi), U8(20),
653 /* 95 E> */ B(TestEqual), R(0), 653 /* 95 E> */ B(TestEqual), R(0),
654 B(JumpIfFalse), U8(4), 654 B(JumpIfFalse), U8(4),
655 /* 102 S> */ B(Jump), U8(10), 655 /* 102 S> */ B(Jump), U8(10),
656 /* 69 S> */ B(Ldar), R(1), 656 /* 69 S> */ B(Ldar), R(1),
657 B(Inc), U8(1), 657 B(Inc), U8(1),
658 B(Star), R(1), 658 B(Star), R(1),
659 B(Jump), U8(-20), 659 B(Jump), U8(-21),
660 /* 112 S> */ B(Ldar), R(0), 660 /* 112 S> */ B(Ldar), R(0),
661 /* 122 S> */ B(Return), 661 /* 122 S> */ B(Return),
662 ] 662 ]
663 constant pool: [ 663 constant pool: [
664 ] 664 ]
665 handlers: [ 665 handlers: [
666 ] 666 ]
667 667
668 --- 668 ---
669 snippet: " 669 snippet: "
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 /* 137 S> */ B(Return), 726 /* 137 S> */ B(Return),
727 ] 727 ]
728 constant pool: [ 728 constant pool: [
729 InstanceType::FIXED_ARRAY_TYPE, 729 InstanceType::FIXED_ARRAY_TYPE,
730 InstanceType::SHARED_FUNCTION_INFO_TYPE, 730 InstanceType::SHARED_FUNCTION_INFO_TYPE,
731 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 731 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
732 ] 732 ]
733 handlers: [ 733 handlers: [
734 ] 734 ]
735 735
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698