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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 6992072: Implement set trap for proxies, and revamp class hierarchy in preparation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review. Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 740
741 741
742 void HUnaryOperation::PrintDataTo(StringStream* stream) { 742 void HUnaryOperation::PrintDataTo(StringStream* stream) {
743 value()->PrintNameTo(stream); 743 value()->PrintNameTo(stream);
744 } 744 }
745 745
746 746
747 void HHasInstanceType::PrintDataTo(StringStream* stream) { 747 void HHasInstanceType::PrintDataTo(StringStream* stream) {
748 value()->PrintNameTo(stream); 748 value()->PrintNameTo(stream);
749 switch (from_) { 749 switch (from_) {
750 case FIRST_JS_OBJECT_TYPE: 750 case FIRST_JS_RECEIVER_TYPE:
751 if (to_ == LAST_TYPE) stream->Add(" spec_object"); 751 if (to_ == LAST_TYPE) stream->Add(" spec_object");
752 break; 752 break;
753 case JS_REGEXP_TYPE: 753 case JS_REGEXP_TYPE:
754 if (to_ == JS_REGEXP_TYPE) stream->Add(" reg_exp"); 754 if (to_ == JS_REGEXP_TYPE) stream->Add(" reg_exp");
755 break; 755 break;
756 case JS_ARRAY_TYPE: 756 case JS_ARRAY_TYPE:
757 if (to_ == JS_ARRAY_TYPE) stream->Add(" array"); 757 if (to_ == JS_ARRAY_TYPE) stream->Add(" array");
758 break; 758 break;
759 case JS_FUNCTION_TYPE: 759 case JS_FUNCTION_TYPE:
760 if (to_ == JS_FUNCTION_TYPE) stream->Add(" function"); 760 if (to_ == JS_FUNCTION_TYPE) stream->Add(" function");
(...skipping 17 matching lines...) Expand all
778 778
779 if (CanTruncateToInt32()) stream->Add(" truncating-int32"); 779 if (CanTruncateToInt32()) stream->Add(" truncating-int32");
780 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); 780 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?");
781 } 781 }
782 782
783 783
784 void HCheckInstanceType::GetCheckInterval(InstanceType* first, 784 void HCheckInstanceType::GetCheckInterval(InstanceType* first,
785 InstanceType* last) { 785 InstanceType* last) {
786 ASSERT(is_interval_check()); 786 ASSERT(is_interval_check());
787 switch (check_) { 787 switch (check_) {
788 case IS_JS_OBJECT_OR_JS_FUNCTION: 788 case IS_SPEC_OBJECT:
789 STATIC_ASSERT((LAST_JS_OBJECT_TYPE + 1) == JS_FUNCTION_TYPE); 789 *first = FIRST_SPEC_OBJECT_TYPE;
790 *first = FIRST_JS_OBJECT_TYPE; 790 *last = LAST_SPEC_OBJECT_TYPE;
791 *last = JS_FUNCTION_TYPE;
792 return; 791 return;
793 case IS_JS_ARRAY: 792 case IS_JS_ARRAY:
794 *first = *last = JS_ARRAY_TYPE; 793 *first = *last = JS_ARRAY_TYPE;
795 return; 794 return;
796 default: 795 default:
797 UNREACHABLE(); 796 UNREACHABLE();
798 } 797 }
799 } 798 }
800 799
801 800
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 1759
1761 1760
1762 void HCheckPrototypeMaps::Verify() { 1761 void HCheckPrototypeMaps::Verify() {
1763 HInstruction::Verify(); 1762 HInstruction::Verify();
1764 ASSERT(HasNoUses()); 1763 ASSERT(HasNoUses());
1765 } 1764 }
1766 1765
1767 #endif 1766 #endif
1768 1767
1769 } } // namespace v8::internal 1768 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698