| 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 16f522e5b6a0334cbd647e99379a2584583f7974..0598a3aa7d2c938f9a67a94b2669cdce949e0c71 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"
|
| @@ -414,7 +417,7 @@ class LLazyBailout V8_FINAL : public LTemplateInstruction<0, 0, 0> {
|
|
|
| class LDummy V8_FINAL : public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| - LDummy() {}
|
| + LDummy() { }
|
| DECLARE_CONCRETE_INSTRUCTION(Dummy, "dummy")
|
| };
|
|
|
| @@ -644,19 +647,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)
|
| @@ -699,17 +698,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)
|
| @@ -735,7 +732,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;
|
| @@ -755,17 +752,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)
|
| @@ -2903,4 +2898,4 @@ class LChunkBuilder V8_FINAL : public LChunkBuilderBase {
|
|
|
| } } // namespace v8::internal
|
|
|
| -#endif // V8_ARM_LITHIUM_ARM_H_
|
| +#endif // V8_PPC_LITHIUM_PPC_H_
|
|
|