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 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 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1886 LOperand* temp_vector() { return temps_[1]; } | 1885 LOperand* temp_vector() { return temps_[1]; } |
1887 | 1886 |
1888 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1887 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
1889 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1888 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
1890 | 1889 |
1891 int arity() const { return hydrogen()->argument_count() - 1; } | 1890 int arity() const { return hydrogen()->argument_count() - 1; } |
1892 void PrintDataTo(StringStream* stream) override; | 1891 void PrintDataTo(StringStream* stream) override; |
1893 }; | 1892 }; |
1894 | 1893 |
1895 | 1894 |
1896 class LCallNew final : public LTemplateInstruction<1, 2, 0> { | |
1897 public: | |
1898 LCallNew(LOperand* context, LOperand* constructor) { | |
1899 inputs_[0] = context; | |
1900 inputs_[1] = constructor; | |
1901 } | |
1902 | |
1903 LOperand* context() { return inputs_[0]; } | |
1904 LOperand* constructor() { return inputs_[1]; } | |
1905 | |
1906 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new") | |
1907 DECLARE_HYDROGEN_ACCESSOR(CallNew) | |
1908 | |
1909 void PrintDataTo(StringStream* stream) override; | |
1910 | |
1911 int arity() const { return hydrogen()->argument_count() - 1; } | |
1912 }; | |
1913 | |
1914 | |
1915 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 1895 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |
1916 public: | 1896 public: |
1917 LCallNewArray(LOperand* context, LOperand* constructor) { | 1897 LCallNewArray(LOperand* context, LOperand* constructor) { |
1918 inputs_[0] = context; | 1898 inputs_[0] = context; |
1919 inputs_[1] = constructor; | 1899 inputs_[1] = constructor; |
1920 } | 1900 } |
1921 | 1901 |
1922 LOperand* context() { return inputs_[0]; } | 1902 LOperand* context() { return inputs_[0]; } |
1923 LOperand* constructor() { return inputs_[1]; } | 1903 LOperand* constructor() { return inputs_[1]; } |
1924 | 1904 |
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2822 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2843 }; | 2823 }; |
2844 | 2824 |
2845 #undef DECLARE_HYDROGEN_ACCESSOR | 2825 #undef DECLARE_HYDROGEN_ACCESSOR |
2846 #undef DECLARE_CONCRETE_INSTRUCTION | 2826 #undef DECLARE_CONCRETE_INSTRUCTION |
2847 | 2827 |
2848 } // namespace internal | 2828 } // namespace internal |
2849 } // namespace v8 | 2829 } // namespace v8 |
2850 | 2830 |
2851 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2831 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |