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

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

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: georg's comments Created 4 years 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: 266 14 bytecode array length: 272
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(13),
23 B(LdaNamedProperty), R(13), U8(1), U8(2),
22 B(Star), R(14), 24 B(Star), R(14),
23 B(LdaConstant), U8(1), 25 B(CallProperty), R(14), R(13), U8(1), U8(4),
24 /* 48 E> */ B(LdaKeyedProperty), R(14), U8(4), 26 B(JumpIfJSReceiver), U8(7),
25 B(Star), R(13), 27 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
26 /* 48 E> */ B(CallProperty), R(13), R(14), U8(1), U8(2),
27 B(Star), R(2), 28 B(Star), R(2),
28 /* 45 S> */ B(LdaNamedProperty), R(2), U8(2), U8(8), 29 /* 45 S> */ B(LdaNamedProperty), R(2), U8(2), U8(8),
29 B(Star), R(14), 30 B(Star), R(14),
30 /* 45 E> */ B(CallProperty), R(14), R(2), U8(1), U8(6), 31 /* 45 E> */ B(CallProperty), R(14), R(2), U8(1), U8(6),
31 B(Star), R(3), 32 B(Star), R(3),
32 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1), 33 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1),
33 B(ToBooleanLogicalNot), 34 B(ToBooleanLogicalNot),
34 B(JumpIfFalse), U8(7), 35 B(JumpIfFalse), U8(7),
35 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1), 36 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1),
36 B(LdaNamedProperty), R(3), U8(3), U8(10), 37 B(LdaNamedProperty), R(3), U8(3), U8(10),
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 135 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
135 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 136 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
136 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 137 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
137 FIXED_ARRAY_TYPE, 138 FIXED_ARRAY_TYPE,
138 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 139 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
139 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 140 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
140 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 141 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
141 FIXED_ARRAY_TYPE, 142 FIXED_ARRAY_TYPE,
142 ] 143 ]
143 handlers: [ 144 handlers: [
144 [7, 120, 126], 145 [7, 126, 132],
145 [10, 84, 86], 146 [10, 90, 92],
146 [193, 203, 205], 147 [199, 209, 211],
147 ] 148 ]
148 149
149 --- 150 ---
150 snippet: " 151 snippet: "
151 var x = 'potatoes'; 152 var x = 'potatoes';
152 for (var p of x) { return p; } 153 for (var p of x) { return p; }
153 " 154 "
154 frame size: 16 155 frame size: 16
155 parameter count: 1 156 parameter count: 1
156 bytecode array length: 277 157 bytecode array length: 286
157 bytecodes: [ 158 bytecodes: [
158 /* 30 E> */ B(StackCheck), 159 /* 30 E> */ B(StackCheck),
159 /* 42 S> */ B(LdaConstant), U8(0), 160 /* 42 S> */ B(LdaConstant), U8(0),
160 B(Star), R(0), 161 B(Star), R(0),
161 B(LdaZero), 162 B(LdaZero),
162 B(Star), R(5), 163 B(Star), R(5),
163 B(Mov), R(context), R(12), 164 B(Mov), R(context), R(12),
164 B(Mov), R(context), R(13), 165 B(Mov), R(context), R(13),
165 /* 68 S> */ B(LdaConstant), U8(1), 166 /* 68 S> */ B(LdaNamedProperty), R(0), U8(1), U8(2),
166 /* 68 E> */ B(LdaKeyedProperty), R(0), U8(4), 167 B(Star), R(15),
167 B(Star), R(14), 168 B(CallProperty), R(15), R(0), U8(1), U8(4),
168 /* 68 E> */ B(CallProperty), R(14), R(0), U8(1), U8(2), 169 B(Mov), R(0), R(14),
170 B(JumpIfJSReceiver), U8(7),
171 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
169 B(Star), R(3), 172 B(Star), R(3),
170 /* 65 S> */ B(LdaNamedProperty), R(3), U8(2), U8(8), 173 /* 65 S> */ B(LdaNamedProperty), R(3), U8(2), U8(8),
171 B(Star), R(15), 174 B(Star), R(15),
172 /* 65 E> */ B(CallProperty), R(15), R(3), U8(1), U8(6), 175 /* 65 E> */ B(CallProperty), R(15), R(3), U8(1), U8(6),
173 B(Star), R(4), 176 B(Star), R(4),
174 /* 65 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(4), U8(1), 177 /* 65 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(4), U8(1),
175 B(ToBooleanLogicalNot), 178 B(ToBooleanLogicalNot),
176 B(JumpIfFalse), U8(7), 179 B(JumpIfFalse), U8(7),
177 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (4), U8(1), 180 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (4), U8(1),
178 B(LdaNamedProperty), R(4), U8(3), U8(10), 181 B(LdaNamedProperty), R(4), U8(3), U8(10),
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 285 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
283 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 286 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
284 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 287 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
285 FIXED_ARRAY_TYPE, 288 FIXED_ARRAY_TYPE,
286 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 289 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
287 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 290 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
288 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 291 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
289 FIXED_ARRAY_TYPE, 292 FIXED_ARRAY_TYPE,
290 ] 293 ]
291 handlers: [ 294 handlers: [
292 [11, 120, 126], 295 [11, 129, 135],
293 [14, 84, 86], 296 [14, 93, 95],
294 [194, 204, 206], 297 [203, 213, 215],
295 ] 298 ]
296 299
297 --- 300 ---
298 snippet: " 301 snippet: "
299 for (var x of [10, 20, 30]) { 302 for (var x of [10, 20, 30]) {
300 if (x == 10) continue; 303 if (x == 10) continue;
301 if (x == 20) break; 304 if (x == 20) break;
302 } 305 }
303 " 306 "
304 frame size: 15 307 frame size: 15
305 parameter count: 1 308 parameter count: 1
306 bytecode array length: 284 309 bytecode array length: 290
307 bytecodes: [ 310 bytecodes: [
308 /* 30 E> */ B(StackCheck), 311 /* 30 E> */ B(StackCheck),
309 B(LdaZero), 312 B(LdaZero),
310 B(Star), R(4), 313 B(Star), R(4),
311 B(Mov), R(context), R(11), 314 B(Mov), R(context), R(11),
312 B(Mov), R(context), R(12), 315 B(Mov), R(context), R(12),
313 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9), 316 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
317 B(Star), R(13),
318 B(LdaNamedProperty), R(13), U8(1), U8(2),
314 B(Star), R(14), 319 B(Star), R(14),
315 B(LdaConstant), U8(1), 320 B(CallProperty), R(14), R(13), U8(1), U8(4),
316 /* 48 E> */ B(LdaKeyedProperty), R(14), U8(4), 321 B(JumpIfJSReceiver), U8(7),
317 B(Star), R(13), 322 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
318 /* 48 E> */ B(CallProperty), R(13), R(14), U8(1), U8(2),
319 B(Star), R(2), 323 B(Star), R(2),
320 /* 45 S> */ B(LdaNamedProperty), R(2), U8(2), U8(8), 324 /* 45 S> */ B(LdaNamedProperty), R(2), U8(2), U8(8),
321 B(Star), R(14), 325 B(Star), R(14),
322 /* 45 E> */ B(CallProperty), R(14), R(2), U8(1), U8(6), 326 /* 45 E> */ B(CallProperty), R(14), R(2), U8(1), U8(6),
323 B(Star), R(3), 327 B(Star), R(3),
324 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1), 328 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1),
325 B(ToBooleanLogicalNot), 329 B(ToBooleanLogicalNot),
326 B(JumpIfFalse), U8(7), 330 B(JumpIfFalse), U8(7),
327 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1), 331 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1),
328 B(LdaNamedProperty), R(3), U8(3), U8(10), 332 B(LdaNamedProperty), R(3), U8(3), U8(10),
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 438 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
435 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 439 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
436 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 440 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
437 FIXED_ARRAY_TYPE, 441 FIXED_ARRAY_TYPE,
438 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 442 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
439 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 443 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
440 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 444 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
441 FIXED_ARRAY_TYPE, 445 FIXED_ARRAY_TYPE,
442 ] 446 ]
443 handlers: [ 447 handlers: [
444 [7, 138, 144], 448 [7, 144, 150],
445 [10, 102, 104], 449 [10, 108, 110],
446 [211, 221, 223], 450 [217, 227, 229],
447 ] 451 ]
448 452
449 --- 453 ---
450 snippet: " 454 snippet: "
451 var x = { 'a': 1, 'b': 2 }; 455 var x = { 'a': 1, 'b': 2 };
452 for (x['a'] of [1,2,3]) { return x['a']; } 456 for (x['a'] of [1,2,3]) { return x['a']; }
453 " 457 "
454 frame size: 14 458 frame size: 14
455 parameter count: 1 459 parameter count: 1
456 bytecode array length: 291 460 bytecode array length: 297
457 bytecodes: [ 461 bytecodes: [
458 /* 30 E> */ B(StackCheck), 462 /* 30 E> */ B(StackCheck),
459 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8), 463 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8),
460 B(Mov), R(8), R(0), 464 B(Mov), R(8), R(0),
461 B(LdaZero), 465 B(LdaZero),
462 B(Star), R(3), 466 B(Star), R(3),
463 B(Mov), R(context), R(10), 467 B(Mov), R(context), R(10),
464 B(Mov), R(context), R(11), 468 B(Mov), R(context), R(11),
465 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9), 469 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9),
470 B(Star), R(12),
471 B(LdaNamedProperty), R(12), U8(2), U8(2),
466 B(Star), R(13), 472 B(Star), R(13),
467 B(LdaConstant), U8(2), 473 B(CallProperty), R(13), R(12), U8(1), U8(4),
468 /* 77 E> */ B(LdaKeyedProperty), R(13), U8(4), 474 B(JumpIfJSReceiver), U8(7),
469 B(Star), R(12), 475 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
470 /* 77 E> */ B(CallProperty), R(12), R(13), U8(1), U8(2),
471 B(Star), R(1), 476 B(Star), R(1),
472 /* 74 S> */ B(LdaNamedProperty), R(1), U8(3), U8(8), 477 /* 74 S> */ B(LdaNamedProperty), R(1), U8(3), U8(8),
473 B(Star), R(13), 478 B(Star), R(13),
474 /* 74 E> */ B(CallProperty), R(13), R(1), U8(1), U8(6), 479 /* 74 E> */ B(CallProperty), R(13), R(1), U8(1), U8(6),
475 B(Star), R(2), 480 B(Star), R(2),
476 /* 74 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1), 481 /* 74 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1),
477 B(ToBooleanLogicalNot), 482 B(ToBooleanLogicalNot),
478 B(JumpIfFalse), U8(7), 483 B(JumpIfFalse), U8(7),
479 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (2), U8(1), 484 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (2), U8(1),
480 B(LdaNamedProperty), R(2), U8(4), U8(10), 485 B(LdaNamedProperty), R(2), U8(4), U8(10),
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 593 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
589 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 594 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
590 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 595 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
591 FIXED_ARRAY_TYPE, 596 FIXED_ARRAY_TYPE,
592 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 597 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
593 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 598 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
594 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 599 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
595 FIXED_ARRAY_TYPE, 600 FIXED_ARRAY_TYPE,
596 ] 601 ]
597 handlers: [ 602 handlers: [
598 [15, 134, 140], 603 [15, 140, 146],
599 [18, 98, 100], 604 [18, 104, 106],
600 [208, 218, 220], 605 [214, 224, 226],
601 ] 606 ]
602 607
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-loop-assignment-analysis.cc ('k') | test/cctest/interpreter/bytecode_expectations/Generators.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698