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 11 matching lines...) Expand all Loading... |
22 V(AddI) \ | 22 V(AddI) \ |
23 V(Allocate) \ | 23 V(Allocate) \ |
24 V(ApplyArguments) \ | 24 V(ApplyArguments) \ |
25 V(ArgumentsElements) \ | 25 V(ArgumentsElements) \ |
26 V(ArgumentsLength) \ | 26 V(ArgumentsLength) \ |
27 V(ArithmeticD) \ | 27 V(ArithmeticD) \ |
28 V(ArithmeticT) \ | 28 V(ArithmeticT) \ |
29 V(BitI) \ | 29 V(BitI) \ |
30 V(BoundsCheck) \ | 30 V(BoundsCheck) \ |
31 V(Branch) \ | 31 V(Branch) \ |
32 V(CallJSFunction) \ | |
33 V(CallWithDescriptor) \ | 32 V(CallWithDescriptor) \ |
34 V(CallNewArray) \ | 33 V(CallNewArray) \ |
35 V(CallRuntime) \ | 34 V(CallRuntime) \ |
36 V(CheckArrayBufferNotNeutered) \ | 35 V(CheckArrayBufferNotNeutered) \ |
37 V(CheckInstanceType) \ | 36 V(CheckInstanceType) \ |
38 V(CheckNonSmi) \ | 37 V(CheckNonSmi) \ |
39 V(CheckMaps) \ | 38 V(CheckMaps) \ |
40 V(CheckMapValue) \ | 39 V(CheckMapValue) \ |
41 V(CheckSmi) \ | 40 V(CheckSmi) \ |
42 V(CheckValue) \ | 41 V(CheckValue) \ |
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1713 inputs_[0] = context; | 1712 inputs_[0] = context; |
1714 } | 1713 } |
1715 | 1714 |
1716 LOperand* context() { return inputs_[0]; } | 1715 LOperand* context() { return inputs_[0]; } |
1717 | 1716 |
1718 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") | 1717 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") |
1719 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) | 1718 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) |
1720 }; | 1719 }; |
1721 | 1720 |
1722 | 1721 |
1723 class LCallJSFunction final : public LTemplateInstruction<1, 1, 0> { | |
1724 public: | |
1725 explicit LCallJSFunction(LOperand* function) { | |
1726 inputs_[0] = function; | |
1727 } | |
1728 | |
1729 LOperand* function() { return inputs_[0]; } | |
1730 | |
1731 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function") | |
1732 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | |
1733 | |
1734 void PrintDataTo(StringStream* stream) override; | |
1735 | |
1736 int arity() const { return hydrogen()->argument_count() - 1; } | |
1737 }; | |
1738 | |
1739 | |
1740 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { | 1722 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { |
1741 public: | 1723 public: |
1742 LCallWithDescriptor(CallInterfaceDescriptor descriptor, | 1724 LCallWithDescriptor(CallInterfaceDescriptor descriptor, |
1743 const ZoneList<LOperand*>& operands, Zone* zone) | 1725 const ZoneList<LOperand*>& operands, Zone* zone) |
1744 : descriptor_(descriptor), | 1726 : descriptor_(descriptor), |
1745 inputs_(descriptor.GetRegisterParameterCount() + | 1727 inputs_(descriptor.GetRegisterParameterCount() + |
1746 kImplicitRegisterParameterCount, | 1728 kImplicitRegisterParameterCount, |
1747 zone) { | 1729 zone) { |
1748 DCHECK(descriptor.GetRegisterParameterCount() + | 1730 DCHECK(descriptor.GetRegisterParameterCount() + |
1749 kImplicitRegisterParameterCount == | 1731 kImplicitRegisterParameterCount == |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2689 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2671 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2690 }; | 2672 }; |
2691 | 2673 |
2692 #undef DECLARE_HYDROGEN_ACCESSOR | 2674 #undef DECLARE_HYDROGEN_ACCESSOR |
2693 #undef DECLARE_CONCRETE_INSTRUCTION | 2675 #undef DECLARE_CONCRETE_INSTRUCTION |
2694 | 2676 |
2695 } // namespace internal | 2677 } // namespace internal |
2696 } // namespace v8 | 2678 } // namespace v8 |
2697 | 2679 |
2698 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2680 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |