| 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 4607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4618 virtual bool IsCommutative() const V8_OVERRIDE { | 4618 virtual bool IsCommutative() const V8_OVERRIDE { |
| 4619 return !representation().IsTagged(); | 4619 return !representation().IsTagged(); |
| 4620 } | 4620 } |
| 4621 | 4621 |
| 4622 virtual void UpdateRepresentation(Representation new_rep, | 4622 virtual void UpdateRepresentation(Representation new_rep, |
| 4623 HInferRepresentationPhase* h_infer, | 4623 HInferRepresentationPhase* h_infer, |
| 4624 const char* reason) V8_OVERRIDE { | 4624 const char* reason) V8_OVERRIDE { |
| 4625 HArithmeticBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason); | 4625 HArithmeticBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason); |
| 4626 } | 4626 } |
| 4627 | 4627 |
| 4628 bool MulMinusOne(); |
| 4629 |
| 4628 DECLARE_CONCRETE_INSTRUCTION(Mul) | 4630 DECLARE_CONCRETE_INSTRUCTION(Mul) |
| 4629 | 4631 |
| 4630 protected: | 4632 protected: |
| 4631 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; } | 4633 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; } |
| 4632 | 4634 |
| 4633 virtual Range* InferRange(Zone* zone) V8_OVERRIDE; | 4635 virtual Range* InferRange(Zone* zone) V8_OVERRIDE; |
| 4634 | 4636 |
| 4635 private: | 4637 private: |
| 4636 HMul(HValue* context, HValue* left, HValue* right) | 4638 HMul(HValue* context, HValue* left, HValue* right) |
| 4637 : HArithmeticBinaryOperation(context, left, right) { | 4639 : HArithmeticBinaryOperation(context, left, right) { |
| (...skipping 2426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7064 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7066 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7065 }; | 7067 }; |
| 7066 | 7068 |
| 7067 | 7069 |
| 7068 #undef DECLARE_INSTRUCTION | 7070 #undef DECLARE_INSTRUCTION |
| 7069 #undef DECLARE_CONCRETE_INSTRUCTION | 7071 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7070 | 7072 |
| 7071 } } // namespace v8::internal | 7073 } } // namespace v8::internal |
| 7072 | 7074 |
| 7073 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7075 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |