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

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

Issue 2254493002: [interpreter] Use VisitForTest for loop conditions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase(line) golden file 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 [192, 202, 204], 142 [192, 202, 204],
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: 281 152 bytecode array length: 279
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(7), 156 B(Star), R(7),
157 B(LdaZero), 157 B(LdaZero),
158 B(Star), R(3), 158 B(Star), R(3),
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(7), U8(3), R(14), 162 /* 68 E> */ B(LdrKeyedProperty), R(7), U8(3), R(14),
163 /* 68 E> */ B(Call), R(14), R(7), U8(1), U8(1), 163 /* 68 E> */ B(Call), R(14), R(7), U8(1), U8(1),
164 B(Star), R(1), 164 B(Star), R(1),
165 /* 65 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(15), 165 /* 65 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(15),
166 /* 65 E> */ B(Call), R(15), R(1), U8(1), U8(5), 166 /* 65 E> */ B(Call), R(15), R(1), U8(1), U8(5),
167 B(Star), R(2), 167 B(Star), R(2),
168 /* 65 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1), 168 /* 65 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1),
169 B(ToBooleanLogicalNot), 169 B(ToBooleanLogicalNot),
170 B(JumpIfFalse), U8(7), 170 B(JumpIfFalse), U8(7),
171 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (2), U8(1), 171 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (2), U8(1),
172 B(LdaNamedProperty), R(2), U8(3), U8(9), 172 B(LdaNamedProperty), R(2), U8(3), U8(9),
173 B(JumpIfToBooleanTrue), U8(28), 173 B(JumpIfToBooleanTrue), U8(26),
174 B(LdrNamedProperty), R(2), U8(4), U8(11), R(4), 174 B(LdrNamedProperty), R(2), U8(4), U8(11), R(4),
175 B(LdaSmi), U8(2), 175 B(LdaSmi), U8(2),
176 B(Star), R(3), 176 B(Star), R(3),
177 B(Mov), R(4), R(0), 177 B(Mov), R(4), R(0),
178 /* 54 E> */ B(StackCheck), 178 /* 54 E> */ B(StackCheck),
179 B(Mov), R(0), R(8), 179 B(Mov), R(0), R(8),
180 /* 73 S> */ B(LdaZero), 180 /* 73 S> */ B(LdaZero),
181 B(Star), R(10), 181 B(Star), R(10),
182 B(Mov), R(0), R(11), 182 B(Mov), R(0), R(11),
183 B(Jump), U8(50), 183 B(Jump), U8(48),
184 B(Jump), U8(-54),
185 B(Jump), U8(34), 184 B(Jump), U8(34),
186 B(Star), R(14), 185 B(Star), R(14),
187 B(Ldar), R(closure), 186 B(Ldar), R(closure),
188 B(CreateCatchContext), R(14), U8(5), 187 B(CreateCatchContext), R(14), U8(5),
189 B(Star), R(13), 188 B(Star), R(13),
190 B(PushContext), R(9), 189 B(PushContext), R(9),
191 B(LdaSmi), U8(2), 190 B(LdaSmi), U8(2),
192 B(TestEqualStrict), R(3), 191 B(TestEqualStrict), R(3),
193 B(JumpIfFalse), U8(6), 192 B(JumpIfFalse), U8(6),
194 B(LdaSmi), U8(1), 193 B(LdaSmi), U8(1),
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 InstanceType::SYMBOL_TYPE, 272 InstanceType::SYMBOL_TYPE,
274 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 273 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
275 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 274 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
276 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 275 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
277 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 276 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
278 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 277 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
279 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 278 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
280 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 279 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
281 ] 280 ]
282 handlers: [ 281 handlers: [
283 [11, 117, 123], 282 [11, 115, 121],
284 [14, 83, 85], 283 [14, 81, 83],
285 [196, 206, 208], 284 [194, 204, 206],
286 ] 285 ]
287 286
288 --- 287 ---
289 snippet: " 288 snippet: "
290 for (var x of [10, 20, 30]) { 289 for (var x of [10, 20, 30]) {
291 if (x == 10) continue; 290 if (x == 10) continue;
292 if (x == 20) break; 291 if (x == 20) break;
293 } 292 }
294 " 293 "
295 frame size: 15 294 frame size: 15
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 [208, 218, 220], 430 [208, 218, 220],
432 ] 431 ]
433 432
434 --- 433 ---
435 snippet: " 434 snippet: "
436 var x = { 'a': 1, 'b': 2 }; 435 var x = { 'a': 1, 'b': 2 };
437 for (x['a'] of [1,2,3]) { return x['a']; } 436 for (x['a'] of [1,2,3]) { return x['a']; }
438 " 437 "
439 frame size: 14 438 frame size: 14
440 parameter count: 1 439 parameter count: 1
441 bytecode array length: 294 440 bytecode array length: 292
442 bytecodes: [ 441 bytecodes: [
443 /* 30 E> */ B(StackCheck), 442 /* 30 E> */ B(StackCheck),
444 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8), 443 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8),
445 B(Mov), R(8), R(6), 444 B(Mov), R(8), R(6),
446 B(LdaZero), 445 B(LdaZero),
447 B(Star), R(2), 446 B(Star), R(2),
448 B(Mov), R(context), R(10), 447 B(Mov), R(context), R(10),
449 B(Mov), R(context), R(11), 448 B(Mov), R(context), R(11),
450 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), 449 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
451 B(Star), R(13), 450 B(Star), R(13),
452 B(LdaConstant), U8(2), 451 B(LdaConstant), U8(2),
453 /* 77 E> */ B(LdrKeyedProperty), R(13), U8(3), R(12), 452 /* 77 E> */ B(LdrKeyedProperty), R(13), U8(3), R(12),
454 /* 77 E> */ B(Call), R(12), R(13), U8(1), U8(1), 453 /* 77 E> */ B(Call), R(12), R(13), U8(1), U8(1),
455 B(Star), R(0), 454 B(Star), R(0),
456 /* 74 S> */ B(LdrNamedProperty), R(0), U8(3), U8(7), R(13), 455 /* 74 S> */ B(LdrNamedProperty), R(0), U8(3), U8(7), R(13),
457 /* 74 E> */ B(Call), R(13), R(0), U8(1), U8(5), 456 /* 74 E> */ B(Call), R(13), R(0), U8(1), U8(5),
458 B(Star), R(1), 457 B(Star), R(1),
459 /* 74 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(1), U8(1), 458 /* 74 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(1), U8(1),
460 B(ToBooleanLogicalNot), 459 B(ToBooleanLogicalNot),
461 B(JumpIfFalse), U8(7), 460 B(JumpIfFalse), U8(7),
462 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (1), U8(1), 461 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (1), U8(1),
463 B(LdaNamedProperty), R(1), U8(4), U8(9), 462 B(LdaNamedProperty), R(1), U8(4), U8(9),
464 B(JumpIfToBooleanTrue), U8(31), 463 B(JumpIfToBooleanTrue), U8(29),
465 /* 67 E> */ B(LdrNamedProperty), R(1), U8(5), U8(11), R(3), 464 /* 67 E> */ B(LdrNamedProperty), R(1), U8(5), U8(11), R(3),
466 B(LdaSmi), U8(2), 465 B(LdaSmi), U8(2),
467 B(Star), R(2), 466 B(Star), R(2),
468 B(Ldar), R(3), 467 B(Ldar), R(3),
469 B(StaNamedPropertySloppy), R(6), U8(6), U8(13), 468 B(StaNamedPropertySloppy), R(6), U8(6), U8(13),
470 /* 62 E> */ B(StackCheck), 469 /* 62 E> */ B(StackCheck),
471 /* 88 S> */ B(Nop), 470 /* 88 S> */ B(Nop),
472 /* 96 E> */ B(LdrNamedProperty), R(6), U8(6), U8(15), R(9), 471 /* 96 E> */ B(LdrNamedProperty), R(6), U8(6), U8(15), R(9),
473 B(LdaZero), 472 B(LdaZero),
474 B(Star), R(8), 473 B(Star), R(8),
475 B(Jump), U8(50), 474 B(Jump), U8(48),
476 B(Jump), U8(-57),
477 B(Jump), U8(34), 475 B(Jump), U8(34),
478 B(Star), R(12), 476 B(Star), R(12),
479 B(Ldar), R(closure), 477 B(Ldar), R(closure),
480 B(CreateCatchContext), R(12), U8(7), 478 B(CreateCatchContext), R(12), U8(7),
481 B(Star), R(11), 479 B(Star), R(11),
482 B(PushContext), R(7), 480 B(PushContext), R(7),
483 B(LdaSmi), U8(2), 481 B(LdaSmi), U8(2),
484 B(TestEqualStrict), R(2), 482 B(TestEqualStrict), R(2),
485 B(JumpIfFalse), U8(6), 483 B(JumpIfFalse), U8(6),
486 B(LdaSmi), U8(1), 484 B(LdaSmi), U8(1),
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 565 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
568 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 566 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
569 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 567 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
570 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 568 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
571 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 569 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
572 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 570 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
573 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 571 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
574 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 572 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
575 ] 573 ]
576 handlers: [ 574 handlers: [
577 [15, 130, 136], 575 [15, 128, 134],
578 [18, 96, 98], 576 [18, 94, 96],
579 [209, 219, 221], 577 [207, 217, 219],
580 ] 578 ]
581 579
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698