| 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 virtual HValue* OperandAt(int index) = 0; | 624 virtual HValue* OperandAt(int index) = 0; |
| 625 void SetOperandAt(int index, HValue* value); | 625 void SetOperandAt(int index, HValue* value); |
| 626 | 626 |
| 627 void DeleteAndReplaceWith(HValue* other); | 627 void DeleteAndReplaceWith(HValue* other); |
| 628 void ReplaceAllUsesWith(HValue* other); | 628 void ReplaceAllUsesWith(HValue* other); |
| 629 bool HasNoUses() const { return use_list_ == NULL; } | 629 bool HasNoUses() const { return use_list_ == NULL; } |
| 630 bool HasMultipleUses() const { | 630 bool HasMultipleUses() const { |
| 631 return use_list_ != NULL && use_list_->tail() != NULL; | 631 return use_list_ != NULL && use_list_->tail() != NULL; |
| 632 } | 632 } |
| 633 int UseCount() const; | 633 int UseCount() const; |
| 634 void ClearOperands(); | 634 |
| 635 // Mark this HValue as dead and to be removed from other HValues' use lists. |
| 636 void Kill(); |
| 635 | 637 |
| 636 int flags() const { return flags_; } | 638 int flags() const { return flags_; } |
| 637 void SetFlag(Flag f) { flags_ |= (1 << f); } | 639 void SetFlag(Flag f) { flags_ |= (1 << f); } |
| 638 void ClearFlag(Flag f) { flags_ &= ~(1 << f); } | 640 void ClearFlag(Flag f) { flags_ &= ~(1 << f); } |
| 639 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; } | 641 bool CheckFlag(Flag f) const { return (flags_ & (1 << f)) != 0; } |
| 640 | 642 |
| 641 GVNFlagSet gvn_flags() const { return gvn_flags_; } | 643 GVNFlagSet gvn_flags() const { return gvn_flags_; } |
| 642 void SetGVNFlag(GVNFlag f) { gvn_flags_.Add(f); } | 644 void SetGVNFlag(GVNFlag f) { gvn_flags_.Add(f); } |
| 643 void ClearGVNFlag(GVNFlag f) { gvn_flags_.Remove(f); } | 645 void ClearGVNFlag(GVNFlag f) { gvn_flags_.Remove(f); } |
| 644 bool CheckGVNFlag(GVNFlag f) const { return gvn_flags_.Contains(f); } | 646 bool CheckGVNFlag(GVNFlag f) const { return gvn_flags_.Contains(f); } |
| (...skipping 4119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4764 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 4766 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
| 4765 }; | 4767 }; |
| 4766 | 4768 |
| 4767 | 4769 |
| 4768 #undef DECLARE_INSTRUCTION | 4770 #undef DECLARE_INSTRUCTION |
| 4769 #undef DECLARE_CONCRETE_INSTRUCTION | 4771 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4770 | 4772 |
| 4771 } } // namespace v8::internal | 4773 } } // namespace v8::internal |
| 4772 | 4774 |
| 4773 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4775 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |