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

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

Issue 2459513002: [ignition] Add bytecodes for loads/stores in the current context (Closed)
Patch Set: s/LocalContext/CurrentContext/g Created 4 years, 1 month 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 for (var p of [0, 1, 2]) {} 10 for (var p of [0, 1, 2]) {}
11 " 11 "
12 frame size: 15 12 frame size: 15
13 parameter count: 1 13 parameter count: 1
14 bytecode array length: 279 14 bytecode array length: 277
15 bytecodes: [ 15 bytecodes: [
16 /* 30 E> */ B(StackCheck), 16 /* 30 E> */ B(StackCheck),
17 B(LdaZero), 17 B(LdaZero),
18 B(Star), R(4), 18 B(Star), R(4),
19 B(Mov), R(context), R(11), 19 B(Mov), R(context), R(11),
20 B(Mov), R(context), R(12), 20 B(Mov), R(context), R(12),
21 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 21 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
22 B(Star), R(14), 22 B(Star), R(14),
23 B(LdaConstant), U8(1), 23 B(LdaConstant), U8(1),
24 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(4), R(13), 24 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(4), R(13),
(...skipping 10 matching lines...) Expand all
35 B(JumpIfToBooleanTrue), U8(24), 35 B(JumpIfToBooleanTrue), U8(24),
36 B(LdrNamedProperty), R(3), U8(4), U8(12), R(5), 36 B(LdrNamedProperty), R(3), U8(4), U8(12), R(5),
37 B(LdaSmi), U8(2), 37 B(LdaSmi), U8(2),
38 B(Star), R(4), 38 B(Star), R(4),
39 B(Mov), R(5), R(0), 39 B(Mov), R(5), R(0),
40 /* 34 E> */ B(StackCheck), 40 /* 34 E> */ B(StackCheck),
41 B(Mov), R(0), R(1), 41 B(Mov), R(0), R(1),
42 B(LdaZero), 42 B(LdaZero),
43 B(Star), R(4), 43 B(Star), R(4),
44 B(JumpLoop), U8(-49), U8(0), 44 B(JumpLoop), U8(-49), U8(0),
45 B(Jump), U8(37), 45 B(Jump), U8(35),
46 B(Star), R(13), 46 B(Star), R(13),
47 B(Ldar), R(closure), 47 B(Ldar), R(closure),
48 B(CreateCatchContext), R(13), U8(5), U8(6), 48 B(CreateCatchContext), R(13), U8(5), U8(6),
49 B(Star), R(12), 49 B(Star), R(12),
50 B(PushContext), R(8), 50 B(PushContext), R(8),
51 B(LdaSmi), U8(2), 51 B(LdaSmi), U8(2),
52 B(TestEqualStrict), R(4), U8(14), 52 B(TestEqualStrict), R(4), U8(14),
53 B(JumpIfFalse), U8(6), 53 B(JumpIfFalse), U8(6),
54 B(LdaSmi), U8(1), 54 B(LdaSmi), U8(1),
55 B(Star), R(4), 55 B(Star), R(4),
56 B(LdrContextSlot), R(context), U8(4), U8(0), R(13), 56 B(LdrCurrentContextSlot), U8(4), R(13),
57 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), 57 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
58 B(PopContext), R(8), 58 B(PopContext), R(8),
59 B(LdaSmi), U8(-1), 59 B(LdaSmi), U8(-1),
60 B(Star), R(9), 60 B(Star), R(9),
61 B(Jump), U8(7), 61 B(Jump), U8(7),
62 B(Star), R(10), 62 B(Star), R(10),
63 B(LdaZero), 63 B(LdaZero),
64 B(Star), R(9), 64 B(Star), R(9),
65 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 65 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
66 B(Star), R(11), 66 B(Star), R(11),
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 130 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
131 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 131 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
132 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 132 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
133 FIXED_ARRAY_TYPE, 133 FIXED_ARRAY_TYPE,
134 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 134 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
135 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 135 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
136 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 136 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
137 FIXED_ARRAY_TYPE, 137 FIXED_ARRAY_TYPE,
138 ] 138 ]
139 handlers: [ 139 handlers: [
140 [7, 118, 124], 140 [7, 116, 122],
141 [10, 81, 83], 141 [10, 81, 83],
142 [201, 211, 213], 142 [199, 209, 211],
143 ] 143 ]
144 144
145 --- 145 ---
146 snippet: " 146 snippet: "
147 var x = 'potatoes'; 147 var x = 'potatoes';
148 for (var p of x) { return p; } 148 for (var p of x) { return p; }
149 " 149 "
150 frame size: 16 150 frame size: 16
151 parameter count: 1 151 parameter count: 1
152 bytecode array length: 290 152 bytecode array length: 288
153 bytecodes: [ 153 bytecodes: [
154 /* 30 E> */ B(StackCheck), 154 /* 30 E> */ B(StackCheck),
155 /* 42 S> */ B(LdaConstant), U8(0), 155 /* 42 S> */ B(LdaConstant), U8(0),
156 B(Star), R(0), 156 B(Star), R(0),
157 B(LdaZero), 157 B(LdaZero),
158 B(Star), R(5), 158 B(Star), R(5),
159 B(Mov), R(context), R(12), 159 B(Mov), R(context), R(12),
160 B(Mov), R(context), R(13), 160 B(Mov), R(context), R(13),
161 /* 68 S> */ B(LdaConstant), U8(1), 161 /* 68 S> */ B(LdaConstant), U8(1),
162 /* 68 E> */ B(LdrKeyedProperty), R(0), U8(4), R(14), 162 /* 68 E> */ B(LdrKeyedProperty), R(0), U8(4), R(14),
(...skipping 10 matching lines...) Expand all
173 B(JumpIfToBooleanTrue), U8(26), 173 B(JumpIfToBooleanTrue), U8(26),
174 B(LdrNamedProperty), R(4), U8(4), U8(12), R(6), 174 B(LdrNamedProperty), R(4), U8(4), U8(12), R(6),
175 B(LdaSmi), U8(2), 175 B(LdaSmi), U8(2),
176 B(Star), R(5), 176 B(Star), R(5),
177 B(Mov), R(6), R(1), 177 B(Mov), R(6), R(1),
178 /* 54 E> */ B(StackCheck), 178 /* 54 E> */ B(StackCheck),
179 B(Mov), R(1), R(2), 179 B(Mov), R(1), R(2),
180 /* 73 S> */ B(LdaZero), 180 /* 73 S> */ B(LdaZero),
181 B(Star), R(10), 181 B(Star), R(10),
182 B(Mov), R(1), R(11), 182 B(Mov), R(1), R(11),
183 B(Jump), U8(51), 183 B(Jump), U8(49),
184 B(Jump), U8(37), 184 B(Jump), U8(35),
185 B(Star), R(14), 185 B(Star), R(14),
186 B(Ldar), R(closure), 186 B(Ldar), R(closure),
187 B(CreateCatchContext), R(14), U8(5), U8(6), 187 B(CreateCatchContext), R(14), U8(5), U8(6),
188 B(Star), R(13), 188 B(Star), R(13),
189 B(PushContext), R(9), 189 B(PushContext), R(9),
190 B(LdaSmi), U8(2), 190 B(LdaSmi), U8(2),
191 B(TestEqualStrict), R(5), U8(14), 191 B(TestEqualStrict), R(5), U8(14),
192 B(JumpIfFalse), U8(6), 192 B(JumpIfFalse), U8(6),
193 B(LdaSmi), U8(1), 193 B(LdaSmi), U8(1),
194 B(Star), R(5), 194 B(Star), R(5),
195 B(LdrContextSlot), R(context), U8(4), U8(0), R(14), 195 B(LdrCurrentContextSlot), U8(4), R(14),
196 B(CallRuntime), U16(Runtime::kReThrow), R(14), U8(1), 196 B(CallRuntime), U16(Runtime::kReThrow), R(14), U8(1),
197 B(PopContext), R(9), 197 B(PopContext), R(9),
198 B(LdaSmi), U8(-1), 198 B(LdaSmi), U8(-1),
199 B(Star), R(10), 199 B(Star), R(10),
200 B(Jump), U8(8), 200 B(Jump), U8(8),
201 B(Star), R(11), 201 B(Star), R(11),
202 B(LdaSmi), U8(1), 202 B(LdaSmi), U8(1),
203 B(Star), R(10), 203 B(Star), R(10),
204 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 204 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
205 B(Star), R(12), 205 B(Star), R(12),
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 274 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
275 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 275 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
276 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 276 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
277 FIXED_ARRAY_TYPE, 277 FIXED_ARRAY_TYPE,
278 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 278 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
279 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 279 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
280 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 280 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
281 FIXED_ARRAY_TYPE, 281 FIXED_ARRAY_TYPE,
282 ] 282 ]
283 handlers: [ 283 handlers: [
284 [11, 118, 124], 284 [11, 116, 122],
285 [14, 81, 83], 285 [14, 81, 83],
286 [202, 212, 214], 286 [200, 210, 212],
287 ] 287 ]
288 288
289 --- 289 ---
290 snippet: " 290 snippet: "
291 for (var x of [10, 20, 30]) { 291 for (var x of [10, 20, 30]) {
292 if (x == 10) continue; 292 if (x == 10) continue;
293 if (x == 20) break; 293 if (x == 20) break;
294 } 294 }
295 " 295 "
296 frame size: 15 296 frame size: 15
297 parameter count: 1 297 parameter count: 1
298 bytecode array length: 297 298 bytecode array length: 295
299 bytecodes: [ 299 bytecodes: [
300 /* 30 E> */ B(StackCheck), 300 /* 30 E> */ B(StackCheck),
301 B(LdaZero), 301 B(LdaZero),
302 B(Star), R(4), 302 B(Star), R(4),
303 B(Mov), R(context), R(11), 303 B(Mov), R(context), R(11),
304 B(Mov), R(context), R(12), 304 B(Mov), R(context), R(12),
305 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 305 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
306 B(Star), R(14), 306 B(Star), R(14),
307 B(LdaConstant), U8(1), 307 B(LdaConstant), U8(1),
308 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(4), R(13), 308 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(4), R(13),
(...skipping 18 matching lines...) Expand all
327 /* 72 E> */ B(TestEqual), R(1), U8(14), 327 /* 72 E> */ B(TestEqual), R(1), U8(14),
328 B(JumpIfFalse), U8(4), 328 B(JumpIfFalse), U8(4),
329 /* 79 S> */ B(Jump), U8(14), 329 /* 79 S> */ B(Jump), U8(14),
330 /* 91 S> */ B(LdaSmi), U8(20), 330 /* 91 S> */ B(LdaSmi), U8(20),
331 /* 97 E> */ B(TestEqual), R(1), U8(15), 331 /* 97 E> */ B(TestEqual), R(1), U8(15),
332 B(JumpIfFalse), U8(4), 332 B(JumpIfFalse), U8(4),
333 /* 104 S> */ B(Jump), U8(8), 333 /* 104 S> */ B(Jump), U8(8),
334 B(LdaZero), 334 B(LdaZero),
335 B(Star), R(4), 335 B(Star), R(4),
336 B(JumpLoop), U8(-67), U8(0), 336 B(JumpLoop), U8(-67), U8(0),
337 B(Jump), U8(37), 337 B(Jump), U8(35),
338 B(Star), R(13), 338 B(Star), R(13),
339 B(Ldar), R(closure), 339 B(Ldar), R(closure),
340 B(CreateCatchContext), R(13), U8(5), U8(6), 340 B(CreateCatchContext), R(13), U8(5), U8(6),
341 B(Star), R(12), 341 B(Star), R(12),
342 B(PushContext), R(8), 342 B(PushContext), R(8),
343 B(LdaSmi), U8(2), 343 B(LdaSmi), U8(2),
344 B(TestEqualStrict), R(4), U8(16), 344 B(TestEqualStrict), R(4), U8(16),
345 B(JumpIfFalse), U8(6), 345 B(JumpIfFalse), U8(6),
346 B(LdaSmi), U8(1), 346 B(LdaSmi), U8(1),
347 B(Star), R(4), 347 B(Star), R(4),
348 B(LdrContextSlot), R(context), U8(4), U8(0), R(13), 348 B(LdrCurrentContextSlot), U8(4), R(13),
349 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1), 349 B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
350 B(PopContext), R(8), 350 B(PopContext), R(8),
351 B(LdaSmi), U8(-1), 351 B(LdaSmi), U8(-1),
352 B(Star), R(9), 352 B(Star), R(9),
353 B(Jump), U8(7), 353 B(Jump), U8(7),
354 B(Star), R(10), 354 B(Star), R(10),
355 B(LdaZero), 355 B(LdaZero),
356 B(Star), R(9), 356 B(Star), R(9),
357 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 357 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
358 B(Star), R(11), 358 B(Star), R(11),
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 422 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
423 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 423 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
424 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 424 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
425 FIXED_ARRAY_TYPE, 425 FIXED_ARRAY_TYPE,
426 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 426 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
427 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 427 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
428 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 428 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
429 FIXED_ARRAY_TYPE, 429 FIXED_ARRAY_TYPE,
430 ] 430 ]
431 handlers: [ 431 handlers: [
432 [7, 136, 142], 432 [7, 134, 140],
433 [10, 99, 101], 433 [10, 99, 101],
434 [219, 229, 231], 434 [217, 227, 229],
435 ] 435 ]
436 436
437 --- 437 ---
438 snippet: " 438 snippet: "
439 var x = { 'a': 1, 'b': 2 }; 439 var x = { 'a': 1, 'b': 2 };
440 for (x['a'] of [1,2,3]) { return x['a']; } 440 for (x['a'] of [1,2,3]) { return x['a']; }
441 " 441 "
442 frame size: 14 442 frame size: 14
443 parameter count: 1 443 parameter count: 1
444 bytecode array length: 303 444 bytecode array length: 301
445 bytecodes: [ 445 bytecodes: [
446 /* 30 E> */ B(StackCheck), 446 /* 30 E> */ B(StackCheck),
447 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8), 447 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8),
448 B(Mov), R(8), R(0), 448 B(Mov), R(8), R(0),
449 B(LdaZero), 449 B(LdaZero),
450 B(Star), R(3), 450 B(Star), R(3),
451 B(Mov), R(context), R(10), 451 B(Mov), R(context), R(10),
452 B(Mov), R(context), R(11), 452 B(Mov), R(context), R(11),
453 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9), 453 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9),
454 B(Star), R(13), 454 B(Star), R(13),
(...skipping 13 matching lines...) Expand all
468 /* 67 E> */ B(LdrNamedProperty), R(2), U8(5), U8(12), R(4), 468 /* 67 E> */ B(LdrNamedProperty), R(2), U8(5), U8(12), R(4),
469 B(LdaSmi), U8(2), 469 B(LdaSmi), U8(2),
470 B(Star), R(3), 470 B(Star), R(3),
471 B(Ldar), R(4), 471 B(Ldar), R(4),
472 B(StaNamedPropertySloppy), R(0), U8(6), U8(14), 472 B(StaNamedPropertySloppy), R(0), U8(6), U8(14),
473 /* 62 E> */ B(StackCheck), 473 /* 62 E> */ B(StackCheck),
474 /* 88 S> */ B(Nop), 474 /* 88 S> */ B(Nop),
475 /* 96 E> */ B(LdrNamedProperty), R(0), U8(6), U8(16), R(9), 475 /* 96 E> */ B(LdrNamedProperty), R(0), U8(6), U8(16), R(9),
476 B(LdaZero), 476 B(LdaZero),
477 B(Star), R(8), 477 B(Star), R(8),
478 B(Jump), U8(51), 478 B(Jump), U8(49),
479 B(Jump), U8(37), 479 B(Jump), U8(35),
480 B(Star), R(12), 480 B(Star), R(12),
481 B(Ldar), R(closure), 481 B(Ldar), R(closure),
482 B(CreateCatchContext), R(12), U8(7), U8(8), 482 B(CreateCatchContext), R(12), U8(7), U8(8),
483 B(Star), R(11), 483 B(Star), R(11),
484 B(PushContext), R(7), 484 B(PushContext), R(7),
485 B(LdaSmi), U8(2), 485 B(LdaSmi), U8(2),
486 B(TestEqualStrict), R(3), U8(18), 486 B(TestEqualStrict), R(3), U8(18),
487 B(JumpIfFalse), U8(6), 487 B(JumpIfFalse), U8(6),
488 B(LdaSmi), U8(1), 488 B(LdaSmi), U8(1),
489 B(Star), R(3), 489 B(Star), R(3),
490 B(LdrContextSlot), R(context), U8(4), U8(0), R(12), 490 B(LdrCurrentContextSlot), U8(4), R(12),
491 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), 491 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1),
492 B(PopContext), R(7), 492 B(PopContext), R(7),
493 B(LdaSmi), U8(-1), 493 B(LdaSmi), U8(-1),
494 B(Star), R(8), 494 B(Star), R(8),
495 B(Jump), U8(8), 495 B(Jump), U8(8),
496 B(Star), R(9), 496 B(Star), R(9),
497 B(LdaSmi), U8(1), 497 B(LdaSmi), U8(1),
498 B(Star), R(8), 498 B(Star), R(8),
499 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 499 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
500 B(Star), R(10), 500 B(Star), R(10),
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 571 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
572 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 572 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
573 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 573 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
574 FIXED_ARRAY_TYPE, 574 FIXED_ARRAY_TYPE,
575 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 575 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
576 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 576 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
577 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 577 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
578 FIXED_ARRAY_TYPE, 578 FIXED_ARRAY_TYPE,
579 ] 579 ]
580 handlers: [ 580 handlers: [
581 [15, 131, 137], 581 [15, 129, 135],
582 [18, 94, 96], 582 [18, 94, 96],
583 [215, 225, 227], 583 [213, 223, 225],
584 ] 584 ]
585 585
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698