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

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

Issue 24072013: Hydrogenisation of binops (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix overwrite mode & better result typefeedback 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
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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 } 755 }
756 int UseCount() const; 756 int UseCount() const;
757 757
758 // Mark this HValue as dead and to be removed from other HValues' use lists. 758 // Mark this HValue as dead and to be removed from other HValues' use lists.
759 void Kill(); 759 void Kill();
760 760
761 int flags() const { return flags_; } 761 int flags() const { return flags_; }
762 void SetFlag(Flag f) { flags_ |= (1 << f); } 762 void SetFlag(Flag f) { flags_ |= (1 << f); }
763 void ClearFlag(Flag f) { flags_ &= ~(1 << f); } 763 void ClearFlag(Flag f) { flags_ &= ~(1 << f); }
764 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; } 764 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; }
765 void CopyFlag(Flag f, HValue* other) {
766 if (other->CheckFlag(f)) SetFlag(f);
Michael Starzinger 2013/09/27 08:36:11 nit: Indentation is off.
767 }
765 768
766 // Returns true if the flag specified is set for all uses, false otherwise. 769 // Returns true if the flag specified is set for all uses, false otherwise.
767 bool CheckUsesForFlag(Flag f) const; 770 bool CheckUsesForFlag(Flag f) const;
768 // Same as before and the first one without the flag is returned in value. 771 // Same as before and the first one without the flag is returned in value.
769 bool CheckUsesForFlag(Flag f, HValue** value) const; 772 bool CheckUsesForFlag(Flag f, HValue** value) const;
770 // Returns true if the flag specified is set for all uses, and this set 773 // Returns true if the flag specified is set for all uses, and this set
771 // of uses is non-empty. 774 // of uses is non-empty.
772 bool HasAtLeastOneUseWithFlagAndNoneWithout(Flag f) const; 775 bool HasAtLeastOneUseWithFlagAndNoneWithout(Flag f) const;
773 776
774 GVNFlagSet gvn_flags() const { return gvn_flags_; } 777 GVNFlagSet gvn_flags() const { return gvn_flags_; }
(...skipping 6259 matching lines...) Expand 10 before | Expand all | Expand 10 after
7034 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7037 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7035 }; 7038 };
7036 7039
7037 7040
7038 #undef DECLARE_INSTRUCTION 7041 #undef DECLARE_INSTRUCTION
7039 #undef DECLARE_CONCRETE_INSTRUCTION 7042 #undef DECLARE_CONCRETE_INSTRUCTION
7040 7043
7041 } } // namespace v8::internal 7044 } } // namespace v8::internal
7042 7045
7043 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7046 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698