Index: src/ppc/lithium-ppc.h |
diff --git a/src/arm/lithium-arm.h b/src/ppc/lithium-ppc.h |
similarity index 99% |
copy from src/arm/lithium-arm.h |
copy to src/ppc/lithium-ppc.h |
index 7fa1eab2dba335a15d11e738fc111a351cecbd33..b21c2e1974d26105acf7059a28f28b4babaa26bd 100644 |
--- a/src/arm/lithium-arm.h |
+++ b/src/ppc/lithium-ppc.h |
@@ -1,9 +1,12 @@ |
// Copyright 2012 the V8 project authors. All rights reserved. |
+// |
+// Copyright IBM Corp. 2012, 2013. All rights reserved. |
+// |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef V8_ARM_LITHIUM_ARM_H_ |
-#define V8_ARM_LITHIUM_ARM_H_ |
+#ifndef V8_PPC_LITHIUM_PPC_H_ |
+#define V8_PPC_LITHIUM_PPC_H_ |
#include "src/hydrogen.h" |
#include "src/lithium.h" |
@@ -639,19 +642,15 @@ class LModByConstI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
}; |
-class LModI V8_FINAL : public LTemplateInstruction<1, 2, 2> { |
+class LModI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
public: |
- LModI(LOperand* left, LOperand* right, LOperand* temp, LOperand* temp2) { |
+ LModI(LOperand* left, LOperand* right) { |
inputs_[0] = left; |
inputs_[1] = right; |
- temps_[0] = temp; |
- temps_[1] = temp2; |
} |
LOperand* left() { return inputs_[0]; } |
LOperand* right() { return inputs_[1]; } |
- LOperand* temp() { return temps_[0]; } |
- LOperand* temp2() { return temps_[1]; } |
DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i") |
DECLARE_HYDROGEN_ACCESSOR(Mod) |
@@ -694,17 +693,15 @@ class LDivByConstI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
}; |
-class LDivI V8_FINAL : public LTemplateInstruction<1, 2, 1> { |
+class LDivI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
public: |
- LDivI(LOperand* dividend, LOperand* divisor, LOperand* temp) { |
+ LDivI(LOperand* dividend, LOperand* divisor) { |
inputs_[0] = dividend; |
inputs_[1] = divisor; |
- temps_[0] = temp; |
} |
LOperand* dividend() { return inputs_[0]; } |
LOperand* divisor() { return inputs_[1]; } |
- LOperand* temp() { return temps_[0]; } |
DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i") |
DECLARE_HYDROGEN_ACCESSOR(BinaryOperation) |
@@ -730,7 +727,7 @@ class LFlooringDivByPowerOf2I V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
}; |
-class LFlooringDivByConstI V8_FINAL : public LTemplateInstruction<1, 1, 2> { |
+class LFlooringDivByConstI V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
public: |
LFlooringDivByConstI(LOperand* dividend, int32_t divisor, LOperand* temp) { |
inputs_[0] = dividend; |
@@ -750,17 +747,15 @@ class LFlooringDivByConstI V8_FINAL : public LTemplateInstruction<1, 1, 2> { |
}; |
-class LFlooringDivI V8_FINAL : public LTemplateInstruction<1, 2, 1> { |
+class LFlooringDivI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
public: |
- LFlooringDivI(LOperand* dividend, LOperand* divisor, LOperand* temp) { |
+ LFlooringDivI(LOperand* dividend, LOperand* divisor) { |
inputs_[0] = dividend; |
inputs_[1] = divisor; |
- temps_[0] = temp; |
} |
LOperand* dividend() { return inputs_[0]; } |
LOperand* divisor() { return inputs_[1]; } |
- LOperand* temp() { return temps_[0]; } |
DECLARE_CONCRETE_INSTRUCTION(FlooringDivI, "flooring-div-i") |
DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) |
@@ -2887,4 +2882,4 @@ class LChunkBuilder V8_FINAL : public LChunkBuilderBase { |
} } // namespace v8::internal |
-#endif // V8_ARM_LITHIUM_ARM_H_ |
+#endif // V8_PPC_LITHIUM_PPC_H_ |