OLD | NEW |
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 Loading... |
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 Loading... |
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: 769 | 280 bytecode array length: 775 |
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 Loading... |
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 /* 44 S> */ B(Return), | 599 /* 44 S> */ B(Return), |
599 B(Ldar), R(5), | 600 B(Ldar), R(5), |
600 B(ReThrow), | 601 B(ReThrow), |
601 B(LdaUndefined), | 602 B(LdaUndefined), |
602 /* 44 S> */ B(Return), | 603 /* 44 S> */ B(Return), |
603 ] | 604 ] |
604 constant pool: [ | 605 constant pool: [ |
605 FIXED_ARRAY_TYPE, | 606 FIXED_ARRAY_TYPE, |
606 FIXED_ARRAY_TYPE, | 607 FIXED_ARRAY_TYPE, |
607 SYMBOL_TYPE, | 608 SYMBOL_TYPE, |
608 Smi [149], | 609 Smi [155], |
609 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], | 610 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
610 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], | 611 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
611 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 612 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
612 FIXED_ARRAY_TYPE, | 613 FIXED_ARRAY_TYPE, |
613 Smi [135], | 614 Smi [135], |
614 Smi [152], | 615 Smi [152], |
615 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 616 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
616 FIXED_ARRAY_TYPE, | 617 FIXED_ARRAY_TYPE, |
617 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 618 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
618 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], | 619 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], |
619 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 620 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
620 FIXED_ARRAY_TYPE, | 621 FIXED_ARRAY_TYPE, |
621 Smi [133], | 622 Smi [133], |
622 Smi [159], | 623 Smi [159], |
623 Smi [579], | 624 Smi [585], |
624 ] | 625 ] |
625 handlers: [ | 626 handlers: [ |
626 [46, 688, 694], | 627 [46, 694, 700], |
627 [143, 438, 444], | 628 [143, 444, 450], |
628 [146, 394, 396], | 629 [146, 400, 402], |
629 [540, 556, 558], | 630 [546, 562, 564], |
630 ] | 631 ] |
631 | 632 |
OLD | NEW |