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_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2096 inputs_[3] = key; | 2096 inputs_[3] = key; |
2097 inputs_[4] = current_capacity; | 2097 inputs_[4] = current_capacity; |
2098 } | 2098 } |
2099 | 2099 |
2100 LOperand* context() { return inputs_[0]; } | 2100 LOperand* context() { return inputs_[0]; } |
2101 LOperand* object() { return inputs_[1]; } | 2101 LOperand* object() { return inputs_[1]; } |
2102 LOperand* elements() { return inputs_[2]; } | 2102 LOperand* elements() { return inputs_[2]; } |
2103 LOperand* key() { return inputs_[3]; } | 2103 LOperand* key() { return inputs_[3]; } |
2104 LOperand* current_capacity() { return inputs_[4]; } | 2104 LOperand* current_capacity() { return inputs_[4]; } |
2105 | 2105 |
| 2106 bool ClobbersDoubleRegisters(Isolate* isolate) const override { return true; } |
| 2107 |
2106 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) | 2108 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
2107 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") | 2109 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
2108 }; | 2110 }; |
2109 | 2111 |
2110 | 2112 |
2111 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2113 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
2112 public: | 2114 public: |
2113 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2115 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
2114 inputs_[0] = context; | 2116 inputs_[0] = context; |
2115 inputs_[1] = left; | 2117 inputs_[1] = left; |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2549 | 2551 |
2550 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2552 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2551 }; | 2553 }; |
2552 | 2554 |
2553 #undef DECLARE_HYDROGEN_ACCESSOR | 2555 #undef DECLARE_HYDROGEN_ACCESSOR |
2554 #undef DECLARE_CONCRETE_INSTRUCTION | 2556 #undef DECLARE_CONCRETE_INSTRUCTION |
2555 } // namespace internal | 2557 } // namespace internal |
2556 } // namespace v8 | 2558 } // namespace v8 |
2557 | 2559 |
2558 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2560 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |