| 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: " |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 [53, 228, 234], | 273 [53, 228, 234], |
| 274 ] | 274 ] |
| 275 | 275 |
| 276 --- | 276 --- |
| 277 snippet: " | 277 snippet: " |
| 278 function* f() { for (let x of [42]) yield x } | 278 function* f() { for (let x of [42]) yield x } |
| 279 f(); | 279 f(); |
| 280 " | 280 " |
| 281 frame size: 18 | 281 frame size: 18 |
| 282 parameter count: 1 | 282 parameter count: 1 |
| 283 bytecode array length: 775 | 283 bytecode array length: 773 |
| 284 bytecodes: [ | 284 bytecodes: [ |
| 285 B(Ldar), R(new_target), | 285 B(Ldar), R(new_target), |
| 286 B(JumpIfUndefined), U8(35), | 286 B(JumpIfUndefined), U8(35), |
| 287 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 287 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 288 B(PushContext), R(4), | 288 B(PushContext), R(4), |
| 289 B(ResumeGenerator), R(new_target), | 289 B(ResumeGenerator), R(new_target), |
| 290 B(Star), R(3), | 290 B(Star), R(3), |
| 291 B(LdaZero), | 291 B(LdaZero), |
| 292 B(TestEqualStrict), R(3), U8(0), | 292 B(TestEqualStrict), R(3), U8(0), |
| 293 B(JumpIfTrue), U8(60), | 293 B(JumpIfTrue), U8(60), |
| 294 B(LdaSmi), I8(1), | 294 B(LdaSmi), I8(1), |
| 295 B(TestEqualStrict), R(3), U8(0), | 295 B(TestEqualStrict), R(3), U8(0), |
| 296 B(JumpIfTrue), U8(154), | 296 B(JumpIfTrue), U8(153), |
| 297 B(LdaSmi), I8(78), | 297 B(LdaSmi), I8(78), |
| 298 B(Star), R(5), | 298 B(Star), R(5), |
| 299 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), | 299 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), |
| 300 B(LdaSmi), I8(-2), | 300 B(LdaSmi), I8(-2), |
| 301 B(Star), R(3), | 301 B(Star), R(3), |
| 302 B(CreateFunctionContext), U8(9), | 302 B(CreateFunctionContext), U8(9), |
| 303 B(PushContext), R(0), | 303 B(PushContext), R(0), |
| 304 B(Ldar), R(this), | 304 B(Ldar), R(this), |
| 305 B(StaCurrentContextSlot), U8(4), | 305 B(StaCurrentContextSlot), U8(4), |
| 306 /* 11 E> */ B(StackCheck), | 306 /* 11 E> */ B(StackCheck), |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 B(LdaTheHole), | 346 B(LdaTheHole), |
| 347 B(StaCurrentContextSlot), U8(4), | 347 B(StaCurrentContextSlot), U8(4), |
| 348 B(LdaZero), | 348 B(LdaZero), |
| 349 B(StaContextSlot), R(1), U8(9), U8(0), | 349 B(StaContextSlot), R(1), U8(9), U8(0), |
| 350 B(Mov), R(context), R(10), | 350 B(Mov), R(context), R(10), |
| 351 B(Mov), R(context), R(11), | 351 B(Mov), R(context), R(11), |
| 352 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(9), | 352 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(2), U8(9), |
| 353 B(Star), R(12), | 353 B(Star), R(12), |
| 354 B(LdaNamedProperty), R(12), U8(2), U8(3), | 354 B(LdaNamedProperty), R(12), U8(2), U8(3), |
| 355 B(Star), R(13), | 355 B(Star), R(13), |
| 356 B(CallProperty), R(13), R(12), U8(1), U8(5), | 356 B(CallProperty0), R(13), R(12), U8(5), |
| 357 B(JumpIfJSReceiver), U8(7), | 357 B(JumpIfJSReceiver), U8(7), |
| 358 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), | 358 B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0),
U8(0), |
| 359 /* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0), | 359 /* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0), |
| 360 B(LdaSmi), I8(-2), | 360 B(LdaSmi), I8(-2), |
| 361 B(TestEqual), R(3), U8(0), | 361 B(TestEqual), R(3), U8(0), |
| 362 B(JumpIfTrue), U8(18), | 362 B(JumpIfTrue), U8(18), |
| 363 B(LdaSmi), I8(1), | 363 B(LdaSmi), I8(1), |
| 364 B(TestEqualStrict), R(3), U8(0), | 364 B(TestEqualStrict), R(3), U8(0), |
| 365 B(JumpIfTrue), U8(134), | 365 B(JumpIfTrue), U8(133), |
| 366 B(LdaSmi), I8(78), | 366 B(LdaSmi), I8(78), |
| 367 B(Star), R(12), | 367 B(Star), R(12), |
| 368 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), | 368 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), |
| 369 /* 27 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), | 369 /* 27 S> */ B(LdaContextSlot), R(1), U8(7), U8(0), |
| 370 B(Star), R(13), | 370 B(Star), R(13), |
| 371 B(LdaNamedProperty), R(13), U8(3), U8(9), | 371 B(LdaNamedProperty), R(13), U8(3), U8(9), |
| 372 B(Star), R(12), | 372 B(Star), R(12), |
| 373 /* 27 E> */ B(CallProperty), R(12), R(13), U8(1), U8(7), | 373 /* 27 E> */ B(CallProperty0), R(12), R(13), U8(7), |
| 374 /* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0), | 374 /* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0), |
| 375 B(Star), R(12), | 375 B(Star), R(12), |
| 376 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), | 376 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), |
| 377 B(ToBooleanLogicalNot), | 377 B(ToBooleanLogicalNot), |
| 378 B(JumpIfFalse), U8(13), | 378 B(JumpIfFalse), U8(13), |
| 379 B(LdaContextSlot), R(1), U8(8), U8(0), | 379 B(LdaContextSlot), R(1), U8(8), U8(0), |
| 380 B(Star), R(12), | 380 B(Star), R(12), |
| 381 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), | 381 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), |
| 382 B(LdaContextSlot), R(1), U8(8), U8(0), | 382 B(LdaContextSlot), R(1), U8(8), U8(0), |
| 383 B(Star), R(12), | 383 B(Star), R(12), |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 B(PopContext), R(2), | 436 B(PopContext), R(2), |
| 437 B(Star), R(9), | 437 B(Star), R(9), |
| 438 B(LdaZero), | 438 B(LdaZero), |
| 439 B(Star), R(8), | 439 B(Star), R(8), |
| 440 B(Jump), U8(71), | 440 B(Jump), U8(71), |
| 441 B(Ldar), R(14), | 441 B(Ldar), R(14), |
| 442 /* 36 E> */ B(Throw), | 442 /* 36 E> */ B(Throw), |
| 443 B(PopContext), R(2), | 443 B(PopContext), R(2), |
| 444 B(LdaZero), | 444 B(LdaZero), |
| 445 B(StaContextSlot), R(1), U8(9), U8(0), | 445 B(StaContextSlot), R(1), U8(9), U8(0), |
| 446 B(JumpLoop), U8(218), I8(0), | 446 B(JumpLoop), U8(217), I8(0), |
| 447 B(Jump), U8(44), | 447 B(Jump), U8(44), |
| 448 B(Star), R(12), | 448 B(Star), R(12), |
| 449 B(Ldar), R(closure), | 449 B(Ldar), R(closure), |
| 450 B(CreateCatchContext), R(12), U8(7), U8(8), | 450 B(CreateCatchContext), R(12), U8(7), U8(8), |
| 451 B(Star), R(11), | 451 B(Star), R(11), |
| 452 B(PushContext), R(2), | 452 B(PushContext), R(2), |
| 453 B(LdaContextSlot), R(1), U8(9), U8(0), | 453 B(LdaContextSlot), R(1), U8(9), U8(0), |
| 454 B(Star), R(12), | 454 B(Star), R(12), |
| 455 B(LdaSmi), I8(2), | 455 B(LdaSmi), I8(2), |
| 456 B(TestEqualStrict), R(12), U8(15), | 456 B(TestEqualStrict), R(12), U8(15), |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], | 614 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
| 615 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], | 615 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
| 616 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 616 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
| 617 FIXED_ARRAY_TYPE, | 617 FIXED_ARRAY_TYPE, |
| 618 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 618 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
| 619 FIXED_ARRAY_TYPE, | 619 FIXED_ARRAY_TYPE, |
| 620 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 620 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
| 621 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], | 621 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], |
| 622 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 622 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
| 623 FIXED_ARRAY_TYPE, | 623 FIXED_ARRAY_TYPE, |
| 624 Smi [579], | 624 Smi [577], |
| 625 ] | 625 ] |
| 626 handlers: [ | 626 handlers: [ |
| 627 [53, 694, 700], | 627 [53, 692, 698], |
| 628 [149, 445, 451], | 628 [149, 443, 449], |
| 629 [152, 401, 403], | 629 [152, 399, 401], |
| 630 [547, 563, 565], | 630 [545, 561, 563], |
| 631 ] | 631 ] |
| 632 | 632 |
| OLD | NEW |