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

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

Issue 26236004: Rollback of r17108, r17106, r17104 in trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/code-stubs-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 } 760 }
761 int UseCount() const; 761 int UseCount() const;
762 762
763 // Mark this HValue as dead and to be removed from other HValues' use lists. 763 // Mark this HValue as dead and to be removed from other HValues' use lists.
764 void Kill(); 764 void Kill();
765 765
766 int flags() const { return flags_; } 766 int flags() const { return flags_; }
767 void SetFlag(Flag f) { flags_ |= (1 << f); } 767 void SetFlag(Flag f) { flags_ |= (1 << f); }
768 void ClearFlag(Flag f) { flags_ &= ~(1 << f); } 768 void ClearFlag(Flag f) { flags_ &= ~(1 << f); }
769 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; } 769 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; }
770 void CopyFlag(Flag f, HValue* other) {
771 if (other->CheckFlag(f)) SetFlag(f);
772 }
773 770
774 // Returns true if the flag specified is set for all uses, false otherwise. 771 // Returns true if the flag specified is set for all uses, false otherwise.
775 bool CheckUsesForFlag(Flag f) const; 772 bool CheckUsesForFlag(Flag f) const;
776 // Same as before and the first one without the flag is returned in value. 773 // Same as before and the first one without the flag is returned in value.
777 bool CheckUsesForFlag(Flag f, HValue** value) const; 774 bool CheckUsesForFlag(Flag f, HValue** value) const;
778 // Returns true if the flag specified is set for all uses, and this set 775 // Returns true if the flag specified is set for all uses, and this set
779 // of uses is non-empty. 776 // of uses is non-empty.
780 bool HasAtLeastOneUseWithFlagAndNoneWithout(Flag f) const; 777 bool HasAtLeastOneUseWithFlagAndNoneWithout(Flag f) const;
781 778
782 GVNFlagSet gvn_flags() const { return gvn_flags_; } 779 GVNFlagSet gvn_flags() const { return gvn_flags_; }
(...skipping 6351 matching lines...) Expand 10 before | Expand all | Expand 10 after
7134 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7131 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7135 }; 7132 };
7136 7133
7137 7134
7138 #undef DECLARE_INSTRUCTION 7135 #undef DECLARE_INSTRUCTION
7139 #undef DECLARE_CONCRETE_INSTRUCTION 7136 #undef DECLARE_CONCRETE_INSTRUCTION
7140 7137
7141 } } // namespace v8::internal 7138 } } // namespace v8::internal
7142 7139
7143 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7140 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698