| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 ] | 146 ] |
| 147 | 147 |
| 148 --- | 148 --- |
| 149 snippet: " | 149 snippet: " |
| 150 import {foo as goo} from \"bar\"; | 150 import {foo as goo} from \"bar\"; |
| 151 goo(42); | 151 goo(42); |
| 152 { let x; { goo(42) } }; | 152 { let x; { goo(42) } }; |
| 153 " | 153 " |
| 154 frame size: 9 | 154 frame size: 9 |
| 155 parameter count: 2 | 155 parameter count: 2 |
| 156 bytecode array length: 223 | 156 bytecode array length: 201 |
| 157 bytecodes: [ | 157 bytecodes: [ |
| 158 B(Ldar), R(new_target), | 158 B(Ldar), R(new_target), |
| 159 B(JumpIfUndefined), U8(21), | 159 B(JumpIfUndefined), U8(21), |
| 160 B(ResumeGenerator), R(new_target), | 160 B(ResumeGenerator), R(new_target), |
| 161 B(Star), R(2), | 161 B(Star), R(2), |
| 162 B(LdaZero), | 162 B(LdaZero), |
| 163 B(TestEqualStrict), R(2), U8(0), | 163 B(TestEqualStrict), R(2), U8(0), |
| 164 B(JumpIfTrue), U8(71), | 164 B(JumpIfTrue), U8(71), |
| 165 B(LdaSmi), U8(76), | 165 B(LdaSmi), U8(76), |
| 166 B(Star), R(3), | 166 B(Star), R(3), |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), | 206 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), |
| 207 /* 64 S> */ B(Return), | 207 /* 64 S> */ B(Return), |
| 208 B(Ldar), R(5), | 208 B(Ldar), R(5), |
| 209 /* 0 E> */ B(Throw), | 209 /* 0 E> */ B(Throw), |
| 210 /* 32 S> */ B(LdrUndefined), R(4), | 210 /* 32 S> */ B(LdrUndefined), R(4), |
| 211 B(LdaConstant), U8(1), | 211 B(LdaConstant), U8(1), |
| 212 B(Star), R(6), | 212 B(Star), R(6), |
| 213 B(LdaZero), | 213 B(LdaZero), |
| 214 B(Star), R(7), | 214 B(Star), R(7), |
| 215 /* 32 E> */ B(CallRuntime), U16(Runtime::kLoadModuleImport), R(6), U8(2), | 215 /* 32 E> */ B(CallRuntime), U16(Runtime::kLoadModuleImport), R(6), U8(2), |
| 216 B(JumpIfNotHole), U8(11), | |
| 217 B(LdaConstant), U8(2), | |
| 218 B(Star), R(8), | |
| 219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(8), U8(1), | |
| 220 B(Star), R(3), | 216 B(Star), R(3), |
| 221 B(LdaSmi), U8(42), | 217 B(LdaSmi), U8(42), |
| 222 B(Star), R(5), | 218 B(Star), R(5), |
| 223 /* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2), | 219 /* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2), |
| 224 B(Ldar), R(closure), | 220 B(Ldar), R(closure), |
| 225 B(CreateBlockContext), U8(3), | 221 B(CreateBlockContext), U8(2), |
| 226 B(PushContext), R(1), | 222 B(PushContext), R(1), |
| 227 B(LdaTheHole), | 223 B(LdaTheHole), |
| 228 B(StaContextSlot), R(context), U8(4), U8(0), | 224 B(StaContextSlot), R(context), U8(4), U8(0), |
| 229 /* 47 S> */ B(LdaUndefined), | 225 /* 47 S> */ B(LdaUndefined), |
| 230 /* 47 E> */ B(StaContextSlot), R(context), U8(4), U8(0), | 226 /* 47 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 231 /* 52 S> */ B(LdrUndefined), R(4), | 227 /* 52 S> */ B(LdrUndefined), R(4), |
| 232 B(LdaConstant), U8(1), | 228 B(LdaConstant), U8(1), |
| 233 B(Star), R(6), | 229 B(Star), R(6), |
| 234 B(LdaZero), | 230 B(LdaZero), |
| 235 B(Star), R(7), | 231 B(Star), R(7), |
| 236 /* 52 E> */ B(CallRuntime), U16(Runtime::kLoadModuleImport), R(6), U8(2), | 232 /* 52 E> */ B(CallRuntime), U16(Runtime::kLoadModuleImport), R(6), U8(2), |
| 237 B(JumpIfNotHole), U8(11), | |
| 238 B(LdaConstant), U8(2), | |
| 239 B(Star), R(8), | |
| 240 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(8), U8(1), | |
| 241 B(Star), R(3), | 233 B(Star), R(3), |
| 242 B(LdaSmi), U8(42), | 234 B(LdaSmi), U8(42), |
| 243 B(Star), R(5), | 235 B(Star), R(5), |
| 244 /* 52 E> */ B(Call), R(3), R(4), U8(2), U8(4), | 236 /* 52 E> */ B(Call), R(3), R(4), U8(2), U8(4), |
| 245 B(PopContext), R(1), | 237 B(PopContext), R(1), |
| 246 B(LdaUndefined), | 238 B(LdaUndefined), |
| 247 /* 64 S> */ B(Return), | 239 /* 64 S> */ B(Return), |
| 248 ] | 240 ] |
| 249 constant pool: [ | 241 constant pool: [ |
| 250 FIXED_ARRAY_TYPE, | 242 FIXED_ARRAY_TYPE, |
| 251 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], | 243 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], |
| 252 ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"], | |
| 253 FIXED_ARRAY_TYPE, | 244 FIXED_ARRAY_TYPE, |
| 254 ] | 245 ] |
| 255 handlers: [ | 246 handlers: [ |
| 256 ] | 247 ] |
| 257 | 248 |
| 258 --- | 249 --- |
| 259 snippet: " | 250 snippet: " |
| 260 export var foo = 42; | 251 export var foo = 42; |
| 261 foo++; | 252 foo++; |
| 262 { let x; { foo++ } }; | 253 { let x; { foo++ } }; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 ] | 349 ] |
| 359 | 350 |
| 360 --- | 351 --- |
| 361 snippet: " | 352 snippet: " |
| 362 export let foo = 42; | 353 export let foo = 42; |
| 363 foo++; | 354 foo++; |
| 364 { let x; { foo++ } }; | 355 { let x; { foo++ } }; |
| 365 " | 356 " |
| 366 frame size: 9 | 357 frame size: 9 |
| 367 parameter count: 2 | 358 parameter count: 2 |
| 368 bytecode array length: 242 | 359 bytecode array length: 220 |
| 369 bytecodes: [ | 360 bytecodes: [ |
| 370 B(Ldar), R(new_target), | 361 B(Ldar), R(new_target), |
| 371 B(JumpIfUndefined), U8(21), | 362 B(JumpIfUndefined), U8(21), |
| 372 B(ResumeGenerator), R(new_target), | 363 B(ResumeGenerator), R(new_target), |
| 373 B(Star), R(2), | 364 B(Star), R(2), |
| 374 B(LdaZero), | 365 B(LdaZero), |
| 375 B(TestEqualStrict), R(2), U8(0), | 366 B(TestEqualStrict), R(2), U8(0), |
| 376 B(JumpIfTrue), U8(83), | 367 B(JumpIfTrue), U8(83), |
| 377 B(LdaSmi), U8(76), | 368 B(LdaSmi), U8(76), |
| 378 B(Star), R(3), | 369 B(Star), R(3), |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 B(Ldar), R(5), | 416 B(Ldar), R(5), |
| 426 /* 0 E> */ B(Throw), | 417 /* 0 E> */ B(Throw), |
| 427 /* 17 S> */ B(LdaSmi), U8(42), | 418 /* 17 S> */ B(LdaSmi), U8(42), |
| 428 B(Star), R(4), | 419 B(Star), R(4), |
| 429 B(LdaConstant), U8(1), | 420 B(LdaConstant), U8(1), |
| 430 B(Star), R(3), | 421 B(Star), R(3), |
| 431 /* 17 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), | 422 /* 17 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), |
| 432 /* 21 S> */ B(LdaConstant), U8(1), | 423 /* 21 S> */ B(LdaConstant), U8(1), |
| 433 B(Star), R(3), | 424 B(Star), R(3), |
| 434 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), | 425 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), |
| 435 B(JumpIfNotHole), U8(11), | |
| 436 B(LdaConstant), U8(1), | |
| 437 B(Star), R(4), | |
| 438 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | |
| 439 B(Inc), U8(2), | 426 B(Inc), U8(2), |
| 440 B(Star), R(4), | 427 B(Star), R(4), |
| 441 B(LdaConstant), U8(1), | 428 B(LdaConstant), U8(1), |
| 442 B(Star), R(3), | 429 B(Star), R(3), |
| 443 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), | 430 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), |
| 444 B(Ldar), R(closure), | 431 B(Ldar), R(closure), |
| 445 B(CreateBlockContext), U8(2), | 432 B(CreateBlockContext), U8(2), |
| 446 B(PushContext), R(1), | 433 B(PushContext), R(1), |
| 447 B(LdaTheHole), | 434 B(LdaTheHole), |
| 448 B(StaContextSlot), R(context), U8(4), U8(0), | 435 B(StaContextSlot), R(context), U8(4), U8(0), |
| 449 /* 34 S> */ B(LdaUndefined), | 436 /* 34 S> */ B(LdaUndefined), |
| 450 /* 34 E> */ B(StaContextSlot), R(context), U8(4), U8(0), | 437 /* 34 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 451 /* 39 S> */ B(LdaConstant), U8(1), | 438 /* 39 S> */ B(LdaConstant), U8(1), |
| 452 B(Star), R(3), | 439 B(Star), R(3), |
| 453 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), | 440 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), |
| 454 B(JumpIfNotHole), U8(11), | |
| 455 B(LdaConstant), U8(1), | |
| 456 B(Star), R(4), | |
| 457 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | |
| 458 B(Inc), U8(3), | 441 B(Inc), U8(3), |
| 459 B(Star), R(4), | 442 B(Star), R(4), |
| 460 B(LdaConstant), U8(1), | 443 B(LdaConstant), U8(1), |
| 461 B(Star), R(3), | 444 B(Star), R(3), |
| 462 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), | 445 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), |
| 463 B(PopContext), R(1), | 446 B(PopContext), R(1), |
| 464 B(LdaUndefined), | 447 B(LdaUndefined), |
| 465 /* 49 S> */ B(Return), | 448 /* 49 S> */ B(Return), |
| 466 ] | 449 ] |
| 467 constant pool: [ | 450 constant pool: [ |
| 468 FIXED_ARRAY_TYPE, | 451 FIXED_ARRAY_TYPE, |
| 469 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], | 452 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], |
| 470 FIXED_ARRAY_TYPE, | 453 FIXED_ARRAY_TYPE, |
| 471 ] | 454 ] |
| 472 handlers: [ | 455 handlers: [ |
| 473 ] | 456 ] |
| 474 | 457 |
| 475 --- | 458 --- |
| 476 snippet: " | 459 snippet: " |
| 477 export const foo = 42; | 460 export const foo = 42; |
| 478 foo++; | 461 foo++; |
| 479 { let x; { foo++ } }; | 462 { let x; { foo++ } }; |
| 480 " | 463 " |
| 481 frame size: 9 | 464 frame size: 9 |
| 482 parameter count: 2 | 465 parameter count: 2 |
| 483 bytecode array length: 230 | 466 bytecode array length: 208 |
| 484 bytecodes: [ | 467 bytecodes: [ |
| 485 B(Ldar), R(new_target), | 468 B(Ldar), R(new_target), |
| 486 B(JumpIfUndefined), U8(21), | 469 B(JumpIfUndefined), U8(21), |
| 487 B(ResumeGenerator), R(new_target), | 470 B(ResumeGenerator), R(new_target), |
| 488 B(Star), R(2), | 471 B(Star), R(2), |
| 489 B(LdaZero), | 472 B(LdaZero), |
| 490 B(TestEqualStrict), R(2), U8(0), | 473 B(TestEqualStrict), R(2), U8(0), |
| 491 B(JumpIfTrue), U8(83), | 474 B(JumpIfTrue), U8(83), |
| 492 B(LdaSmi), U8(76), | 475 B(LdaSmi), U8(76), |
| 493 B(Star), R(3), | 476 B(Star), R(3), |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 B(Ldar), R(5), | 523 B(Ldar), R(5), |
| 541 /* 0 E> */ B(Throw), | 524 /* 0 E> */ B(Throw), |
| 542 /* 19 S> */ B(LdaSmi), U8(42), | 525 /* 19 S> */ B(LdaSmi), U8(42), |
| 543 B(Star), R(4), | 526 B(Star), R(4), |
| 544 B(LdaConstant), U8(1), | 527 B(LdaConstant), U8(1), |
| 545 B(Star), R(3), | 528 B(Star), R(3), |
| 546 /* 19 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), | 529 /* 19 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), |
| 547 /* 23 S> */ B(LdaConstant), U8(1), | 530 /* 23 S> */ B(LdaConstant), U8(1), |
| 548 B(Star), R(3), | 531 B(Star), R(3), |
| 549 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), | 532 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), |
| 550 B(JumpIfNotHole), U8(11), | |
| 551 B(LdaConstant), U8(1), | |
| 552 B(Star), R(4), | |
| 553 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | |
| 554 B(Inc), U8(2), | 533 B(Inc), U8(2), |
| 555 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 534 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
| 556 B(Ldar), R(closure), | 535 B(Ldar), R(closure), |
| 557 B(CreateBlockContext), U8(2), | 536 B(CreateBlockContext), U8(2), |
| 558 B(PushContext), R(1), | 537 B(PushContext), R(1), |
| 559 B(LdaTheHole), | 538 B(LdaTheHole), |
| 560 B(StaContextSlot), R(context), U8(4), U8(0), | 539 B(StaContextSlot), R(context), U8(4), U8(0), |
| 561 /* 36 S> */ B(LdaUndefined), | 540 /* 36 S> */ B(LdaUndefined), |
| 562 /* 36 E> */ B(StaContextSlot), R(context), U8(4), U8(0), | 541 /* 36 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 563 /* 41 S> */ B(LdaConstant), U8(1), | 542 /* 41 S> */ B(LdaConstant), U8(1), |
| 564 B(Star), R(3), | 543 B(Star), R(3), |
| 565 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), | 544 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), |
| 566 B(JumpIfNotHole), U8(11), | |
| 567 B(LdaConstant), U8(1), | |
| 568 B(Star), R(4), | |
| 569 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | |
| 570 B(Inc), U8(3), | 545 B(Inc), U8(3), |
| 571 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 546 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
| 572 B(PopContext), R(1), | 547 B(PopContext), R(1), |
| 573 B(LdaUndefined), | 548 B(LdaUndefined), |
| 574 /* 51 S> */ B(Return), | 549 /* 51 S> */ B(Return), |
| 575 ] | 550 ] |
| 576 constant pool: [ | 551 constant pool: [ |
| 577 FIXED_ARRAY_TYPE, | 552 FIXED_ARRAY_TYPE, |
| 578 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], | 553 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], |
| 579 FIXED_ARRAY_TYPE, | 554 FIXED_ARRAY_TYPE, |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 /* 0 E> */ B(Throw), | 862 /* 0 E> */ B(Throw), |
| 888 B(LdaUndefined), | 863 B(LdaUndefined), |
| 889 /* 19 S> */ B(Return), | 864 /* 19 S> */ B(Return), |
| 890 ] | 865 ] |
| 891 constant pool: [ | 866 constant pool: [ |
| 892 FIXED_ARRAY_TYPE, | 867 FIXED_ARRAY_TYPE, |
| 893 ] | 868 ] |
| 894 handlers: [ | 869 handlers: [ |
| 895 ] | 870 ] |
| 896 | 871 |
| OLD | NEW |