OLD | NEW |
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 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 } | 756 } |
757 int UseCount() const; | 757 int UseCount() const; |
758 | 758 |
759 // Mark this HValue as dead and to be removed from other HValues' use lists. | 759 // Mark this HValue as dead and to be removed from other HValues' use lists. |
760 void Kill(); | 760 void Kill(); |
761 | 761 |
762 int flags() const { return flags_; } | 762 int flags() const { return flags_; } |
763 void SetFlag(Flag f) { flags_ |= (1 << f); } | 763 void SetFlag(Flag f) { flags_ |= (1 << f); } |
764 void ClearFlag(Flag f) { flags_ &= ~(1 << f); } | 764 void ClearFlag(Flag f) { flags_ &= ~(1 << f); } |
765 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; } | 765 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; } |
766 void CopyFlag(Flag f, HValue* other) { | |
767 if (other->CheckFlag(f)) SetFlag(f); | |
768 } | |
769 | 766 |
770 // Returns true if the flag specified is set for all uses, false otherwise. | 767 // Returns true if the flag specified is set for all uses, false otherwise. |
771 bool CheckUsesForFlag(Flag f) const; | 768 bool CheckUsesForFlag(Flag f) const; |
772 // Same as before and the first one without the flag is returned in value. | 769 // Same as before and the first one without the flag is returned in value. |
773 bool CheckUsesForFlag(Flag f, HValue** value) const; | 770 bool CheckUsesForFlag(Flag f, HValue** value) const; |
774 // Returns true if the flag specified is set for all uses, and this set | 771 // Returns true if the flag specified is set for all uses, and this set |
775 // of uses is non-empty. | 772 // of uses is non-empty. |
776 bool HasAtLeastOneUseWithFlagAndNoneWithout(Flag f) const; | 773 bool HasAtLeastOneUseWithFlagAndNoneWithout(Flag f) const; |
777 | 774 |
778 GVNFlagSet gvn_flags() const { return gvn_flags_; } | 775 GVNFlagSet gvn_flags() const { return gvn_flags_; } |
(...skipping 6288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7067 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7064 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7068 }; | 7065 }; |
7069 | 7066 |
7070 | 7067 |
7071 #undef DECLARE_INSTRUCTION | 7068 #undef DECLARE_INSTRUCTION |
7072 #undef DECLARE_CONCRETE_INSTRUCTION | 7069 #undef DECLARE_CONCRETE_INSTRUCTION |
7073 | 7070 |
7074 } } // namespace v8::internal | 7071 } } // namespace v8::internal |
7075 | 7072 |
7076 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7073 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |