OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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(BitS) \ | 33 V(BitS) \ |
34 V(BoundsCheck) \ | 34 V(BoundsCheck) \ |
35 V(Branch) \ | 35 V(Branch) \ |
36 V(CallFunction) \ | 36 V(CallFunction) \ |
37 V(CallJSFunction) \ | 37 V(CallJSFunction) \ |
38 V(CallNew) \ | |
39 V(CallNewArray) \ | 38 V(CallNewArray) \ |
40 V(CallRuntime) \ | 39 V(CallRuntime) \ |
41 V(CallStub) \ | 40 V(CallStub) \ |
42 V(CallWithDescriptor) \ | 41 V(CallWithDescriptor) \ |
43 V(CheckArrayBufferNotNeutered) \ | 42 V(CheckArrayBufferNotNeutered) \ |
44 V(CheckInstanceType) \ | 43 V(CheckInstanceType) \ |
45 V(CheckMapValue) \ | 44 V(CheckMapValue) \ |
46 V(CheckMaps) \ | 45 V(CheckMaps) \ |
47 V(CheckNonSmi) \ | 46 V(CheckNonSmi) \ |
48 V(CheckSmi) \ | 47 V(CheckSmi) \ |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 LOperand* temp_vector() { return temps_[1]; } | 843 LOperand* temp_vector() { return temps_[1]; } |
845 | 844 |
846 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 845 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
847 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 846 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
848 | 847 |
849 int arity() const { return hydrogen()->argument_count() - 1; } | 848 int arity() const { return hydrogen()->argument_count() - 1; } |
850 void PrintDataTo(StringStream* stream) override; | 849 void PrintDataTo(StringStream* stream) override; |
851 }; | 850 }; |
852 | 851 |
853 | 852 |
854 class LCallNew final : public LTemplateInstruction<1, 2, 0> { | |
855 public: | |
856 LCallNew(LOperand* context, LOperand* constructor) { | |
857 inputs_[0] = context; | |
858 inputs_[1] = constructor; | |
859 } | |
860 | |
861 LOperand* context() { return inputs_[0]; } | |
862 LOperand* constructor() { return inputs_[1]; } | |
863 | |
864 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new") | |
865 DECLARE_HYDROGEN_ACCESSOR(CallNew) | |
866 | |
867 void PrintDataTo(StringStream* stream) override; | |
868 | |
869 int arity() const { return hydrogen()->argument_count() - 1; } | |
870 }; | |
871 | |
872 | |
873 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 853 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |
874 public: | 854 public: |
875 LCallNewArray(LOperand* context, LOperand* constructor) { | 855 LCallNewArray(LOperand* context, LOperand* constructor) { |
876 inputs_[0] = context; | 856 inputs_[0] = context; |
877 inputs_[1] = constructor; | 857 inputs_[1] = constructor; |
878 } | 858 } |
879 | 859 |
880 LOperand* context() { return inputs_[0]; } | 860 LOperand* context() { return inputs_[0]; } |
881 LOperand* constructor() { return inputs_[1]; } | 861 LOperand* constructor() { return inputs_[1]; } |
882 | 862 |
(...skipping 2328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3211 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3191 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3212 }; | 3192 }; |
3213 | 3193 |
3214 #undef DECLARE_HYDROGEN_ACCESSOR | 3194 #undef DECLARE_HYDROGEN_ACCESSOR |
3215 #undef DECLARE_CONCRETE_INSTRUCTION | 3195 #undef DECLARE_CONCRETE_INSTRUCTION |
3216 | 3196 |
3217 } // namespace internal | 3197 } // namespace internal |
3218 } // namespace v8 | 3198 } // namespace v8 |
3219 | 3199 |
3220 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3200 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |