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 13 matching lines...) Expand all Loading... |
24 V(AddS) \ | 24 V(AddS) \ |
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(BoundsCheck) \ | 32 V(BoundsCheck) \ |
33 V(Branch) \ | 33 V(Branch) \ |
34 V(CallJSFunction) \ | |
35 V(CallWithDescriptor) \ | 34 V(CallWithDescriptor) \ |
36 V(CallNewArray) \ | 35 V(CallNewArray) \ |
37 V(CallRuntime) \ | 36 V(CallRuntime) \ |
38 V(CheckArrayBufferNotNeutered) \ | 37 V(CheckArrayBufferNotNeutered) \ |
39 V(CheckInstanceType) \ | 38 V(CheckInstanceType) \ |
40 V(CheckMaps) \ | 39 V(CheckMaps) \ |
41 V(CheckMapValue) \ | 40 V(CheckMapValue) \ |
42 V(CheckNonSmi) \ | 41 V(CheckNonSmi) \ |
43 V(CheckSmi) \ | 42 V(CheckSmi) \ |
44 V(CheckValue) \ | 43 V(CheckValue) \ |
(...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 inputs_[0] = context; | 1737 inputs_[0] = context; |
1739 } | 1738 } |
1740 | 1739 |
1741 LOperand* context() { return inputs_[0]; } | 1740 LOperand* context() { return inputs_[0]; } |
1742 | 1741 |
1743 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") | 1742 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") |
1744 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) | 1743 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) |
1745 }; | 1744 }; |
1746 | 1745 |
1747 | 1746 |
1748 class LCallJSFunction final : public LTemplateInstruction<1, 1, 0> { | |
1749 public: | |
1750 explicit LCallJSFunction(LOperand* function) { | |
1751 inputs_[0] = function; | |
1752 } | |
1753 | |
1754 LOperand* function() { return inputs_[0]; } | |
1755 | |
1756 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function") | |
1757 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | |
1758 | |
1759 void PrintDataTo(StringStream* stream) override; | |
1760 | |
1761 int arity() const { return hydrogen()->argument_count() - 1; } | |
1762 }; | |
1763 | |
1764 | |
1765 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { | 1747 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { |
1766 public: | 1748 public: |
1767 LCallWithDescriptor(CallInterfaceDescriptor descriptor, | 1749 LCallWithDescriptor(CallInterfaceDescriptor descriptor, |
1768 const ZoneList<LOperand*>& operands, Zone* zone) | 1750 const ZoneList<LOperand*>& operands, Zone* zone) |
1769 : descriptor_(descriptor), | 1751 : descriptor_(descriptor), |
1770 inputs_(descriptor.GetRegisterParameterCount() + | 1752 inputs_(descriptor.GetRegisterParameterCount() + |
1771 kImplicitRegisterParameterCount, | 1753 kImplicitRegisterParameterCount, |
1772 zone) { | 1754 zone) { |
1773 DCHECK(descriptor.GetRegisterParameterCount() + | 1755 DCHECK(descriptor.GetRegisterParameterCount() + |
1774 kImplicitRegisterParameterCount == | 1756 kImplicitRegisterParameterCount == |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2675 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2694 }; | 2676 }; |
2695 | 2677 |
2696 #undef DECLARE_HYDROGEN_ACCESSOR | 2678 #undef DECLARE_HYDROGEN_ACCESSOR |
2697 #undef DECLARE_CONCRETE_INSTRUCTION | 2679 #undef DECLARE_CONCRETE_INSTRUCTION |
2698 | 2680 |
2699 } // namespace internal | 2681 } // namespace internal |
2700 } // namespace v8 | 2682 } // namespace v8 |
2701 | 2683 |
2702 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2684 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
OLD | NEW |