| 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 module: yes | 7 module: yes |
| 8 top level: yes | 8 top level: yes |
| 9 | 9 |
| 10 --- | 10 --- |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 ] | 275 ] |
| 276 | 276 |
| 277 --- | 277 --- |
| 278 snippet: " | 278 snippet: " |
| 279 export var foo = 42; | 279 export var foo = 42; |
| 280 foo++; | 280 foo++; |
| 281 { let x; { foo++ } }; | 281 { let x; { foo++ } }; |
| 282 " | 282 " |
| 283 frame size: 10 | 283 frame size: 10 |
| 284 parameter count: 2 | 284 parameter count: 2 |
| 285 bytecode array length: 184 | 285 bytecode array length: 185 |
| 286 bytecodes: [ | 286 bytecodes: [ |
| 287 B(Ldar), R(new_target), | 287 B(Ldar), R(new_target), |
| 288 B(JumpIfUndefined), U8(27), | 288 B(JumpIfUndefined), U8(27), |
| 289 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 289 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 290 B(PushContext), R(3), | 290 B(PushContext), R(3), |
| 291 B(ResumeGenerator), R(new_target), | 291 B(ResumeGenerator), R(new_target), |
| 292 B(Star), R(2), | 292 B(Star), R(2), |
| 293 B(LdaZero), | 293 B(LdaZero), |
| 294 B(TestEqualStrictNoFeedback), R(2), | 294 B(TestEqualStrictNoFeedback), R(2), |
| 295 B(JumpIfTrue), U8(64), | 295 B(JumpIfTrue), U8(64), |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 B(Inc), U8(2), | 345 B(Inc), U8(2), |
| 346 /* 24 E> */ B(StaModuleVariable), I8(1), U8(0), | 346 /* 24 E> */ B(StaModuleVariable), I8(1), U8(0), |
| 347 B(Ldar), R(closure), | 347 B(Ldar), R(closure), |
| 348 B(CreateBlockContext), U8(1), | 348 B(CreateBlockContext), U8(1), |
| 349 B(PushContext), R(1), | 349 B(PushContext), R(1), |
| 350 B(LdaTheHole), | 350 B(LdaTheHole), |
| 351 B(StaCurrentContextSlot), U8(4), | 351 B(StaCurrentContextSlot), U8(4), |
| 352 /* 34 S> */ B(LdaUndefined), | 352 /* 34 S> */ B(LdaUndefined), |
| 353 /* 34 E> */ B(StaCurrentContextSlot), U8(4), | 353 /* 34 E> */ B(StaCurrentContextSlot), U8(4), |
| 354 /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1), | 354 /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1), |
| 355 B(ToNumber), R(4), | 355 B(ToNumber), R(4), U8(3), |
| 356 B(Ldar), R(4), | 356 B(Ldar), R(4), |
| 357 B(Inc), U8(3), | 357 B(Inc), U8(3), |
| 358 /* 42 E> */ B(StaModuleVariable), I8(1), U8(1), | 358 /* 42 E> */ B(StaModuleVariable), I8(1), U8(1), |
| 359 B(Ldar), R(4), | 359 B(Ldar), R(4), |
| 360 B(StaContextSlot), R(1), U8(6), U8(0), | 360 B(StaContextSlot), R(1), U8(6), U8(0), |
| 361 B(PopContext), R(1), | 361 B(PopContext), R(1), |
| 362 B(LdaCurrentContextSlot), U8(6), | 362 B(LdaCurrentContextSlot), U8(6), |
| 363 B(Star), R(4), | 363 B(Star), R(4), |
| 364 B(LdaTrue), | 364 B(LdaTrue), |
| 365 B(Star), R(5), | 365 B(Star), R(5), |
| 366 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(4),
U8(2), | 366 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(4),
U8(2), |
| 367 /* 49 S> */ B(Return), | 367 /* 49 S> */ B(Return), |
| 368 ] | 368 ] |
| 369 constant pool: [ | 369 constant pool: [ |
| 370 FIXED_ARRAY_TYPE, | 370 FIXED_ARRAY_TYPE, |
| 371 FIXED_ARRAY_TYPE, | 371 FIXED_ARRAY_TYPE, |
| 372 ] | 372 ] |
| 373 handlers: [ | 373 handlers: [ |
| 374 ] | 374 ] |
| 375 | 375 |
| 376 --- | 376 --- |
| 377 snippet: " | 377 snippet: " |
| 378 export let foo = 42; | 378 export let foo = 42; |
| 379 foo++; | 379 foo++; |
| 380 { let x; { foo++ } }; | 380 { let x; { foo++ } }; |
| 381 " | 381 " |
| 382 frame size: 10 | 382 frame size: 10 |
| 383 parameter count: 2 | 383 parameter count: 2 |
| 384 bytecode array length: 188 | 384 bytecode array length: 189 |
| 385 bytecodes: [ | 385 bytecodes: [ |
| 386 B(Ldar), R(new_target), | 386 B(Ldar), R(new_target), |
| 387 B(JumpIfUndefined), U8(27), | 387 B(JumpIfUndefined), U8(27), |
| 388 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 388 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 389 B(PushContext), R(3), | 389 B(PushContext), R(3), |
| 390 B(ResumeGenerator), R(new_target), | 390 B(ResumeGenerator), R(new_target), |
| 391 B(Star), R(2), | 391 B(Star), R(2), |
| 392 B(LdaZero), | 392 B(LdaZero), |
| 393 B(TestEqualStrictNoFeedback), R(2), | 393 B(TestEqualStrictNoFeedback), R(2), |
| 394 B(JumpIfTrue), U8(68), | 394 B(JumpIfTrue), U8(68), |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 B(Inc), U8(2), | 446 B(Inc), U8(2), |
| 447 /* 24 E> */ B(StaModuleVariable), I8(1), U8(0), | 447 /* 24 E> */ B(StaModuleVariable), I8(1), U8(0), |
| 448 B(Ldar), R(closure), | 448 B(Ldar), R(closure), |
| 449 B(CreateBlockContext), U8(1), | 449 B(CreateBlockContext), U8(1), |
| 450 B(PushContext), R(1), | 450 B(PushContext), R(1), |
| 451 B(LdaTheHole), | 451 B(LdaTheHole), |
| 452 B(StaCurrentContextSlot), U8(4), | 452 B(StaCurrentContextSlot), U8(4), |
| 453 /* 34 S> */ B(LdaUndefined), | 453 /* 34 S> */ B(LdaUndefined), |
| 454 /* 34 E> */ B(StaCurrentContextSlot), U8(4), | 454 /* 34 E> */ B(StaCurrentContextSlot), U8(4), |
| 455 /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1), | 455 /* 39 S> */ B(LdaModuleVariable), I8(1), U8(1), |
| 456 B(ToNumber), R(4), | 456 B(ToNumber), R(4), U8(3), |
| 457 B(Ldar), R(4), | 457 B(Ldar), R(4), |
| 458 B(Inc), U8(3), | 458 B(Inc), U8(3), |
| 459 /* 42 E> */ B(StaModuleVariable), I8(1), U8(1), | 459 /* 42 E> */ B(StaModuleVariable), I8(1), U8(1), |
| 460 B(Ldar), R(4), | 460 B(Ldar), R(4), |
| 461 B(StaContextSlot), R(1), U8(6), U8(0), | 461 B(StaContextSlot), R(1), U8(6), U8(0), |
| 462 B(PopContext), R(1), | 462 B(PopContext), R(1), |
| 463 B(LdaCurrentContextSlot), U8(6), | 463 B(LdaCurrentContextSlot), U8(6), |
| 464 B(Star), R(4), | 464 B(Star), R(4), |
| 465 B(LdaTrue), | 465 B(LdaTrue), |
| 466 B(Star), R(5), | 466 B(Star), R(5), |
| 467 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(4),
U8(2), | 467 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(4),
U8(2), |
| 468 /* 49 S> */ B(Return), | 468 /* 49 S> */ B(Return), |
| 469 ] | 469 ] |
| 470 constant pool: [ | 470 constant pool: [ |
| 471 FIXED_ARRAY_TYPE, | 471 FIXED_ARRAY_TYPE, |
| 472 FIXED_ARRAY_TYPE, | 472 FIXED_ARRAY_TYPE, |
| 473 ] | 473 ] |
| 474 handlers: [ | 474 handlers: [ |
| 475 ] | 475 ] |
| 476 | 476 |
| 477 --- | 477 --- |
| 478 snippet: " | 478 snippet: " |
| 479 export const foo = 42; | 479 export const foo = 42; |
| 480 foo++; | 480 foo++; |
| 481 { let x; { foo++ } }; | 481 { let x; { foo++ } }; |
| 482 " | 482 " |
| 483 frame size: 10 | 483 frame size: 10 |
| 484 parameter count: 2 | 484 parameter count: 2 |
| 485 bytecode array length: 192 | 485 bytecode array length: 193 |
| 486 bytecodes: [ | 486 bytecodes: [ |
| 487 B(Ldar), R(new_target), | 487 B(Ldar), R(new_target), |
| 488 B(JumpIfUndefined), U8(27), | 488 B(JumpIfUndefined), U8(27), |
| 489 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 489 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 490 B(PushContext), R(3), | 490 B(PushContext), R(3), |
| 491 B(ResumeGenerator), R(new_target), | 491 B(ResumeGenerator), R(new_target), |
| 492 B(Star), R(2), | 492 B(Star), R(2), |
| 493 B(LdaZero), | 493 B(LdaZero), |
| 494 B(TestEqualStrictNoFeedback), R(2), | 494 B(TestEqualStrictNoFeedback), R(2), |
| 495 B(JumpIfTrue), U8(68), | 495 B(JumpIfTrue), U8(68), |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 B(Inc), U8(2), | 547 B(Inc), U8(2), |
| 548 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 548 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
| 549 B(Ldar), R(closure), | 549 B(Ldar), R(closure), |
| 550 B(CreateBlockContext), U8(1), | 550 B(CreateBlockContext), U8(1), |
| 551 B(PushContext), R(1), | 551 B(PushContext), R(1), |
| 552 B(LdaTheHole), | 552 B(LdaTheHole), |
| 553 B(StaCurrentContextSlot), U8(4), | 553 B(StaCurrentContextSlot), U8(4), |
| 554 /* 36 S> */ B(LdaUndefined), | 554 /* 36 S> */ B(LdaUndefined), |
| 555 /* 36 E> */ B(StaCurrentContextSlot), U8(4), | 555 /* 36 E> */ B(StaCurrentContextSlot), U8(4), |
| 556 /* 41 S> */ B(LdaModuleVariable), I8(1), U8(1), | 556 /* 41 S> */ B(LdaModuleVariable), I8(1), U8(1), |
| 557 B(ToNumber), R(4), | 557 B(ToNumber), R(4), U8(3), |
| 558 B(Ldar), R(4), | 558 B(Ldar), R(4), |
| 559 B(Inc), U8(3), | 559 B(Inc), U8(3), |
| 560 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 560 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
| 561 B(Ldar), R(4), | 561 B(Ldar), R(4), |
| 562 B(StaContextSlot), R(1), U8(6), U8(0), | 562 B(StaContextSlot), R(1), U8(6), U8(0), |
| 563 B(PopContext), R(1), | 563 B(PopContext), R(1), |
| 564 B(LdaCurrentContextSlot), U8(6), | 564 B(LdaCurrentContextSlot), U8(6), |
| 565 B(Star), R(4), | 565 B(Star), R(4), |
| 566 B(LdaTrue), | 566 B(LdaTrue), |
| 567 B(Star), R(5), | 567 B(Star), R(5), |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 /* 45 S> */ B(Return), | 999 /* 45 S> */ B(Return), |
| 1000 ] | 1000 ] |
| 1001 constant pool: [ | 1001 constant pool: [ |
| 1002 FIXED_ARRAY_TYPE, | 1002 FIXED_ARRAY_TYPE, |
| 1003 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], | 1003 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], |
| 1004 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 1004 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 1005 ] | 1005 ] |
| 1006 handlers: [ | 1006 handlers: [ |
| 1007 ] | 1007 ] |
| 1008 | 1008 |
| OLD | NEW |