OLD | NEW |
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 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1695 virtual Range* InferRange(); | 1695 virtual Range* InferRange(); |
1696 virtual Representation RequiredInputRepresentation(int index) const { | 1696 virtual Representation RequiredInputRepresentation(int index) const { |
1697 return representation(); | 1697 return representation(); |
1698 } | 1698 } |
1699 virtual HType CalculateInferredType() const; | 1699 virtual HType CalculateInferredType() const; |
1700 virtual int OperandCount() const { return inputs_.length(); } | 1700 virtual int OperandCount() const { return inputs_.length(); } |
1701 virtual HValue* OperandAt(int index) const { return inputs_[index]; } | 1701 virtual HValue* OperandAt(int index) const { return inputs_[index]; } |
1702 HValue* GetRedundantReplacement() const; | 1702 HValue* GetRedundantReplacement() const; |
1703 void AddInput(HValue* value); | 1703 void AddInput(HValue* value); |
1704 | 1704 |
1705 bool HasReceiverOperand(); | 1705 bool IsReceiver() { return merged_index_ == 0; } |
1706 | 1706 |
1707 int merged_index() const { return merged_index_; } | 1707 int merged_index() const { return merged_index_; } |
1708 | 1708 |
1709 virtual const char* Mnemonic() const { return "phi"; } | 1709 virtual const char* Mnemonic() const { return "phi"; } |
1710 | 1710 |
1711 virtual void PrintTo(StringStream* stream) const; | 1711 virtual void PrintTo(StringStream* stream) const; |
1712 | 1712 |
1713 #ifdef DEBUG | 1713 #ifdef DEBUG |
1714 virtual void Verify(); | 1714 virtual void Verify(); |
1715 #endif | 1715 #endif |
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3194 HValue* object() const { return left(); } | 3194 HValue* object() const { return left(); } |
3195 HValue* key() const { return right(); } | 3195 HValue* key() const { return right(); } |
3196 }; | 3196 }; |
3197 | 3197 |
3198 #undef DECLARE_INSTRUCTION | 3198 #undef DECLARE_INSTRUCTION |
3199 #undef DECLARE_CONCRETE_INSTRUCTION | 3199 #undef DECLARE_CONCRETE_INSTRUCTION |
3200 | 3200 |
3201 } } // namespace v8::internal | 3201 } } // namespace v8::internal |
3202 | 3202 |
3203 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3203 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |