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 15 matching lines...) Expand all Loading... |
26 V(ArgumentsElements) \ | 26 V(ArgumentsElements) \ |
27 V(ArgumentsLength) \ | 27 V(ArgumentsLength) \ |
28 V(ArithmeticD) \ | 28 V(ArithmeticD) \ |
29 V(ArithmeticT) \ | 29 V(ArithmeticT) \ |
30 V(BitI) \ | 30 V(BitI) \ |
31 V(BoundsCheck) \ | 31 V(BoundsCheck) \ |
32 V(Branch) \ | 32 V(Branch) \ |
33 V(CallJSFunction) \ | 33 V(CallJSFunction) \ |
34 V(CallWithDescriptor) \ | 34 V(CallWithDescriptor) \ |
35 V(CallFunction) \ | 35 V(CallFunction) \ |
36 V(CallNew) \ | |
37 V(CallNewArray) \ | 36 V(CallNewArray) \ |
38 V(CallRuntime) \ | 37 V(CallRuntime) \ |
39 V(CallStub) \ | 38 V(CallStub) \ |
40 V(CheckArrayBufferNotNeutered) \ | 39 V(CheckArrayBufferNotNeutered) \ |
41 V(CheckInstanceType) \ | 40 V(CheckInstanceType) \ |
42 V(CheckNonSmi) \ | 41 V(CheckNonSmi) \ |
43 V(CheckMaps) \ | 42 V(CheckMaps) \ |
44 V(CheckMapValue) \ | 43 V(CheckMapValue) \ |
45 V(CheckSmi) \ | 44 V(CheckSmi) \ |
46 V(CheckValue) \ | 45 V(CheckValue) \ |
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1818 LOperand* temp_vector() { return temps_[1]; } | 1817 LOperand* temp_vector() { return temps_[1]; } |
1819 | 1818 |
1820 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1819 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
1821 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1820 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
1822 | 1821 |
1823 int arity() const { return hydrogen()->argument_count() - 1; } | 1822 int arity() const { return hydrogen()->argument_count() - 1; } |
1824 void PrintDataTo(StringStream* stream) override; | 1823 void PrintDataTo(StringStream* stream) override; |
1825 }; | 1824 }; |
1826 | 1825 |
1827 | 1826 |
1828 class LCallNew final : public LTemplateInstruction<1, 2, 0> { | |
1829 public: | |
1830 LCallNew(LOperand* context, LOperand* constructor) { | |
1831 inputs_[0] = context; | |
1832 inputs_[1] = constructor; | |
1833 } | |
1834 | |
1835 LOperand* context() { return inputs_[0]; } | |
1836 LOperand* constructor() { return inputs_[1]; } | |
1837 | |
1838 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new") | |
1839 DECLARE_HYDROGEN_ACCESSOR(CallNew) | |
1840 | |
1841 void PrintDataTo(StringStream* stream) override; | |
1842 | |
1843 int arity() const { return hydrogen()->argument_count() - 1; } | |
1844 }; | |
1845 | |
1846 | |
1847 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 1827 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |
1848 public: | 1828 public: |
1849 LCallNewArray(LOperand* context, LOperand* constructor) { | 1829 LCallNewArray(LOperand* context, LOperand* constructor) { |
1850 inputs_[0] = context; | 1830 inputs_[0] = context; |
1851 inputs_[1] = constructor; | 1831 inputs_[1] = constructor; |
1852 } | 1832 } |
1853 | 1833 |
1854 LOperand* context() { return inputs_[0]; } | 1834 LOperand* context() { return inputs_[0]; } |
1855 LOperand* constructor() { return inputs_[1]; } | 1835 LOperand* constructor() { return inputs_[1]; } |
1856 | 1836 |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2717 | 2697 |
2718 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2698 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2719 }; | 2699 }; |
2720 | 2700 |
2721 #undef DECLARE_HYDROGEN_ACCESSOR | 2701 #undef DECLARE_HYDROGEN_ACCESSOR |
2722 #undef DECLARE_CONCRETE_INSTRUCTION | 2702 #undef DECLARE_CONCRETE_INSTRUCTION |
2723 } // namespace internal | 2703 } // namespace internal |
2724 } // namespace v8 | 2704 } // namespace v8 |
2725 | 2705 |
2726 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2706 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |