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

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

Issue 2242463002: [interpreter] VisitForTest for bytecode generator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: nit 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 ---
11 snippet: " 11 snippet: "
12 for (var p of [0, 1, 2]) {} 12 for (var p of [0, 1, 2]) {}
13 " 13 "
14 frame size: 16 14 frame size: 16
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 283 16 bytecode array length: 282
17 bytecodes: [ 17 bytecodes: [
18 /* 30 E> */ B(StackCheck), 18 /* 30 E> */ B(StackCheck),
19 B(LdaZero), 19 B(LdaZero),
20 B(Star), R(3), 20 B(Star), R(3),
21 B(Mov), R(context), R(11), 21 B(Mov), R(context), R(11),
22 B(Mov), R(context), R(12), 22 B(Mov), R(context), R(12),
23 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 23 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
24 B(Star), R(14), 24 B(Star), R(14),
25 B(LdaConstant), U8(1), 25 B(LdaConstant), U8(1),
26 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13), 26 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13),
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 B(LdaSmi), U8(-1), 63 B(LdaSmi), U8(-1),
64 B(Star), R(9), 64 B(Star), R(9),
65 B(Jump), U8(7), 65 B(Jump), U8(7),
66 B(Star), R(10), 66 B(Star), R(10),
67 B(LdaZero), 67 B(LdaZero),
68 B(Star), R(9), 68 B(Star), R(9),
69 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 69 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
70 B(Star), R(11), 70 B(Star), R(11),
71 B(LdaZero), 71 B(LdaZero),
72 B(TestEqualStrict), R(3), 72 B(TestEqualStrict), R(3),
73 B(JumpIfTrue), U8(5), 73 B(JumpIfTrue), U8(123),
74 B(LdaUndefined), 74 B(LdaUndefined),
75 B(TestEqualStrict), R(1), 75 B(TestEqualStrict), R(1),
76 B(ToBooleanLogicalNot), 76 B(JumpIfTrue), U8(118),
77 B(JumpIfFalse), U8(118),
78 B(LdrNamedProperty), R(1), U8(6), U8(13), R(5), 77 B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
79 B(LdaNull), 78 B(LdaNull),
80 B(TestEqual), R(5), 79 B(TestEqual), R(5),
81 B(JumpIfFalse), U8(4), 80 B(JumpIfFalse), U8(4),
82 B(Jump), U8(106), 81 B(Jump), U8(106),
83 B(LdaSmi), U8(1), 82 B(LdaSmi), U8(1),
84 B(TestEqualStrict), R(3), 83 B(TestEqualStrict), R(3),
85 B(JumpIfFalse), U8(75), 84 B(JumpIfFalse), U8(75),
86 B(Ldar), R(5), 85 B(Ldar), R(5),
87 B(TypeOf), 86 B(TypeOf),
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 136 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
138 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 137 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
139 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 138 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
140 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 139 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
141 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 140 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
142 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 141 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
143 ] 142 ]
144 handlers: [ 143 handlers: [
145 [7, 121, 127], 144 [7, 121, 127],
146 [10, 80, 82], 145 [10, 80, 82],
147 [200, 210, 212], 146 [199, 209, 211],
148 ] 147 ]
149 148
150 --- 149 ---
151 snippet: " 150 snippet: "
152 var x = 'potatoes'; 151 var x = 'potatoes';
153 for (var p of x) { return p; } 152 for (var p of x) { return p; }
154 " 153 "
155 frame size: 17 154 frame size: 17
156 parameter count: 1 155 parameter count: 1
157 bytecode array length: 296 156 bytecode array length: 295
158 bytecodes: [ 157 bytecodes: [
159 /* 30 E> */ B(StackCheck), 158 /* 30 E> */ B(StackCheck),
160 /* 42 S> */ B(LdaConstant), U8(0), 159 /* 42 S> */ B(LdaConstant), U8(0),
161 B(Star), R(7), 160 B(Star), R(7),
162 B(LdaZero), 161 B(LdaZero),
163 B(Star), R(3), 162 B(Star), R(3),
164 B(Mov), R(context), R(12), 163 B(Mov), R(context), R(12),
165 B(Mov), R(context), R(13), 164 B(Mov), R(context), R(13),
166 /* 68 S> */ B(LdaConstant), U8(1), 165 /* 68 S> */ B(LdaConstant), U8(1),
167 /* 68 E> */ B(LdrKeyedProperty), R(7), U8(3), R(14), 166 /* 68 E> */ B(LdrKeyedProperty), R(7), U8(3), R(14),
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 B(LdaSmi), U8(-1), 205 B(LdaSmi), U8(-1),
207 B(Star), R(10), 206 B(Star), R(10),
208 B(Jump), U8(8), 207 B(Jump), U8(8),
209 B(Star), R(11), 208 B(Star), R(11),
210 B(LdaSmi), U8(1), 209 B(LdaSmi), U8(1),
211 B(Star), R(10), 210 B(Star), R(10),
212 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 211 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
213 B(Star), R(12), 212 B(Star), R(12),
214 B(LdaZero), 213 B(LdaZero),
215 B(TestEqualStrict), R(3), 214 B(TestEqualStrict), R(3),
216 B(JumpIfTrue), U8(5), 215 B(JumpIfTrue), U8(123),
217 B(LdaUndefined), 216 B(LdaUndefined),
218 B(TestEqualStrict), R(1), 217 B(TestEqualStrict), R(1),
219 B(ToBooleanLogicalNot), 218 B(JumpIfTrue), U8(118),
220 B(JumpIfFalse), U8(118),
221 B(LdrNamedProperty), R(1), U8(6), U8(13), R(5), 219 B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
222 B(LdaNull), 220 B(LdaNull),
223 B(TestEqual), R(5), 221 B(TestEqual), R(5),
224 B(JumpIfFalse), U8(4), 222 B(JumpIfFalse), U8(4),
225 B(Jump), U8(106), 223 B(Jump), U8(106),
226 B(LdaSmi), U8(1), 224 B(LdaSmi), U8(1),
227 B(TestEqualStrict), R(3), 225 B(TestEqualStrict), R(3),
228 B(JumpIfFalse), U8(75), 226 B(JumpIfFalse), U8(75),
229 B(Ldar), R(5), 227 B(Ldar), R(5),
230 B(TypeOf), 228 B(TypeOf),
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 283 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
286 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 284 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
287 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 285 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
288 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 286 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
289 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 287 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
290 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 288 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
291 ] 289 ]
292 handlers: [ 290 handlers: [
293 [11, 124, 130], 291 [11, 124, 130],
294 [14, 83, 85], 292 [14, 83, 85],
295 [204, 214, 216], 293 [203, 213, 215],
296 ] 294 ]
297 295
298 --- 296 ---
299 snippet: " 297 snippet: "
300 for (var x of [10, 20, 30]) { 298 for (var x of [10, 20, 30]) {
301 if (x == 10) continue; 299 if (x == 10) continue;
302 if (x == 20) break; 300 if (x == 20) break;
303 } 301 }
304 " 302 "
305 frame size: 16 303 frame size: 16
306 parameter count: 1 304 parameter count: 1
307 bytecode array length: 299 305 bytecode array length: 298
308 bytecodes: [ 306 bytecodes: [
309 /* 30 E> */ B(StackCheck), 307 /* 30 E> */ B(StackCheck),
310 B(LdaZero), 308 B(LdaZero),
311 B(Star), R(3), 309 B(Star), R(3),
312 B(Mov), R(context), R(11), 310 B(Mov), R(context), R(11),
313 B(Mov), R(context), R(12), 311 B(Mov), R(context), R(12),
314 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 312 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
315 B(Star), R(14), 313 B(Star), R(14),
316 B(LdaConstant), U8(1), 314 B(LdaConstant), U8(1),
317 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13), 315 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13),
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 B(LdaSmi), U8(-1), 360 B(LdaSmi), U8(-1),
363 B(Star), R(9), 361 B(Star), R(9),
364 B(Jump), U8(7), 362 B(Jump), U8(7),
365 B(Star), R(10), 363 B(Star), R(10),
366 B(LdaZero), 364 B(LdaZero),
367 B(Star), R(9), 365 B(Star), R(9),
368 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 366 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
369 B(Star), R(11), 367 B(Star), R(11),
370 B(LdaZero), 368 B(LdaZero),
371 B(TestEqualStrict), R(3), 369 B(TestEqualStrict), R(3),
372 B(JumpIfTrue), U8(5), 370 B(JumpIfTrue), U8(123),
373 B(LdaUndefined), 371 B(LdaUndefined),
374 B(TestEqualStrict), R(1), 372 B(TestEqualStrict), R(1),
375 B(ToBooleanLogicalNot), 373 B(JumpIfTrue), U8(118),
376 B(JumpIfFalse), U8(118),
377 B(LdrNamedProperty), R(1), U8(6), U8(13), R(5), 374 B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
378 B(LdaNull), 375 B(LdaNull),
379 B(TestEqual), R(5), 376 B(TestEqual), R(5),
380 B(JumpIfFalse), U8(4), 377 B(JumpIfFalse), U8(4),
381 B(Jump), U8(106), 378 B(Jump), U8(106),
382 B(LdaSmi), U8(1), 379 B(LdaSmi), U8(1),
383 B(TestEqualStrict), R(3), 380 B(TestEqualStrict), R(3),
384 B(JumpIfFalse), U8(75), 381 B(JumpIfFalse), U8(75),
385 B(Ldar), R(5), 382 B(Ldar), R(5),
386 B(TypeOf), 383 B(TypeOf),
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 433 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
437 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 434 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
438 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 435 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
439 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 436 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
440 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 437 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
441 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 438 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
442 ] 439 ]
443 handlers: [ 440 handlers: [
444 [7, 137, 143], 441 [7, 137, 143],
445 [10, 96, 98], 442 [10, 96, 98],
446 [216, 226, 228], 443 [215, 225, 227],
447 ] 444 ]
448 445
449 --- 446 ---
450 snippet: " 447 snippet: "
451 var x = { 'a': 1, 'b': 2 }; 448 var x = { 'a': 1, 'b': 2 };
452 for (x['a'] of [1,2,3]) { return x['a']; } 449 for (x['a'] of [1,2,3]) { return x['a']; }
453 " 450 "
454 frame size: 15 451 frame size: 15
455 parameter count: 1 452 parameter count: 1
456 bytecode array length: 309 453 bytecode array length: 308
457 bytecodes: [ 454 bytecodes: [
458 /* 30 E> */ B(StackCheck), 455 /* 30 E> */ B(StackCheck),
459 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8), 456 /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8),
460 B(Mov), R(8), R(6), 457 B(Mov), R(8), R(6),
461 B(LdaZero), 458 B(LdaZero),
462 B(Star), R(2), 459 B(Star), R(2),
463 B(Mov), R(context), R(10), 460 B(Mov), R(context), R(10),
464 B(Mov), R(context), R(11), 461 B(Mov), R(context), R(11),
465 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3), 462 /* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
466 B(Star), R(13), 463 B(Star), R(13),
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 B(LdaSmi), U8(-1), 505 B(LdaSmi), U8(-1),
509 B(Star), R(8), 506 B(Star), R(8),
510 B(Jump), U8(8), 507 B(Jump), U8(8),
511 B(Star), R(9), 508 B(Star), R(9),
512 B(LdaSmi), U8(1), 509 B(LdaSmi), U8(1),
513 B(Star), R(8), 510 B(Star), R(8),
514 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 511 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
515 B(Star), R(10), 512 B(Star), R(10),
516 B(LdaZero), 513 B(LdaZero),
517 B(TestEqualStrict), R(2), 514 B(TestEqualStrict), R(2),
518 B(JumpIfTrue), U8(5), 515 B(JumpIfTrue), U8(123),
519 B(LdaUndefined), 516 B(LdaUndefined),
520 B(TestEqualStrict), R(0), 517 B(TestEqualStrict), R(0),
521 B(ToBooleanLogicalNot), 518 B(JumpIfTrue), U8(118),
522 B(JumpIfFalse), U8(118),
523 B(LdrNamedProperty), R(0), U8(8), U8(17), R(4), 519 B(LdrNamedProperty), R(0), U8(8), U8(17), R(4),
524 B(LdaNull), 520 B(LdaNull),
525 B(TestEqual), R(4), 521 B(TestEqual), R(4),
526 B(JumpIfFalse), U8(4), 522 B(JumpIfFalse), U8(4),
527 B(Jump), U8(106), 523 B(Jump), U8(106),
528 B(LdaSmi), U8(1), 524 B(LdaSmi), U8(1),
529 B(TestEqualStrict), R(2), 525 B(TestEqualStrict), R(2),
530 B(JumpIfFalse), U8(75), 526 B(JumpIfFalse), U8(75),
531 B(Ldar), R(4), 527 B(Ldar), R(4),
532 B(TypeOf), 528 B(TypeOf),
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 585 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
590 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 586 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
591 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 587 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
592 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 588 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
593 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 589 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
594 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 590 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
595 ] 591 ]
596 handlers: [ 592 handlers: [
597 [15, 137, 143], 593 [15, 137, 143],
598 [18, 96, 98], 594 [18, 96, 98],
599 [217, 227, 229], 595 [216, 226, 228],
600 ] 596 ]
601 597
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698