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_MIPS64_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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(ArgumentsElements) \ | 28 V(ArgumentsElements) \ |
29 V(ArgumentsLength) \ | 29 V(ArgumentsLength) \ |
30 V(ArithmeticD) \ | 30 V(ArithmeticD) \ |
31 V(ArithmeticT) \ | 31 V(ArithmeticT) \ |
32 V(BitI) \ | 32 V(BitI) \ |
33 V(BoundsCheck) \ | 33 V(BoundsCheck) \ |
34 V(Branch) \ | 34 V(Branch) \ |
35 V(CallJSFunction) \ | 35 V(CallJSFunction) \ |
36 V(CallWithDescriptor) \ | 36 V(CallWithDescriptor) \ |
37 V(CallFunction) \ | 37 V(CallFunction) \ |
38 V(CallNew) \ | |
39 V(CallNewArray) \ | 38 V(CallNewArray) \ |
40 V(CallRuntime) \ | 39 V(CallRuntime) \ |
41 V(CallStub) \ | 40 V(CallStub) \ |
42 V(CheckArrayBufferNotNeutered) \ | 41 V(CheckArrayBufferNotNeutered) \ |
43 V(CheckInstanceType) \ | 42 V(CheckInstanceType) \ |
44 V(CheckMaps) \ | 43 V(CheckMaps) \ |
45 V(CheckMapValue) \ | 44 V(CheckMapValue) \ |
46 V(CheckNonSmi) \ | 45 V(CheckNonSmi) \ |
47 V(CheckSmi) \ | 46 V(CheckSmi) \ |
48 V(CheckValue) \ | 47 V(CheckValue) \ |
(...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1911 LOperand* temp_vector() { return temps_[1]; } | 1910 LOperand* temp_vector() { return temps_[1]; } |
1912 | 1911 |
1913 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1912 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
1914 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1913 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
1915 | 1914 |
1916 int arity() const { return hydrogen()->argument_count() - 1; } | 1915 int arity() const { return hydrogen()->argument_count() - 1; } |
1917 void PrintDataTo(StringStream* stream) override; | 1916 void PrintDataTo(StringStream* stream) override; |
1918 }; | 1917 }; |
1919 | 1918 |
1920 | 1919 |
1921 class LCallNew final : public LTemplateInstruction<1, 2, 0> { | |
1922 public: | |
1923 LCallNew(LOperand* context, LOperand* constructor) { | |
1924 inputs_[0] = context; | |
1925 inputs_[1] = constructor; | |
1926 } | |
1927 | |
1928 LOperand* context() { return inputs_[0]; } | |
1929 LOperand* constructor() { return inputs_[1]; } | |
1930 | |
1931 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new") | |
1932 DECLARE_HYDROGEN_ACCESSOR(CallNew) | |
1933 | |
1934 void PrintDataTo(StringStream* stream) override; | |
1935 | |
1936 int arity() const { return hydrogen()->argument_count() - 1; } | |
1937 }; | |
1938 | |
1939 | |
1940 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 1920 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |
1941 public: | 1921 public: |
1942 LCallNewArray(LOperand* context, LOperand* constructor) { | 1922 LCallNewArray(LOperand* context, LOperand* constructor) { |
1943 inputs_[0] = context; | 1923 inputs_[0] = context; |
1944 inputs_[1] = constructor; | 1924 inputs_[1] = constructor; |
1945 } | 1925 } |
1946 | 1926 |
1947 LOperand* context() { return inputs_[0]; } | 1927 LOperand* context() { return inputs_[0]; } |
1948 LOperand* constructor() { return inputs_[1]; } | 1928 LOperand* constructor() { return inputs_[1]; } |
1949 | 1929 |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2846 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2826 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2847 }; | 2827 }; |
2848 | 2828 |
2849 #undef DECLARE_HYDROGEN_ACCESSOR | 2829 #undef DECLARE_HYDROGEN_ACCESSOR |
2850 #undef DECLARE_CONCRETE_INSTRUCTION | 2830 #undef DECLARE_CONCRETE_INSTRUCTION |
2851 | 2831 |
2852 } // namespace internal | 2832 } // namespace internal |
2853 } // namespace v8 | 2833 } // namespace v8 |
2854 | 2834 |
2855 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2835 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
OLD | NEW |