| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 [46, 223, 229], | 259 [46, 223, 229], |
| 260 ] | 260 ] |
| 261 | 261 |
| 262 --- | 262 --- |
| 263 snippet: " | 263 snippet: " |
| 264 function* f() { for (let x of [42]) yield x } | 264 function* f() { for (let x of [42]) yield x } |
| 265 f(); | 265 f(); |
| 266 " | 266 " |
| 267 frame size: 18 | 267 frame size: 18 |
| 268 parameter count: 1 | 268 parameter count: 1 |
| 269 bytecode array length: 773 | 269 bytecode array length: 775 |
| 270 bytecodes: [ | 270 bytecodes: [ |
| 271 B(Ldar), R(new_target), | 271 B(Ldar), R(new_target), |
| 272 B(JumpIfUndefined), U8(28), | 272 B(JumpIfUndefined), U8(28), |
| 273 B(ResumeGenerator), R(new_target), | 273 B(ResumeGenerator), R(new_target), |
| 274 B(Star), R(4), | 274 B(Star), R(4), |
| 275 B(LdaZero), | 275 B(LdaZero), |
| 276 B(TestEqualStrict), R(4), U8(0), | 276 B(TestEqualStrict), R(4), U8(0), |
| 277 B(JumpIfTrue), U8(60), | 277 B(JumpIfTrue), U8(60), |
| 278 B(LdaSmi), U8(1), | 278 B(LdaSmi), U8(1), |
| 279 B(TestEqualStrict), R(4), U8(0), | 279 B(TestEqualStrict), R(4), U8(0), |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 B(TestEqualStrict), R(11), U8(0), | 313 B(TestEqualStrict), R(11), U8(0), |
| 314 B(JumpIfTrue), U8(22), | 314 B(JumpIfTrue), U8(22), |
| 315 B(Jump), U8(2), | 315 B(Jump), U8(2), |
| 316 B(LdaTrue), | 316 B(LdaTrue), |
| 317 B(Star), R(13), | 317 B(Star), R(13), |
| 318 B(Mov), R(10), R(12), | 318 B(Mov), R(10), R(12), |
| 319 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U
8(2), | 319 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U
8(2), |
| 320 B(Star), R(6), | 320 B(Star), R(6), |
| 321 B(LdaZero), | 321 B(LdaZero), |
| 322 B(Star), R(5), | 322 B(Star), R(5), |
| 323 B(JumpConstant), U8(19), | 323 B(JumpConstant), U8(17), |
| 324 B(Ldar), R(10), | 324 B(Ldar), R(10), |
| 325 /* 11 E> */ B(Throw), | 325 /* 11 E> */ B(Throw), |
| 326 B(Ldar), R(closure), | 326 B(Ldar), R(closure), |
| 327 B(CreateBlockContext), U8(0), | 327 B(CreateBlockContext), U8(0), |
| 328 B(PushContext), R(1), | 328 B(PushContext), R(1), |
| 329 B(LdaTheHole), | 329 B(LdaTheHole), |
| 330 B(StaCurrentContextSlot), U8(4), | 330 B(StaCurrentContextSlot), U8(4), |
| 331 B(LdaZero), | 331 B(LdaZero), |
| 332 B(StaContextSlot), R(1), U8(9), U8(0), | 332 B(StaContextSlot), R(1), U8(9), U8(0), |
| 333 B(Mov), R(context), R(10), | 333 B(Mov), R(context), R(10), |
| 334 B(Mov), R(context), R(11), | 334 B(Mov), R(context), R(11), |
| 335 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(0), U8(9), | 335 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(0), U8(9), |
| 336 B(Star), R(13), | 336 B(Star), R(13), |
| 337 B(LdaConstant), U8(2), | 337 B(LdaConstant), U8(2), |
| 338 /* 30 E> */ B(LdrKeyedProperty), R(13), U8(4), R(12), | 338 /* 30 E> */ B(LdaKeyedProperty), R(13), U8(4), |
| 339 B(Star), R(12), |
| 339 /* 30 E> */ B(CallProperty), R(12), R(13), U8(1), U8(2), | 340 /* 30 E> */ B(CallProperty), R(12), R(13), U8(1), U8(2), |
| 340 /* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0), | 341 /* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0), |
| 341 B(LdaSmi), U8(-2), | 342 B(LdaSmi), U8(-2), |
| 342 B(TestEqual), R(4), U8(0), | 343 B(TestEqual), R(4), U8(0), |
| 343 B(JumpIfTrue), U8(18), | 344 B(JumpIfTrue), U8(18), |
| 344 B(LdaSmi), U8(1), | 345 B(LdaSmi), U8(1), |
| 345 B(TestEqualStrict), R(4), U8(0), | 346 B(TestEqualStrict), R(4), U8(0), |
| 346 B(JumpIfTrueConstant), U8(8), | 347 B(JumpIfTrueConstant), U8(8), |
| 347 B(LdaSmi), U8(76), | 348 B(LdaSmi), U8(76), |
| 348 B(Star), R(12), | 349 B(Star), R(12), |
| 349 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), | 350 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), |
| 350 /* 27 S> */ B(LdrContextSlot), R(1), U8(7), U8(0), R(14), | 351 /* 27 S> */ B(LdrContextSlot), R(1), U8(7), U8(0), R(14), |
| 351 B(LdrNamedProperty), R(14), U8(4), U8(8), R(13), | 352 B(LdaNamedProperty), R(14), U8(4), U8(8), |
| 353 B(Star), R(13), |
| 352 /* 27 E> */ B(CallProperty), R(13), R(14), U8(1), U8(6), | 354 /* 27 E> */ B(CallProperty), R(13), R(14), U8(1), U8(6), |
| 353 /* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0), | 355 /* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0), |
| 354 B(Star), R(12), | 356 B(Star), R(12), |
| 355 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), | 357 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), |
| 356 B(ToBooleanLogicalNot), | 358 B(ToBooleanLogicalNot), |
| 357 B(JumpIfFalse), U8(12), | 359 B(JumpIfFalse), U8(12), |
| 358 B(LdrContextSlot), R(1), U8(8), U8(0), R(12), | 360 B(LdrContextSlot), R(1), U8(8), U8(0), R(12), |
| 359 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), | 361 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R
(12), U8(1), |
| 360 B(LdrContextSlot), R(1), U8(8), U8(0), R(12), | 362 B(LdrContextSlot), R(1), U8(8), U8(0), R(12), |
| 361 B(LdaNamedProperty), R(12), U8(5), U8(10), | 363 B(LdaNamedProperty), R(12), U8(5), U8(10), |
| 362 B(JumpIfToBooleanTrueConstant), U8(9), | 364 B(JumpIfToBooleanTrueConstant), U8(3), |
| 363 B(LdrContextSlot), R(1), U8(8), U8(0), R(12), | 365 B(LdrContextSlot), R(1), U8(8), U8(0), R(12), |
| 364 B(LdaNamedProperty), R(12), U8(6), U8(12), | 366 B(LdaNamedProperty), R(12), U8(6), U8(12), |
| 365 B(StaContextSlot), R(1), U8(10), U8(0), | 367 B(StaContextSlot), R(1), U8(10), U8(0), |
| 366 B(LdaSmi), U8(2), | 368 B(LdaSmi), U8(2), |
| 367 B(StaContextSlot), R(1), U8(9), U8(0), | 369 B(StaContextSlot), R(1), U8(9), U8(0), |
| 368 B(LdaContextSlot), R(1), U8(10), U8(0), | 370 B(LdaContextSlot), R(1), U8(10), U8(0), |
| 369 B(StaContextSlot), R(1), U8(6), U8(0), | 371 B(StaContextSlot), R(1), U8(6), U8(0), |
| 370 /* 16 E> */ B(StackCheck), | 372 /* 16 E> */ B(StackCheck), |
| 371 B(Ldar), R(closure), | 373 B(Ldar), R(closure), |
| 372 B(CreateBlockContext), U8(7), | 374 B(CreateBlockContext), U8(7), |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 B(PopContext), R(2), | 412 B(PopContext), R(2), |
| 411 B(Star), R(9), | 413 B(Star), R(9), |
| 412 B(LdaZero), | 414 B(LdaZero), |
| 413 B(Star), R(8), | 415 B(Star), R(8), |
| 414 B(Jump), U8(72), | 416 B(Jump), U8(72), |
| 415 B(Ldar), R(14), | 417 B(Ldar), R(14), |
| 416 /* 36 E> */ B(Throw), | 418 /* 36 E> */ B(Throw), |
| 417 B(PopContext), R(2), | 419 B(PopContext), R(2), |
| 418 B(LdaZero), | 420 B(LdaZero), |
| 419 B(StaContextSlot), R(1), U8(9), U8(0), | 421 B(StaContextSlot), R(1), U8(9), U8(0), |
| 420 B(Wide), B(JumpLoop), U16(-214), U16(0), | 422 B(Wide), B(JumpLoop), U16(-215), U16(0), |
| 421 B(Jump), U8(42), | 423 B(Jump), U8(42), |
| 422 B(Star), R(12), | 424 B(Star), R(12), |
| 423 B(Ldar), R(closure), | 425 B(Ldar), R(closure), |
| 424 B(CreateCatchContext), R(12), U8(10), U8(11), | 426 B(CreateCatchContext), R(12), U8(9), U8(10), |
| 425 B(Star), R(11), | 427 B(Star), R(11), |
| 426 B(PushContext), R(2), | 428 B(PushContext), R(2), |
| 427 B(LdrContextSlot), R(0), U8(9), U8(0), R(12), | 429 B(LdrContextSlot), R(0), U8(9), U8(0), R(12), |
| 428 B(LdaSmi), U8(2), | 430 B(LdaSmi), U8(2), |
| 429 B(TestEqualStrict), R(12), U8(14), | 431 B(TestEqualStrict), R(12), U8(14), |
| 430 B(JumpIfFalse), U8(8), | 432 B(JumpIfFalse), U8(8), |
| 431 B(LdaSmi), U8(1), | 433 B(LdaSmi), U8(1), |
| 432 B(StaContextSlot), R(0), U8(9), U8(0), | 434 B(StaContextSlot), R(0), U8(9), U8(0), |
| 433 B(LdrCurrentContextSlot), U8(4), R(12), | 435 B(LdrCurrentContextSlot), U8(4), R(12), |
| 434 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), | 436 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), |
| 435 B(PopContext), R(2), | 437 B(PopContext), R(2), |
| 436 B(LdaSmi), U8(-1), | 438 B(LdaSmi), U8(-1), |
| 437 B(Star), R(8), | 439 B(Star), R(8), |
| 438 B(Jump), U8(8), | 440 B(Jump), U8(8), |
| 439 B(Star), R(9), | 441 B(Star), R(9), |
| 440 B(LdaSmi), U8(1), | 442 B(LdaSmi), U8(1), |
| 441 B(Star), R(8), | 443 B(Star), R(8), |
| 442 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R
(0), U8(0), | 444 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R
(0), U8(0), |
| 443 B(Star), R(10), | 445 B(Star), R(10), |
| 444 B(LdrContextSlot), R(1), U8(9), U8(0), R(11), | 446 B(LdrContextSlot), R(1), U8(9), U8(0), R(11), |
| 445 B(LdaZero), | 447 B(LdaZero), |
| 446 B(TestEqualStrict), R(11), U8(15), | 448 B(TestEqualStrict), R(11), U8(15), |
| 447 B(JumpIfTrueConstant), U8(17), | 449 B(JumpIfTrueConstant), U8(15), |
| 448 B(LdrContextSlot), R(1), U8(7), U8(0), R(11), | 450 B(LdrContextSlot), R(1), U8(7), U8(0), R(11), |
| 449 B(LdaUndefined), | 451 B(LdaUndefined), |
| 450 B(TestEqualStrict), R(11), U8(16), | 452 B(TestEqualStrict), R(11), U8(16), |
| 451 B(JumpIfTrueConstant), U8(18), | 453 B(JumpIfTrueConstant), U8(16), |
| 452 B(LdrContextSlot), R(1), U8(7), U8(0), R(11), | 454 B(LdrContextSlot), R(1), U8(7), U8(0), R(11), |
| 453 B(LdaNamedProperty), R(11), U8(12), U8(17), | 455 B(LdaNamedProperty), R(11), U8(11), U8(17), |
| 454 B(StaContextSlot), R(1), U8(11), U8(0), | 456 B(StaContextSlot), R(1), U8(11), U8(0), |
| 455 B(LdrContextSlot), R(1), U8(11), U8(0), R(11), | 457 B(LdrContextSlot), R(1), U8(11), U8(0), R(11), |
| 456 B(LdaNull), | 458 B(LdaNull), |
| 457 B(TestEqual), R(11), U8(19), | 459 B(TestEqual), R(11), U8(19), |
| 458 B(JumpIfFalse), U8(4), | 460 B(JumpIfFalse), U8(4), |
| 459 B(JumpConstant), U8(16), | 461 B(JumpConstant), U8(8), |
| 460 B(LdrContextSlot), R(1), U8(9), U8(0), R(11), | 462 B(LdrContextSlot), R(1), U8(9), U8(0), R(11), |
| 461 B(LdaSmi), U8(1), | 463 B(LdaSmi), U8(1), |
| 462 B(TestEqualStrict), R(11), U8(20), | 464 B(TestEqualStrict), R(11), U8(20), |
| 463 B(JumpIfFalse), U8(76), | 465 B(JumpIfFalse), U8(76), |
| 464 B(LdaContextSlot), R(1), U8(11), U8(0), | 466 B(LdaContextSlot), R(1), U8(11), U8(0), |
| 465 B(TypeOf), | 467 B(TypeOf), |
| 466 B(Star), R(11), | 468 B(Star), R(11), |
| 467 B(LdaConstant), U8(13), | 469 B(LdaConstant), U8(12), |
| 468 B(TestEqualStrict), R(11), U8(21), | 470 B(TestEqualStrict), R(11), U8(21), |
| 469 B(JumpIfFalse), U8(4), | 471 B(JumpIfFalse), U8(4), |
| 470 B(Jump), U8(18), | 472 B(Jump), U8(18), |
| 471 B(Wide), B(LdaSmi), U16(130), | 473 B(Wide), B(LdaSmi), U16(130), |
| 472 B(Star), R(11), | 474 B(Star), R(11), |
| 473 B(LdaConstant), U8(14), | 475 B(LdaConstant), U8(13), |
| 474 B(Star), R(12), | 476 B(Star), R(12), |
| 475 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), | 477 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), |
| 476 B(Throw), | 478 B(Throw), |
| 477 B(Mov), R(context), R(11), | 479 B(Mov), R(context), R(11), |
| 478 B(LdrContextSlot), R(1), U8(11), U8(0), R(12), | 480 B(LdrContextSlot), R(1), U8(11), U8(0), R(12), |
| 479 B(LdrContextSlot), R(1), U8(7), U8(0), R(13), | 481 B(LdrContextSlot), R(1), U8(7), U8(0), R(13), |
| 480 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), | 482 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), |
| 481 B(Jump), U8(23), | 483 B(Jump), U8(23), |
| 482 B(Star), R(12), | 484 B(Star), R(12), |
| 483 B(Ldar), R(closure), | 485 B(Ldar), R(closure), |
| 484 B(CreateCatchContext), R(12), U8(10), U8(15), | 486 B(CreateCatchContext), R(12), U8(9), U8(14), |
| 485 B(Star), R(11), | 487 B(Star), R(11), |
| 486 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R
(0), U8(0), | 488 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R
(0), U8(0), |
| 487 B(Ldar), R(11), | 489 B(Ldar), R(11), |
| 488 B(PushContext), R(2), | 490 B(PushContext), R(2), |
| 489 B(PopContext), R(2), | 491 B(PopContext), R(2), |
| 490 B(Jump), U8(43), | 492 B(Jump), U8(43), |
| 491 B(LdrContextSlot), R(1), U8(11), U8(0), R(11), | 493 B(LdrContextSlot), R(1), U8(11), U8(0), R(11), |
| 492 B(LdrContextSlot), R(1), U8(7), U8(0), R(12), | 494 B(LdrContextSlot), R(1), U8(7), U8(0), R(12), |
| 493 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2), | 495 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2), |
| 494 B(StaContextSlot), R(1), U8(12), U8(0), | 496 B(StaContextSlot), R(1), U8(12), U8(0), |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 /* 44 S> */ B(Return), | 566 /* 44 S> */ B(Return), |
| 565 B(Ldar), R(6), | 567 B(Ldar), R(6), |
| 566 B(ReThrow), | 568 B(ReThrow), |
| 567 B(LdaUndefined), | 569 B(LdaUndefined), |
| 568 /* 44 S> */ B(Return), | 570 /* 44 S> */ B(Return), |
| 569 ] | 571 ] |
| 570 constant pool: [ | 572 constant pool: [ |
| 571 FIXED_ARRAY_TYPE, | 573 FIXED_ARRAY_TYPE, |
| 572 FIXED_ARRAY_TYPE, | 574 FIXED_ARRAY_TYPE, |
| 573 SYMBOL_TYPE, | 575 SYMBOL_TYPE, |
| 574 Smi [148], | 576 Smi [149], |
| 575 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], | 577 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], |
| 576 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], | 578 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], |
| 577 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 579 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
| 578 FIXED_ARRAY_TYPE, | 580 FIXED_ARRAY_TYPE, |
| 579 Smi [128], | 581 Smi [129], |
| 580 Smi [149], | |
| 581 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 582 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
| 582 FIXED_ARRAY_TYPE, | 583 FIXED_ARRAY_TYPE, |
| 583 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 584 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
| 584 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], | 585 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], |
| 585 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 586 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
| 586 FIXED_ARRAY_TYPE, | 587 FIXED_ARRAY_TYPE, |
| 587 Smi [129], | |
| 588 Smi [166], | 588 Smi [166], |
| 589 Smi [155], | 589 Smi [155], |
| 590 Smi [579], | 590 Smi [581], |
| 591 ] | 591 ] |
| 592 handlers: [ | 592 handlers: [ |
| 593 [46, 688, 694], | 593 [46, 690, 696], |
| 594 [143, 428, 434], | 594 [143, 430, 436], |
| 595 [146, 386, 388], | 595 [146, 388, 390], |
| 596 [542, 556, 558], | 596 [544, 558, 560], |
| 597 ] | 597 ] |
| 598 | 598 |
| OLD | NEW |