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

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

Issue 2331033002: [interpreter] Merge {OsrPoll} with {Jump} bytecode. (Closed)
Patch Set: One more test. Created 4 years, 3 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 execute: yes 6 execute: yes
7 wrap: yes 7 wrap: yes
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
11 for (var p of [0, 1, 2]) {} 11 for (var p of [0, 1, 2]) {}
12 " 12 "
13 frame size: 15 13 frame size: 15
14 parameter count: 1 14 parameter count: 1
15 bytecode array length: 278 15 bytecode array length: 279
16 bytecodes: [ 16 bytecodes: [
17 /* 30 E> */ B(StackCheck), 17 /* 30 E> */ B(StackCheck),
18 B(LdaZero), 18 B(LdaZero),
19 B(Star), R(4), 19 B(Star), R(4),
20 B(Mov), R(context), R(11), 20 B(Mov), R(context), R(11),
21 B(Mov), R(context), R(12), 21 B(Mov), R(context), R(12),
22 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1), 22 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1),
23 B(Star), R(14), 23 B(Star), R(14),
24 B(LdaConstant), U8(1), 24 B(LdaConstant), U8(1),
25 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13), 25 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13),
26 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), 26 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1),
27 B(Star), R(2), 27 B(Star), R(2),
28 /* 45 S> */ B(LdrNamedProperty), R(2), U8(2), U8(7), R(14), 28 /* 45 S> */ B(LdrNamedProperty), R(2), U8(2), U8(7), R(14),
29 /* 45 E> */ B(Call), R(14), R(2), U8(1), U8(5), 29 /* 45 E> */ B(Call), R(14), R(2), U8(1), U8(5),
30 B(Star), R(3), 30 B(Star), R(3),
31 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1), 31 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1),
32 B(ToBooleanLogicalNot), 32 B(ToBooleanLogicalNot),
33 B(JumpIfFalse), U8(7), 33 B(JumpIfFalse), U8(7),
34 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1), 34 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1),
35 B(LdaNamedProperty), R(3), U8(3), U8(9), 35 B(LdaNamedProperty), R(3), U8(3), U8(9),
36 B(JumpIfToBooleanTrue), U8(23), 36 B(JumpIfToBooleanTrue), U8(24),
37 B(LdrNamedProperty), R(3), U8(4), U8(11), R(5), 37 B(LdrNamedProperty), R(3), U8(4), U8(11), R(5),
38 B(LdaSmi), U8(2), 38 B(LdaSmi), U8(2),
39 B(Star), R(4), 39 B(Star), R(4),
40 B(Mov), R(5), R(0), 40 B(Mov), R(5), R(0),
41 /* 34 E> */ B(StackCheck), 41 /* 34 E> */ B(StackCheck),
42 B(Mov), R(0), R(1), 42 B(Mov), R(0), R(1),
43 B(LdaZero), 43 B(LdaZero),
44 B(Star), R(4), 44 B(Star), R(4),
45 B(Jump), U8(-49), 45 B(JumpLoop), U8(-49), U8(0),
46 B(Jump), U8(37), 46 B(Jump), U8(37),
47 B(Star), R(13), 47 B(Star), R(13),
48 B(Ldar), R(closure), 48 B(Ldar), R(closure),
49 B(CreateCatchContext), R(13), U8(5), U8(6), 49 B(CreateCatchContext), R(13), U8(5), U8(6),
50 B(Star), R(12), 50 B(Star), R(12),
51 B(PushContext), R(8), 51 B(PushContext), R(8),
52 B(LdaSmi), U8(2), 52 B(LdaSmi), U8(2),
53 B(TestEqualStrict), R(4), U8(13), 53 B(TestEqualStrict), R(4), U8(13),
54 B(JumpIfFalse), U8(6), 54 B(JumpIfFalse), U8(6),
55 B(LdaSmi), U8(1), 55 B(LdaSmi), U8(1),
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 131 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
132 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 132 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
133 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 133 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
134 FIXED_ARRAY_TYPE, 134 FIXED_ARRAY_TYPE,
135 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 135 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
136 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 136 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
137 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 137 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
138 FIXED_ARRAY_TYPE, 138 FIXED_ARRAY_TYPE,
139 ] 139 ]
140 handlers: [ 140 handlers: [
141 [7, 117, 123], 141 [7, 118, 124],
142 [10, 80, 82], 142 [10, 81, 83],
143 [200, 210, 212], 143 [201, 211, 213],
144 ] 144 ]
145 145
146 --- 146 ---
147 snippet: " 147 snippet: "
148 var x = 'potatoes'; 148 var x = 'potatoes';
149 for (var p of x) { return p; } 149 for (var p of x) { return p; }
150 " 150 "
151 frame size: 16 151 frame size: 16
152 parameter count: 1 152 parameter count: 1
153 bytecode array length: 290 153 bytecode array length: 290
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 --- 290 ---
291 snippet: " 291 snippet: "
292 for (var x of [10, 20, 30]) { 292 for (var x of [10, 20, 30]) {
293 if (x == 10) continue; 293 if (x == 10) continue;
294 if (x == 20) break; 294 if (x == 20) break;
295 } 295 }
296 " 296 "
297 frame size: 15 297 frame size: 15
298 parameter count: 1 298 parameter count: 1
299 bytecode array length: 296 299 bytecode array length: 297
300 bytecodes: [ 300 bytecodes: [
301 /* 30 E> */ B(StackCheck), 301 /* 30 E> */ B(StackCheck),
302 B(LdaZero), 302 B(LdaZero),
303 B(Star), R(4), 303 B(Star), R(4),
304 B(Mov), R(context), R(11), 304 B(Mov), R(context), R(11),
305 B(Mov), R(context), R(12), 305 B(Mov), R(context), R(12),
306 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1), 306 /* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(1),
307 B(Star), R(14), 307 B(Star), R(14),
308 B(LdaConstant), U8(1), 308 B(LdaConstant), U8(1),
309 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13), 309 /* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13),
310 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1), 310 /* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1),
311 B(Star), R(2), 311 B(Star), R(2),
312 /* 45 S> */ B(LdrNamedProperty), R(2), U8(2), U8(7), R(14), 312 /* 45 S> */ B(LdrNamedProperty), R(2), U8(2), U8(7), R(14),
313 /* 45 E> */ B(Call), R(14), R(2), U8(1), U8(5), 313 /* 45 E> */ B(Call), R(14), R(2), U8(1), U8(5),
314 B(Star), R(3), 314 B(Star), R(3),
315 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1), 315 /* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1),
316 B(ToBooleanLogicalNot), 316 B(ToBooleanLogicalNot),
317 B(JumpIfFalse), U8(7), 317 B(JumpIfFalse), U8(7),
318 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1), 318 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (3), U8(1),
319 B(LdaNamedProperty), R(3), U8(3), U8(9), 319 B(LdaNamedProperty), R(3), U8(3), U8(9),
320 B(JumpIfToBooleanTrue), U8(41), 320 B(JumpIfToBooleanTrue), U8(42),
321 B(LdrNamedProperty), R(3), U8(4), U8(11), R(5), 321 B(LdrNamedProperty), R(3), U8(4), U8(11), R(5),
322 B(LdaSmi), U8(2), 322 B(LdaSmi), U8(2),
323 B(Star), R(4), 323 B(Star), R(4),
324 B(Mov), R(5), R(0), 324 B(Mov), R(5), R(0),
325 /* 34 E> */ B(StackCheck), 325 /* 34 E> */ B(StackCheck),
326 B(Mov), R(0), R(1), 326 B(Mov), R(0), R(1),
327 /* 66 S> */ B(LdaSmi), U8(10), 327 /* 66 S> */ B(LdaSmi), U8(10),
328 /* 72 E> */ B(TestEqual), R(1), U8(13), 328 /* 72 E> */ B(TestEqual), R(1), U8(13),
329 B(JumpIfFalse), U8(4), 329 B(JumpIfFalse), U8(4),
330 /* 79 S> */ B(Jump), U8(14), 330 /* 79 S> */ B(Jump), U8(14),
331 /* 91 S> */ B(LdaSmi), U8(20), 331 /* 91 S> */ B(LdaSmi), U8(20),
332 /* 97 E> */ B(TestEqual), R(1), U8(14), 332 /* 97 E> */ B(TestEqual), R(1), U8(14),
333 B(JumpIfFalse), U8(4), 333 B(JumpIfFalse), U8(4),
334 /* 104 S> */ B(Jump), U8(7), 334 /* 104 S> */ B(Jump), U8(8),
335 B(LdaZero), 335 B(LdaZero),
336 B(Star), R(4), 336 B(Star), R(4),
337 B(Jump), U8(-67), 337 B(JumpLoop), U8(-67), U8(0),
338 B(Jump), U8(37), 338 B(Jump), U8(37),
339 B(Star), R(13), 339 B(Star), R(13),
340 B(Ldar), R(closure), 340 B(Ldar), R(closure),
341 B(CreateCatchContext), R(13), U8(5), U8(6), 341 B(CreateCatchContext), R(13), U8(5), U8(6),
342 B(Star), R(12), 342 B(Star), R(12),
343 B(PushContext), R(8), 343 B(PushContext), R(8),
344 B(LdaSmi), U8(2), 344 B(LdaSmi), U8(2),
345 B(TestEqualStrict), R(4), U8(15), 345 B(TestEqualStrict), R(4), U8(15),
346 B(JumpIfFalse), U8(6), 346 B(JumpIfFalse), U8(6),
347 B(LdaSmi), U8(1), 347 B(LdaSmi), U8(1),
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 423 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
424 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 424 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
425 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 425 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
426 FIXED_ARRAY_TYPE, 426 FIXED_ARRAY_TYPE,
427 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 427 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
428 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 428 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
429 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 429 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
430 FIXED_ARRAY_TYPE, 430 FIXED_ARRAY_TYPE,
431 ] 431 ]
432 handlers: [ 432 handlers: [
433 [7, 135, 141], 433 [7, 136, 142],
434 [10, 98, 100], 434 [10, 99, 101],
435 [218, 228, 230], 435 [219, 229, 231],
436 ] 436 ]
437 437
438 --- 438 ---
439 snippet: " 439 snippet: "
440 var x = { 'a': 1, 'b': 2 }; 440 var x = { 'a': 1, 'b': 2 };
441 for (x['a'] of [1,2,3]) { return x['a']; } 441 for (x['a'] of [1,2,3]) { return x['a']; }
442 " 442 "
443 frame size: 14 443 frame size: 14
444 parameter count: 1 444 parameter count: 1
445 bytecode array length: 303 445 bytecode array length: 303
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 577 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
578 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 578 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
579 FIXED_ARRAY_TYPE, 579 FIXED_ARRAY_TYPE,
580 ] 580 ]
581 handlers: [ 581 handlers: [
582 [15, 131, 137], 582 [15, 131, 137],
583 [18, 94, 96], 583 [18, 94, 96],
584 [215, 225, 227], 584 [215, 225, 227],
585 ] 585 ]
586 586
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698