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 19 matching lines...) Expand all Loading... |
30 V(ArgumentsElements) \ | 30 V(ArgumentsElements) \ |
31 V(ArgumentsLength) \ | 31 V(ArgumentsLength) \ |
32 V(ArithmeticD) \ | 32 V(ArithmeticD) \ |
33 V(ArithmeticT) \ | 33 V(ArithmeticT) \ |
34 V(BitI) \ | 34 V(BitI) \ |
35 V(BoundsCheck) \ | 35 V(BoundsCheck) \ |
36 V(Branch) \ | 36 V(Branch) \ |
37 V(CallJSFunction) \ | 37 V(CallJSFunction) \ |
38 V(CallWithDescriptor) \ | 38 V(CallWithDescriptor) \ |
39 V(CallFunction) \ | 39 V(CallFunction) \ |
40 V(CallNew) \ | |
41 V(CallNewArray) \ | 40 V(CallNewArray) \ |
42 V(CallRuntime) \ | 41 V(CallRuntime) \ |
43 V(CallStub) \ | 42 V(CallStub) \ |
44 V(CheckArrayBufferNotNeutered) \ | 43 V(CheckArrayBufferNotNeutered) \ |
45 V(CheckInstanceType) \ | 44 V(CheckInstanceType) \ |
46 V(CheckMaps) \ | 45 V(CheckMaps) \ |
47 V(CheckMapValue) \ | 46 V(CheckMapValue) \ |
48 V(CheckNonSmi) \ | 47 V(CheckNonSmi) \ |
49 V(CheckSmi) \ | 48 V(CheckSmi) \ |
50 V(CheckValue) \ | 49 V(CheckValue) \ |
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1907 LOperand* temp_vector() { return temps_[1]; } | 1906 LOperand* temp_vector() { return temps_[1]; } |
1908 | 1907 |
1909 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1908 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
1910 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1909 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
1911 | 1910 |
1912 void PrintDataTo(StringStream* stream) override; | 1911 void PrintDataTo(StringStream* stream) override; |
1913 int arity() const { return hydrogen()->argument_count() - 1; } | 1912 int arity() const { return hydrogen()->argument_count() - 1; } |
1914 }; | 1913 }; |
1915 | 1914 |
1916 | 1915 |
1917 class LCallNew final : public LTemplateInstruction<1, 2, 0> { | |
1918 public: | |
1919 LCallNew(LOperand* context, LOperand* constructor) { | |
1920 inputs_[0] = context; | |
1921 inputs_[1] = constructor; | |
1922 } | |
1923 | |
1924 LOperand* context() { return inputs_[0]; } | |
1925 LOperand* constructor() { return inputs_[1]; } | |
1926 | |
1927 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new") | |
1928 DECLARE_HYDROGEN_ACCESSOR(CallNew) | |
1929 | |
1930 void PrintDataTo(StringStream* stream) override; | |
1931 | |
1932 int arity() const { return hydrogen()->argument_count() - 1; } | |
1933 }; | |
1934 | |
1935 | |
1936 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 1916 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |
1937 public: | 1917 public: |
1938 LCallNewArray(LOperand* context, LOperand* constructor) { | 1918 LCallNewArray(LOperand* context, LOperand* constructor) { |
1939 inputs_[0] = context; | 1919 inputs_[0] = context; |
1940 inputs_[1] = constructor; | 1920 inputs_[1] = constructor; |
1941 } | 1921 } |
1942 | 1922 |
1943 LOperand* context() { return inputs_[0]; } | 1923 LOperand* context() { return inputs_[0]; } |
1944 LOperand* constructor() { return inputs_[1]; } | 1924 LOperand* constructor() { return inputs_[1]; } |
1945 | 1925 |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2854 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2834 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2855 }; | 2835 }; |
2856 | 2836 |
2857 #undef DECLARE_HYDROGEN_ACCESSOR | 2837 #undef DECLARE_HYDROGEN_ACCESSOR |
2858 #undef DECLARE_CONCRETE_INSTRUCTION | 2838 #undef DECLARE_CONCRETE_INSTRUCTION |
2859 | 2839 |
2860 } // namespace internal | 2840 } // namespace internal |
2861 } // namespace v8 | 2841 } // namespace v8 |
2862 | 2842 |
2863 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2843 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |