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

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

Issue 2411873004: [ignition] Eliminate hole checks where statically possible for loads and stores (Closed)
Patch Set: Rebased Created 4 years, 2 months 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
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 var x = 0; 10 var x = 0;
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 var a = 0; 670 var a = 0;
671 while (a) { 671 while (a) {
672 { 672 {
673 let z = 1; 673 let z = 1;
674 function f() { z = 2; } 674 function f() { z = 2; }
675 if (z) continue; 675 if (z) continue;
676 z++; 676 z++;
677 } 677 }
678 } 678 }
679 " 679 "
680 frame size: 6 680 frame size: 4
681 parameter count: 1 681 parameter count: 1
682 bytecode array length: 104 682 bytecode array length: 63
683 bytecodes: [ 683 bytecodes: [
684 /* 30 E> */ B(StackCheck), 684 /* 30 E> */ B(StackCheck),
685 /* 42 S> */ B(LdaZero), 685 /* 42 S> */ B(LdaZero),
686 B(Star), R(1), 686 B(Star), R(1),
687 /* 52 S> */ B(Ldar), R(1), 687 /* 52 S> */ B(Ldar), R(1),
688 B(JumpIfToBooleanFalse), U8(96), 688 B(JumpIfToBooleanFalse), U8(55),
689 /* 45 E> */ B(StackCheck), 689 /* 45 E> */ B(StackCheck),
690 B(Ldar), R(closure), 690 B(Ldar), R(closure),
691 B(CreateBlockContext), U8(0), 691 B(CreateBlockContext), U8(0),
692 B(PushContext), R(3), 692 B(PushContext), R(3),
693 B(LdaTheHole), 693 B(LdaTheHole),
694 B(StaContextSlot), R(context), U8(4), U8(0), 694 B(StaContextSlot), R(context), U8(4), U8(0),
695 B(CreateClosure), U8(1), U8(2), 695 B(CreateClosure), U8(1), U8(2),
696 B(Star), R(0), 696 B(Star), R(0),
697 /* 73 S> */ B(LdaSmi), U8(1), 697 /* 73 S> */ B(LdaSmi), U8(1),
698 /* 73 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 698 /* 73 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
699 B(Mov), R(0), R(2), 699 B(Mov), R(0), R(2),
700 /* 106 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), 700 /* 106 S> */ B(LdaContextSlot), R(context), U8(4), U8(0),
701 B(JumpIfNotHole), U8(11),
702 B(LdaConstant), U8(2),
703 B(Star), R(4),
704 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
705 B(JumpIfToBooleanFalse), U8(8), 701 B(JumpIfToBooleanFalse), U8(8),
706 /* 113 S> */ B(PopContext), R(3), 702 /* 113 S> */ B(PopContext), R(3),
707 B(PopContext), R(3), 703 B(PopContext), R(3),
708 B(Jump), U8(44), 704 B(Jump), U8(14),
709 /* 126 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), 705 /* 126 S> */ B(LdaContextSlot), R(context), U8(4), U8(0),
710 B(JumpIfNotHole), U8(11),
711 B(LdaConstant), U8(2),
712 B(Star), R(4),
713 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
714 B(Inc), U8(2), 706 B(Inc), U8(2),
715 B(Star), R(4), 707 /* 127 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
716 /* 127 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
717 B(JumpIfNotHole), U8(11),
718 B(LdaConstant), U8(2),
719 B(Star), R(5),
720 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
721 B(Ldar), R(4),
722 B(StaContextSlot), R(context), U8(4), U8(0),
723 B(PopContext), R(3), 708 B(PopContext), R(3),
724 B(JumpLoop), U8(-95), U8(0), 709 B(JumpLoop), U8(-54), U8(0),
725 B(LdaUndefined), 710 B(LdaUndefined),
726 /* 137 S> */ B(Return), 711 /* 137 S> */ B(Return),
727 ] 712 ]
728 constant pool: [ 713 constant pool: [
729 FIXED_ARRAY_TYPE, 714 FIXED_ARRAY_TYPE,
730 SHARED_FUNCTION_INFO_TYPE, 715 SHARED_FUNCTION_INFO_TYPE,
731 ONE_BYTE_INTERNALIZED_STRING_TYPE ["z"],
732 ] 716 ]
733 handlers: [ 717 handlers: [
734 ] 718 ]
735 719
OLDNEW
« no previous file with comments | « src/parsing/parser.cc ('k') | test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698