OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 126 matching lines...) Loading... |
137 V(StoreNamedField) \ | 137 V(StoreNamedField) \ |
138 V(StoreNamedGeneric) \ | 138 V(StoreNamedGeneric) \ |
139 V(StringAdd) \ | 139 V(StringAdd) \ |
140 V(StringCharCodeAt) \ | 140 V(StringCharCodeAt) \ |
141 V(StringCharFromCode) \ | 141 V(StringCharFromCode) \ |
142 V(StringCompareAndBranch) \ | 142 V(StringCompareAndBranch) \ |
143 V(SubI) \ | 143 V(SubI) \ |
144 V(RSubI) \ | 144 V(RSubI) \ |
145 V(TaggedToI) \ | 145 V(TaggedToI) \ |
146 V(ThisFunction) \ | 146 V(ThisFunction) \ |
147 V(ToFastProperties) \ | |
148 V(TransitionElementsKind) \ | 147 V(TransitionElementsKind) \ |
149 V(TrapAllocationMemento) \ | 148 V(TrapAllocationMemento) \ |
150 V(Typeof) \ | 149 V(Typeof) \ |
151 V(TypeofIsAndBranch) \ | 150 V(TypeofIsAndBranch) \ |
152 V(Uint32ToDouble) \ | 151 V(Uint32ToDouble) \ |
153 V(UnknownOSRValue) \ | 152 V(UnknownOSRValue) \ |
154 V(WrapReceiver) | 153 V(WrapReceiver) |
155 | 154 |
156 | 155 |
157 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 156 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
(...skipping 2220 matching lines...) Loading... |
2378 LOperand* context() { return inputs_[0]; } | 2377 LOperand* context() { return inputs_[0]; } |
2379 LOperand* size() { return inputs_[1]; } | 2378 LOperand* size() { return inputs_[1]; } |
2380 LOperand* temp1() { return temps_[0]; } | 2379 LOperand* temp1() { return temps_[0]; } |
2381 LOperand* temp2() { return temps_[1]; } | 2380 LOperand* temp2() { return temps_[1]; } |
2382 | 2381 |
2383 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2382 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
2384 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2383 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
2385 }; | 2384 }; |
2386 | 2385 |
2387 | 2386 |
2388 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | |
2389 public: | |
2390 explicit LToFastProperties(LOperand* value) { | |
2391 inputs_[0] = value; | |
2392 } | |
2393 | |
2394 LOperand* value() { return inputs_[0]; } | |
2395 | |
2396 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | |
2397 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | |
2398 }; | |
2399 | |
2400 | |
2401 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2387 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
2402 public: | 2388 public: |
2403 LTypeof(LOperand* context, LOperand* value) { | 2389 LTypeof(LOperand* context, LOperand* value) { |
2404 inputs_[0] = context; | 2390 inputs_[0] = context; |
2405 inputs_[1] = value; | 2391 inputs_[1] = value; |
2406 } | 2392 } |
2407 | 2393 |
2408 LOperand* context() { return inputs_[0]; } | 2394 LOperand* context() { return inputs_[0]; } |
2409 LOperand* value() { return inputs_[1]; } | 2395 LOperand* value() { return inputs_[1]; } |
2410 | 2396 |
(...skipping 261 matching lines...) Loading... |
2672 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2658 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2673 }; | 2659 }; |
2674 | 2660 |
2675 #undef DECLARE_HYDROGEN_ACCESSOR | 2661 #undef DECLARE_HYDROGEN_ACCESSOR |
2676 #undef DECLARE_CONCRETE_INSTRUCTION | 2662 #undef DECLARE_CONCRETE_INSTRUCTION |
2677 | 2663 |
2678 } // namespace internal | 2664 } // namespace internal |
2679 } // namespace v8 | 2665 } // namespace v8 |
2680 | 2666 |
2681 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2667 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |