Chromium Code Reviews| Index: src/arm/lithium-arm.h |
| diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h |
| index 0ba5e45a8fe1c67b99c9e197d89c53a088410fc5..c9819a16765ed0d6573ad6c7d671eaba8ec36805 100644 |
| --- a/src/arm/lithium-arm.h |
| +++ b/src/arm/lithium-arm.h |
| @@ -135,6 +135,7 @@ class LCodeGen; |
| V(MathMinMax) \ |
| V(ModI) \ |
| V(MulI) \ |
| + V(MultiplyAdd) \ |
| V(NumberTagD) \ |
| V(NumberTagI) \ |
| V(NumberTagU) \ |
| @@ -621,6 +622,23 @@ class LMulI: public LTemplateInstruction<1, 2, 1> { |
| }; |
| +class LMultiplyAdd: public LTemplateInstruction<1, 3, 0> { // FIXME: Do we need a tmp? |
|
ulan_google
2012/11/07 09:54:03
Nope, we don't use tmp register in the implementat
|
| + public: |
| + LMultiplyAdd(LOperand* c, LOperand *a, LOperand* b) { |
| + inputs_[0] = c; |
| + inputs_[1] = a; |
| + inputs_[2] = b; |
| + } |
| + |
| + LOperand* c() { return inputs_[0]; } |
| + LOperand* a() { return inputs_[1]; } |
| + LOperand* b() { return inputs_[2]; } |
| + |
| + DECLARE_CONCRETE_INSTRUCTION(MultiplyAdd, "multiplyadd") |
| + DECLARE_HYDROGEN_ACCESSOR(MultiplyAdd) |
| +}; |
| + |
| + |
| class LCmpIDAndBranch: public LControlInstruction<2, 0> { |
| public: |
| LCmpIDAndBranch(LOperand* left, LOperand* right) { |