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 14 matching lines...) Expand all Loading... |
25 V(Allocate) \ | 25 V(Allocate) \ |
26 V(ApplyArguments) \ | 26 V(ApplyArguments) \ |
27 V(ArgumentsElements) \ | 27 V(ArgumentsElements) \ |
28 V(ArgumentsLength) \ | 28 V(ArgumentsLength) \ |
29 V(ArithmeticD) \ | 29 V(ArithmeticD) \ |
30 V(ArithmeticT) \ | 30 V(ArithmeticT) \ |
31 V(BitI) \ | 31 V(BitI) \ |
32 V(BitS) \ | 32 V(BitS) \ |
33 V(BoundsCheck) \ | 33 V(BoundsCheck) \ |
34 V(Branch) \ | 34 V(Branch) \ |
35 V(CallFunction) \ | |
36 V(CallJSFunction) \ | 35 V(CallJSFunction) \ |
37 V(CallNewArray) \ | 36 V(CallNewArray) \ |
38 V(CallRuntime) \ | 37 V(CallRuntime) \ |
39 V(CallWithDescriptor) \ | 38 V(CallWithDescriptor) \ |
40 V(CheckArrayBufferNotNeutered) \ | 39 V(CheckArrayBufferNotNeutered) \ |
41 V(CheckInstanceType) \ | 40 V(CheckInstanceType) \ |
42 V(CheckMapValue) \ | 41 V(CheckMapValue) \ |
43 V(CheckMaps) \ | 42 V(CheckMaps) \ |
44 V(CheckNonSmi) \ | 43 V(CheckNonSmi) \ |
45 V(CheckSmi) \ | 44 V(CheckSmi) \ |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 | 810 |
812 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function") | 811 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function") |
813 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | 812 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) |
814 | 813 |
815 void PrintDataTo(StringStream* stream) override; | 814 void PrintDataTo(StringStream* stream) override; |
816 | 815 |
817 int arity() const { return hydrogen()->argument_count() - 1; } | 816 int arity() const { return hydrogen()->argument_count() - 1; } |
818 }; | 817 }; |
819 | 818 |
820 | 819 |
821 class LCallFunction final : public LTemplateInstruction<1, 2, 2> { | |
822 public: | |
823 LCallFunction(LOperand* context, LOperand* function, LOperand* slot, | |
824 LOperand* vector) { | |
825 inputs_[0] = context; | |
826 inputs_[1] = function; | |
827 temps_[0] = slot; | |
828 temps_[1] = vector; | |
829 } | |
830 | |
831 LOperand* context() { return inputs_[0]; } | |
832 LOperand* function() { return inputs_[1]; } | |
833 LOperand* temp_slot() { return temps_[0]; } | |
834 LOperand* temp_vector() { return temps_[1]; } | |
835 | |
836 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | |
837 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | |
838 | |
839 int arity() const { return hydrogen()->argument_count() - 1; } | |
840 void PrintDataTo(StringStream* stream) override; | |
841 }; | |
842 | |
843 | |
844 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 820 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |
845 public: | 821 public: |
846 LCallNewArray(LOperand* context, LOperand* constructor) { | 822 LCallNewArray(LOperand* context, LOperand* constructor) { |
847 inputs_[0] = context; | 823 inputs_[0] = context; |
848 inputs_[1] = constructor; | 824 inputs_[1] = constructor; |
849 } | 825 } |
850 | 826 |
851 LOperand* context() { return inputs_[0]; } | 827 LOperand* context() { return inputs_[0]; } |
852 LOperand* constructor() { return inputs_[1]; } | 828 LOperand* constructor() { return inputs_[1]; } |
853 | 829 |
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3085 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3061 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3086 }; | 3062 }; |
3087 | 3063 |
3088 #undef DECLARE_HYDROGEN_ACCESSOR | 3064 #undef DECLARE_HYDROGEN_ACCESSOR |
3089 #undef DECLARE_CONCRETE_INSTRUCTION | 3065 #undef DECLARE_CONCRETE_INSTRUCTION |
3090 | 3066 |
3091 } // namespace internal | 3067 } // namespace internal |
3092 } // namespace v8 | 3068 } // namespace v8 |
3093 | 3069 |
3094 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3070 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |