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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 V(StoreKeyedGeneric) \ | 139 V(StoreKeyedGeneric) \ |
140 V(StoreNamedField) \ | 140 V(StoreNamedField) \ |
141 V(StoreNamedGeneric) \ | 141 V(StoreNamedGeneric) \ |
142 V(StringAdd) \ | 142 V(StringAdd) \ |
143 V(StringCharCodeAt) \ | 143 V(StringCharCodeAt) \ |
144 V(StringCharFromCode) \ | 144 V(StringCharFromCode) \ |
145 V(StringCompareAndBranch) \ | 145 V(StringCompareAndBranch) \ |
146 V(SubI) \ | 146 V(SubI) \ |
147 V(TaggedToI) \ | 147 V(TaggedToI) \ |
148 V(ThisFunction) \ | 148 V(ThisFunction) \ |
149 V(ToFastProperties) \ | |
150 V(TransitionElementsKind) \ | 149 V(TransitionElementsKind) \ |
151 V(TrapAllocationMemento) \ | 150 V(TrapAllocationMemento) \ |
152 V(Typeof) \ | 151 V(Typeof) \ |
153 V(TypeofIsAndBranch) \ | 152 V(TypeofIsAndBranch) \ |
154 V(Uint32ToDouble) \ | 153 V(Uint32ToDouble) \ |
155 V(UnknownOSRValue) \ | 154 V(UnknownOSRValue) \ |
156 V(WrapReceiver) | 155 V(WrapReceiver) |
157 | 156 |
158 | 157 |
159 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 158 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2384 | 2383 |
2385 LOperand* context() { return inputs_[0]; } | 2384 LOperand* context() { return inputs_[0]; } |
2386 LOperand* size() { return inputs_[1]; } | 2385 LOperand* size() { return inputs_[1]; } |
2387 LOperand* temp() { return temps_[0]; } | 2386 LOperand* temp() { return temps_[0]; } |
2388 | 2387 |
2389 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2388 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
2390 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2389 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
2391 }; | 2390 }; |
2392 | 2391 |
2393 | 2392 |
2394 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | |
2395 public: | |
2396 explicit LToFastProperties(LOperand* value) { | |
2397 inputs_[0] = value; | |
2398 } | |
2399 | |
2400 LOperand* value() { return inputs_[0]; } | |
2401 | |
2402 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | |
2403 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | |
2404 }; | |
2405 | |
2406 | |
2407 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2393 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
2408 public: | 2394 public: |
2409 LTypeof(LOperand* context, LOperand* value) { | 2395 LTypeof(LOperand* context, LOperand* value) { |
2410 inputs_[0] = context; | 2396 inputs_[0] = context; |
2411 inputs_[1] = value; | 2397 inputs_[1] = value; |
2412 } | 2398 } |
2413 | 2399 |
2414 LOperand* context() { return inputs_[0]; } | 2400 LOperand* context() { return inputs_[0]; } |
2415 LOperand* value() { return inputs_[1]; } | 2401 LOperand* value() { return inputs_[1]; } |
2416 | 2402 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2685 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2671 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2686 }; | 2672 }; |
2687 | 2673 |
2688 #undef DECLARE_HYDROGEN_ACCESSOR | 2674 #undef DECLARE_HYDROGEN_ACCESSOR |
2689 #undef DECLARE_CONCRETE_INSTRUCTION | 2675 #undef DECLARE_CONCRETE_INSTRUCTION |
2690 | 2676 |
2691 } // namespace internal | 2677 } // namespace internal |
2692 } // namespace v8 | 2678 } // namespace v8 |
2693 | 2679 |
2694 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2680 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |