Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/Modules.golden

Issue 2411873004: [ignition] Eliminate hole checks where statically possible for loads and stores (Closed)
Patch Set: Rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 ] 358 ]
359 359
360 --- 360 ---
361 snippet: " 361 snippet: "
362 export let foo = 42; 362 export let foo = 42;
363 foo++; 363 foo++;
364 { let x; { foo++ } }; 364 { let x; { foo++ } };
365 " 365 "
366 frame size: 9 366 frame size: 9
367 parameter count: 2 367 parameter count: 2
368 bytecode array length: 242 368 bytecode array length: 220
369 bytecodes: [ 369 bytecodes: [
370 B(Ldar), R(new_target), 370 B(Ldar), R(new_target),
371 B(JumpIfUndefined), U8(21), 371 B(JumpIfUndefined), U8(21),
372 B(ResumeGenerator), R(new_target), 372 B(ResumeGenerator), R(new_target),
373 B(Star), R(2), 373 B(Star), R(2),
374 B(LdaZero), 374 B(LdaZero),
375 B(TestEqualStrict), R(2), U8(0), 375 B(TestEqualStrict), R(2), U8(0),
376 B(JumpIfTrue), U8(83), 376 B(JumpIfTrue), U8(83),
377 B(LdaSmi), U8(76), 377 B(LdaSmi), U8(76),
378 B(Star), R(3), 378 B(Star), R(3),
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 B(Ldar), R(5), 425 B(Ldar), R(5),
426 /* 0 E> */ B(Throw), 426 /* 0 E> */ B(Throw),
427 /* 17 S> */ B(LdaSmi), U8(42), 427 /* 17 S> */ B(LdaSmi), U8(42),
428 B(Star), R(4), 428 B(Star), R(4),
429 B(LdaConstant), U8(1), 429 B(LdaConstant), U8(1),
430 B(Star), R(3), 430 B(Star), R(3),
431 /* 17 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 431 /* 17 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
432 /* 21 S> */ B(LdaConstant), U8(1), 432 /* 21 S> */ B(LdaConstant), U8(1),
433 B(Star), R(3), 433 B(Star), R(3),
434 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 434 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), 435 B(Inc), U8(2),
440 B(Star), R(4), 436 B(Star), R(4),
441 B(LdaConstant), U8(1), 437 B(LdaConstant), U8(1),
442 B(Star), R(3), 438 B(Star), R(3),
443 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 439 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
444 B(Ldar), R(closure), 440 B(Ldar), R(closure),
445 B(CreateBlockContext), U8(2), 441 B(CreateBlockContext), U8(2),
446 B(PushContext), R(1), 442 B(PushContext), R(1),
447 B(LdaTheHole), 443 B(LdaTheHole),
448 B(StaContextSlot), R(context), U8(4), U8(0), 444 B(StaContextSlot), R(context), U8(4), U8(0),
449 /* 34 S> */ B(LdaUndefined), 445 /* 34 S> */ B(LdaUndefined),
450 /* 34 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 446 /* 34 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
451 /* 39 S> */ B(LdaConstant), U8(1), 447 /* 39 S> */ B(LdaConstant), U8(1),
452 B(Star), R(3), 448 B(Star), R(3),
453 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 449 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), 450 B(Inc), U8(3),
459 B(Star), R(4), 451 B(Star), R(4),
460 B(LdaConstant), U8(1), 452 B(LdaConstant), U8(1),
461 B(Star), R(3), 453 B(Star), R(3),
462 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 454 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
463 B(PopContext), R(1), 455 B(PopContext), R(1),
464 B(LdaUndefined), 456 B(LdaUndefined),
465 /* 49 S> */ B(Return), 457 /* 49 S> */ B(Return),
466 ] 458 ]
467 constant pool: [ 459 constant pool: [
468 FIXED_ARRAY_TYPE, 460 FIXED_ARRAY_TYPE,
469 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], 461 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
470 FIXED_ARRAY_TYPE, 462 FIXED_ARRAY_TYPE,
471 ] 463 ]
472 handlers: [ 464 handlers: [
473 ] 465 ]
474 466
475 --- 467 ---
476 snippet: " 468 snippet: "
477 export const foo = 42; 469 export const foo = 42;
478 foo++; 470 foo++;
479 { let x; { foo++ } }; 471 { let x; { foo++ } };
480 " 472 "
481 frame size: 9 473 frame size: 9
482 parameter count: 2 474 parameter count: 2
483 bytecode array length: 230 475 bytecode array length: 208
484 bytecodes: [ 476 bytecodes: [
485 B(Ldar), R(new_target), 477 B(Ldar), R(new_target),
486 B(JumpIfUndefined), U8(21), 478 B(JumpIfUndefined), U8(21),
487 B(ResumeGenerator), R(new_target), 479 B(ResumeGenerator), R(new_target),
488 B(Star), R(2), 480 B(Star), R(2),
489 B(LdaZero), 481 B(LdaZero),
490 B(TestEqualStrict), R(2), U8(0), 482 B(TestEqualStrict), R(2), U8(0),
491 B(JumpIfTrue), U8(83), 483 B(JumpIfTrue), U8(83),
492 B(LdaSmi), U8(76), 484 B(LdaSmi), U8(76),
493 B(Star), R(3), 485 B(Star), R(3),
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 B(Ldar), R(5), 532 B(Ldar), R(5),
541 /* 0 E> */ B(Throw), 533 /* 0 E> */ B(Throw),
542 /* 19 S> */ B(LdaSmi), U8(42), 534 /* 19 S> */ B(LdaSmi), U8(42),
543 B(Star), R(4), 535 B(Star), R(4),
544 B(LdaConstant), U8(1), 536 B(LdaConstant), U8(1),
545 B(Star), R(3), 537 B(Star), R(3),
546 /* 19 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 538 /* 19 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
547 /* 23 S> */ B(LdaConstant), U8(1), 539 /* 23 S> */ B(LdaConstant), U8(1),
548 B(Star), R(3), 540 B(Star), R(3),
549 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 541 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), 542 B(Inc), U8(2),
555 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 543 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
556 B(Ldar), R(closure), 544 B(Ldar), R(closure),
557 B(CreateBlockContext), U8(2), 545 B(CreateBlockContext), U8(2),
558 B(PushContext), R(1), 546 B(PushContext), R(1),
559 B(LdaTheHole), 547 B(LdaTheHole),
560 B(StaContextSlot), R(context), U8(4), U8(0), 548 B(StaContextSlot), R(context), U8(4), U8(0),
561 /* 36 S> */ B(LdaUndefined), 549 /* 36 S> */ B(LdaUndefined),
562 /* 36 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 550 /* 36 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
563 /* 41 S> */ B(LdaConstant), U8(1), 551 /* 41 S> */ B(LdaConstant), U8(1),
564 B(Star), R(3), 552 B(Star), R(3),
565 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 553 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), 554 B(Inc), U8(3),
571 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 555 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
572 B(PopContext), R(1), 556 B(PopContext), R(1),
573 B(LdaUndefined), 557 B(LdaUndefined),
574 /* 51 S> */ B(Return), 558 /* 51 S> */ B(Return),
575 ] 559 ]
576 constant pool: [ 560 constant pool: [
577 FIXED_ARRAY_TYPE, 561 FIXED_ARRAY_TYPE,
578 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], 562 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
579 FIXED_ARRAY_TYPE, 563 FIXED_ARRAY_TYPE,
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 /* 0 E> */ B(Throw), 871 /* 0 E> */ B(Throw),
888 B(LdaUndefined), 872 B(LdaUndefined),
889 /* 19 S> */ B(Return), 873 /* 19 S> */ B(Return),
890 ] 874 ]
891 constant pool: [ 875 constant pool: [
892 FIXED_ARRAY_TYPE, 876 FIXED_ARRAY_TYPE,
893 ] 877 ]
894 handlers: [ 878 handlers: [
895 ] 879 ]
896 880
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698