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

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

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: get tests passing 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: no 6 wrap: no
7 test function name: f 7 test function name: f
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
11 function* f() { } 11 function* f() { }
12 f(); 12 f();
13 " 13 "
14 frame size: 11 14 frame size: 11
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 199 16 bytecode array length: 199
17 bytecodes: [ 17 bytecodes: [
18 B(Ldar), R(new_target), 18 B(Ldar), R(new_target),
19 B(JumpIfUndefined), U8(21), 19 B(JumpIfUndefined), U8(21),
20 B(ResumeGenerator), R(new_target), 20 B(ResumeGenerator), R(new_target),
21 B(Star), R(1), 21 B(Star), R(1),
22 B(LdaZero), 22 B(LdaZero),
23 B(TestEqualStrict), R(1), U8(0), 23 B(TestEqualStrict), R(1), U8(0),
24 B(JumpIfTrue), U8(53), 24 B(JumpIfTrue), U8(53),
25 B(LdaSmi), U8(77), 25 B(LdaSmi), U8(78),
26 B(Star), R(2), 26 B(Star), R(2),
27 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 27 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
28 B(LdaSmi), U8(-2), 28 B(LdaSmi), U8(-2),
29 B(Star), R(1), 29 B(Star), R(1),
30 B(CreateFunctionContext), U8(2), 30 B(CreateFunctionContext), U8(2),
31 B(PushContext), R(0), 31 B(PushContext), R(0),
32 B(Ldar), R(this), 32 B(Ldar), R(this),
33 B(StaCurrentContextSlot), U8(4), 33 B(StaCurrentContextSlot), U8(4),
34 /* 11 E> */ B(StackCheck), 34 /* 11 E> */ B(StackCheck),
35 B(Mov), R(context), R(4), 35 B(Mov), R(context), R(4),
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 B(Ldar), R(new_target), 128 B(Ldar), R(new_target),
129 B(JumpIfUndefined), U8(28), 129 B(JumpIfUndefined), U8(28),
130 B(ResumeGenerator), R(new_target), 130 B(ResumeGenerator), R(new_target),
131 B(Star), R(1), 131 B(Star), R(1),
132 B(LdaZero), 132 B(LdaZero),
133 B(TestEqualStrict), R(1), U8(0), 133 B(TestEqualStrict), R(1), U8(0),
134 B(JumpIfTrue), U8(60), 134 B(JumpIfTrue), U8(60),
135 B(LdaSmi), U8(1), 135 B(LdaSmi), U8(1),
136 B(TestEqualStrict), R(1), U8(0), 136 B(TestEqualStrict), R(1), U8(0),
137 B(JumpIfTrueConstant), U8(0), 137 B(JumpIfTrueConstant), U8(0),
138 B(LdaSmi), U8(77), 138 B(LdaSmi), U8(78),
139 B(Star), R(2), 139 B(Star), R(2),
140 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 140 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
141 B(LdaSmi), U8(-2), 141 B(LdaSmi), U8(-2),
142 B(Star), R(1), 142 B(Star), R(1),
143 B(CreateFunctionContext), U8(2), 143 B(CreateFunctionContext), U8(2),
144 B(PushContext), R(0), 144 B(PushContext), R(0),
145 B(Ldar), R(this), 145 B(Ldar), R(this),
146 B(StaCurrentContextSlot), U8(4), 146 B(StaCurrentContextSlot), U8(4),
147 /* 11 E> */ B(StackCheck), 147 /* 11 E> */ B(StackCheck),
148 B(Mov), R(context), R(4), 148 B(Mov), R(context), R(4),
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 [46, 225, 231], 270 [46, 225, 231],
271 ] 271 ]
272 272
273 --- 273 ---
274 snippet: " 274 snippet: "
275 function* f() { for (let x of [42]) yield x } 275 function* f() { for (let x of [42]) yield x }
276 f(); 276 f();
277 " 277 "
278 frame size: 17 278 frame size: 17
279 parameter count: 1 279 parameter count: 1
280 bytecode array length: 771 280 bytecode array length: 777
281 bytecodes: [ 281 bytecodes: [
282 B(Ldar), R(new_target), 282 B(Ldar), R(new_target),
283 B(JumpIfUndefined), U8(28), 283 B(JumpIfUndefined), U8(28),
284 B(ResumeGenerator), R(new_target), 284 B(ResumeGenerator), R(new_target),
285 B(Star), R(3), 285 B(Star), R(3),
286 B(LdaZero), 286 B(LdaZero),
287 B(TestEqualStrict), R(3), U8(0), 287 B(TestEqualStrict), R(3), U8(0),
288 B(JumpIfTrue), U8(60), 288 B(JumpIfTrue), U8(60),
289 B(LdaSmi), U8(1), 289 B(LdaSmi), U8(1),
290 B(TestEqualStrict), R(3), U8(0), 290 B(TestEqualStrict), R(3), U8(0),
291 B(JumpIfTrueConstant), U8(3), 291 B(JumpIfTrueConstant), U8(3),
292 B(LdaSmi), U8(77), 292 B(LdaSmi), U8(78),
293 B(Star), R(4), 293 B(Star), R(4),
294 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), 294 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1),
295 B(LdaSmi), U8(-2), 295 B(LdaSmi), U8(-2),
296 B(Star), R(3), 296 B(Star), R(3),
297 B(CreateFunctionContext), U8(9), 297 B(CreateFunctionContext), U8(9),
298 B(PushContext), R(0), 298 B(PushContext), R(0),
299 B(Ldar), R(this), 299 B(Ldar), R(this),
300 B(StaCurrentContextSlot), U8(4), 300 B(StaCurrentContextSlot), U8(4),
301 /* 11 E> */ B(StackCheck), 301 /* 11 E> */ B(StackCheck),
302 B(Mov), R(context), R(6), 302 B(Mov), R(context), R(6),
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 B(Ldar), R(closure), 338 B(Ldar), R(closure),
339 B(CreateBlockContext), U8(0), 339 B(CreateBlockContext), U8(0),
340 B(PushContext), R(1), 340 B(PushContext), R(1),
341 B(LdaTheHole), 341 B(LdaTheHole),
342 B(StaCurrentContextSlot), U8(4), 342 B(StaCurrentContextSlot), U8(4),
343 B(LdaZero), 343 B(LdaZero),
344 B(StaContextSlot), R(1), U8(9), U8(0), 344 B(StaContextSlot), R(1), U8(9), U8(0),
345 B(Mov), R(context), R(9), 345 B(Mov), R(context), R(9),
346 B(Mov), R(context), R(10), 346 B(Mov), R(context), R(10),
347 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(0), U8(9), 347 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(0), U8(9),
348 B(Star), R(11),
349 B(LdaNamedProperty), R(11), U8(2), U8(2),
348 B(Star), R(12), 350 B(Star), R(12),
349 B(LdaConstant), U8(2), 351 B(CallProperty), R(12), R(11), U8(1), U8(4),
350 /* 30 E> */ B(LdaKeyedProperty), R(12), U8(4), 352 B(JumpIfJSReceiver), U8(7),
351 B(Star), R(11), 353 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
352 /* 30 E> */ B(CallProperty), R(11), R(12), U8(1), U8(2),
353 /* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0), 354 /* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0),
354 B(LdaSmi), U8(-2), 355 B(LdaSmi), U8(-2),
355 B(TestEqual), R(3), U8(0), 356 B(TestEqual), R(3), U8(0),
356 B(JumpIfTrue), U8(18), 357 B(JumpIfTrue), U8(18),
357 B(LdaSmi), U8(1), 358 B(LdaSmi), U8(1),
358 B(TestEqualStrict), R(3), U8(0), 359 B(TestEqualStrict), R(3), U8(0),
359 B(JumpIfTrueConstant), U8(8), 360 B(JumpIfTrueConstant), U8(8),
360 B(LdaSmi), U8(77), 361 B(LdaSmi), U8(78),
361 B(Star), R(11), 362 B(Star), R(11),
362 B(CallRuntime), U16(Runtime::kAbort), R(11), U8(1), 363 B(CallRuntime), U16(Runtime::kAbort), R(11), U8(1),
363 /* 27 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), 364 /* 27 S> */ B(LdaContextSlot), R(1), U8(7), U8(0),
364 B(Star), R(13), 365 B(Star), R(13),
365 B(LdaNamedProperty), R(13), U8(4), U8(8), 366 B(LdaNamedProperty), R(13), U8(4), U8(8),
366 B(Star), R(12), 367 B(Star), R(12),
367 /* 27 E> */ B(CallProperty), R(12), R(13), U8(1), U8(6), 368 /* 27 E> */ B(CallProperty), R(12), R(13), U8(1), U8(6),
368 /* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0), 369 /* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0),
369 B(Star), R(11), 370 B(Star), R(11),
370 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1), 371 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1),
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 /* 44 S> */ B(Return), 600 /* 44 S> */ B(Return),
600 B(Ldar), R(5), 601 B(Ldar), R(5),
601 B(ReThrow), 602 B(ReThrow),
602 B(LdaUndefined), 603 B(LdaUndefined),
603 /* 44 S> */ B(Return), 604 /* 44 S> */ B(Return),
604 ] 605 ]
605 constant pool: [ 606 constant pool: [
606 FIXED_ARRAY_TYPE, 607 FIXED_ARRAY_TYPE,
607 FIXED_ARRAY_TYPE, 608 FIXED_ARRAY_TYPE,
608 SYMBOL_TYPE, 609 SYMBOL_TYPE,
609 Smi [149], 610 Smi [155],
610 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], 611 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
611 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 612 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
612 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 613 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
613 FIXED_ARRAY_TYPE, 614 FIXED_ARRAY_TYPE,
614 Smi [135], 615 Smi [135],
615 Smi [152], 616 Smi [152],
616 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 617 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
617 FIXED_ARRAY_TYPE, 618 FIXED_ARRAY_TYPE,
618 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 619 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
619 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 620 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
620 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 621 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
621 FIXED_ARRAY_TYPE, 622 FIXED_ARRAY_TYPE,
622 Smi [133], 623 Smi [133],
623 Smi [161], 624 Smi [161],
624 Smi [581], 625 Smi [587],
625 ] 626 ]
626 handlers: [ 627 handlers: [
627 [46, 690, 696], 628 [46, 696, 702],
628 [143, 438, 444], 629 [143, 444, 450],
629 [146, 394, 396], 630 [146, 400, 402],
630 [542, 558, 560], 631 [548, 564, 566],
631 ] 632 ]
632 633
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698