| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_PPC_LITHIUM_PPC_H_ |
| 6 #define V8_PPC_LITHIUM_PPC_H_ | 6 #define V8_PPC_LITHIUM_PPC_H_ |
| 7 | 7 |
| 8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
| 9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
| 10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 V(MathAbs) \ | 110 V(MathAbs) \ |
| 111 V(MathClz32) \ | 111 V(MathClz32) \ |
| 112 V(MathExp) \ | 112 V(MathExp) \ |
| 113 V(MathFloor) \ | 113 V(MathFloor) \ |
| 114 V(MathFround) \ | 114 V(MathFround) \ |
| 115 V(MathLog) \ | 115 V(MathLog) \ |
| 116 V(MathMinMax) \ | 116 V(MathMinMax) \ |
| 117 V(MathPowHalf) \ | 117 V(MathPowHalf) \ |
| 118 V(MathRound) \ | 118 V(MathRound) \ |
| 119 V(MathSqrt) \ | 119 V(MathSqrt) \ |
| 120 V(MaybeGrowElements) \ |
| 120 V(ModByConstI) \ | 121 V(ModByConstI) \ |
| 121 V(ModByPowerOf2I) \ | 122 V(ModByPowerOf2I) \ |
| 122 V(ModI) \ | 123 V(ModI) \ |
| 123 V(MulI) \ | 124 V(MulI) \ |
| 124 V(MultiplyAddD) \ | 125 V(MultiplyAddD) \ |
| 125 V(MultiplySubD) \ | 126 V(MultiplySubD) \ |
| 126 V(NumberTagD) \ | 127 V(NumberTagD) \ |
| 127 V(NumberTagI) \ | 128 V(NumberTagI) \ |
| 128 V(NumberTagU) \ | 129 V(NumberTagU) \ |
| 129 V(NumberUntagD) \ | 130 V(NumberUntagD) \ |
| (...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2217 temps_[0] = temp; | 2218 temps_[0] = temp; |
| 2218 } | 2219 } |
| 2219 | 2220 |
| 2220 LOperand* object() { return inputs_[0]; } | 2221 LOperand* object() { return inputs_[0]; } |
| 2221 LOperand* temp() { return temps_[0]; } | 2222 LOperand* temp() { return temps_[0]; } |
| 2222 | 2223 |
| 2223 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, "trap-allocation-memento") | 2224 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, "trap-allocation-memento") |
| 2224 }; | 2225 }; |
| 2225 | 2226 |
| 2226 | 2227 |
| 2228 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { |
| 2229 public: |
| 2230 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, |
| 2231 LOperand* key, LOperand* current_capacity) { |
| 2232 inputs_[0] = context; |
| 2233 inputs_[1] = object; |
| 2234 inputs_[2] = elements; |
| 2235 inputs_[3] = key; |
| 2236 inputs_[4] = current_capacity; |
| 2237 } |
| 2238 |
| 2239 LOperand* context() { return inputs_[0]; } |
| 2240 LOperand* object() { return inputs_[1]; } |
| 2241 LOperand* elements() { return inputs_[2]; } |
| 2242 LOperand* key() { return inputs_[3]; } |
| 2243 LOperand* current_capacity() { return inputs_[4]; } |
| 2244 |
| 2245 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
| 2246 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
| 2247 }; |
| 2248 |
| 2249 |
| 2227 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2250 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
| 2228 public: | 2251 public: |
| 2229 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2252 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
| 2230 inputs_[0] = context; | 2253 inputs_[0] = context; |
| 2231 inputs_[1] = left; | 2254 inputs_[1] = left; |
| 2232 inputs_[2] = right; | 2255 inputs_[2] = right; |
| 2233 } | 2256 } |
| 2234 | 2257 |
| 2235 LOperand* context() { return inputs_[0]; } | 2258 LOperand* context() { return inputs_[0]; } |
| 2236 LOperand* left() { return inputs_[1]; } | 2259 LOperand* left() { return inputs_[1]; } |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2743 | 2766 |
| 2744 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2767 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2745 }; | 2768 }; |
| 2746 | 2769 |
| 2747 #undef DECLARE_HYDROGEN_ACCESSOR | 2770 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2748 #undef DECLARE_CONCRETE_INSTRUCTION | 2771 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2749 } | 2772 } |
| 2750 } // namespace v8::internal | 2773 } // namespace v8::internal |
| 2751 | 2774 |
| 2752 #endif // V8_PPC_LITHIUM_PPC_H_ | 2775 #endif // V8_PPC_LITHIUM_PPC_H_ |
| OLD | NEW |