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 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1663 virtual Range* InferRange(); | 1663 virtual Range* InferRange(); |
1664 virtual Representation RequiredInputRepresentation(int index) const { | 1664 virtual Representation RequiredInputRepresentation(int index) const { |
1665 return representation(); | 1665 return representation(); |
1666 } | 1666 } |
1667 virtual HType CalculateInferredType() const; | 1667 virtual HType CalculateInferredType() const; |
1668 virtual int OperandCount() const { return inputs_.length(); } | 1668 virtual int OperandCount() const { return inputs_.length(); } |
1669 virtual HValue* OperandAt(int index) const { return inputs_[index]; } | 1669 virtual HValue* OperandAt(int index) const { return inputs_[index]; } |
1670 HValue* GetRedundantReplacement() const; | 1670 HValue* GetRedundantReplacement() const; |
1671 void AddInput(HValue* value); | 1671 void AddInput(HValue* value); |
1672 | 1672 |
1673 bool HasReceiverOperand(); | 1673 bool IsReceiver() { return merged_index_ == 0; } |
1674 | 1674 |
1675 int merged_index() const { return merged_index_; } | 1675 int merged_index() const { return merged_index_; } |
1676 | 1676 |
1677 virtual const char* Mnemonic() const { return "phi"; } | 1677 virtual const char* Mnemonic() const { return "phi"; } |
1678 | 1678 |
1679 virtual void PrintTo(StringStream* stream) const; | 1679 virtual void PrintTo(StringStream* stream) const; |
1680 | 1680 |
1681 #ifdef DEBUG | 1681 #ifdef DEBUG |
1682 virtual void Verify(); | 1682 virtual void Verify(); |
1683 #endif | 1683 #endif |
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3121 HValue* object() const { return left(); } | 3121 HValue* object() const { return left(); } |
3122 HValue* key() const { return right(); } | 3122 HValue* key() const { return right(); } |
3123 }; | 3123 }; |
3124 | 3124 |
3125 #undef DECLARE_INSTRUCTION | 3125 #undef DECLARE_INSTRUCTION |
3126 #undef DECLARE_CONCRETE_INSTRUCTION | 3126 #undef DECLARE_CONCRETE_INSTRUCTION |
3127 | 3127 |
3128 } } // namespace v8::internal | 3128 } } // namespace v8::internal |
3129 | 3129 |
3130 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3130 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |