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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 17 matching lines...) Expand all Loading... |
28 V(ApplyArguments) \ | 28 V(ApplyArguments) \ |
29 V(ArgumentsElements) \ | 29 V(ArgumentsElements) \ |
30 V(ArgumentsLength) \ | 30 V(ArgumentsLength) \ |
31 V(ArithmeticD) \ | 31 V(ArithmeticD) \ |
32 V(ArithmeticT) \ | 32 V(ArithmeticT) \ |
33 V(BitI) \ | 33 V(BitI) \ |
34 V(BoundsCheck) \ | 34 V(BoundsCheck) \ |
35 V(Branch) \ | 35 V(Branch) \ |
36 V(CallJSFunction) \ | 36 V(CallJSFunction) \ |
37 V(CallWithDescriptor) \ | 37 V(CallWithDescriptor) \ |
38 V(CallFunction) \ | |
39 V(CallNewArray) \ | 38 V(CallNewArray) \ |
40 V(CallRuntime) \ | 39 V(CallRuntime) \ |
41 V(CheckArrayBufferNotNeutered) \ | 40 V(CheckArrayBufferNotNeutered) \ |
42 V(CheckInstanceType) \ | 41 V(CheckInstanceType) \ |
43 V(CheckMaps) \ | 42 V(CheckMaps) \ |
44 V(CheckMapValue) \ | 43 V(CheckMapValue) \ |
45 V(CheckNonSmi) \ | 44 V(CheckNonSmi) \ |
46 V(CheckSmi) \ | 45 V(CheckSmi) \ |
47 V(CheckValue) \ | 46 V(CheckValue) \ |
48 V(ClampDToUint8) \ | 47 V(ClampDToUint8) \ |
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1791 | 1790 |
1792 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1791 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
1793 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1792 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
1794 | 1793 |
1795 void PrintDataTo(StringStream* stream) override; | 1794 void PrintDataTo(StringStream* stream) override; |
1796 | 1795 |
1797 int arity() const { return hydrogen()->argument_count() - 1; } | 1796 int arity() const { return hydrogen()->argument_count() - 1; } |
1798 }; | 1797 }; |
1799 | 1798 |
1800 | 1799 |
1801 class LCallFunction final : public LTemplateInstruction<1, 2, 2> { | |
1802 public: | |
1803 LCallFunction(LOperand* context, LOperand* function, LOperand* slot, | |
1804 LOperand* vector) { | |
1805 inputs_[0] = context; | |
1806 inputs_[1] = function; | |
1807 temps_[0] = slot; | |
1808 temps_[1] = vector; | |
1809 } | |
1810 | |
1811 LOperand* context() { return inputs_[0]; } | |
1812 LOperand* function() { return inputs_[1]; } | |
1813 LOperand* temp_slot() { return temps_[0]; } | |
1814 LOperand* temp_vector() { return temps_[1]; } | |
1815 | |
1816 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | |
1817 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | |
1818 | |
1819 void PrintDataTo(StringStream* stream) override; | |
1820 int arity() const { return hydrogen()->argument_count() - 1; } | |
1821 }; | |
1822 | |
1823 | |
1824 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 1800 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |
1825 public: | 1801 public: |
1826 LCallNewArray(LOperand* context, LOperand* constructor) { | 1802 LCallNewArray(LOperand* context, LOperand* constructor) { |
1827 inputs_[0] = context; | 1803 inputs_[0] = context; |
1828 inputs_[1] = constructor; | 1804 inputs_[1] = constructor; |
1829 } | 1805 } |
1830 | 1806 |
1831 LOperand* context() { return inputs_[0]; } | 1807 LOperand* context() { return inputs_[0]; } |
1832 LOperand* constructor() { return inputs_[1]; } | 1808 LOperand* constructor() { return inputs_[1]; } |
1833 | 1809 |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2711 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2687 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2712 }; | 2688 }; |
2713 | 2689 |
2714 #undef DECLARE_HYDROGEN_ACCESSOR | 2690 #undef DECLARE_HYDROGEN_ACCESSOR |
2715 #undef DECLARE_CONCRETE_INSTRUCTION | 2691 #undef DECLARE_CONCRETE_INSTRUCTION |
2716 | 2692 |
2717 } // namespace internal | 2693 } // namespace internal |
2718 } // namespace v8 | 2694 } // namespace v8 |
2719 | 2695 |
2720 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2696 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |