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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 15 matching lines...) Expand all Loading... |
26 V(AddI) \ | 26 V(AddI) \ |
27 V(Allocate) \ | 27 V(Allocate) \ |
28 V(ApplyArguments) \ | 28 V(ApplyArguments) \ |
29 V(ArgumentsElements) \ | 29 V(ArgumentsElements) \ |
30 V(ArgumentsLength) \ | 30 V(ArgumentsLength) \ |
31 V(ArithmeticD) \ | 31 V(ArithmeticD) \ |
32 V(ArithmeticT) \ | 32 V(ArithmeticT) \ |
33 V(BitI) \ | 33 V(BitI) \ |
34 V(BoundsCheck) \ | 34 V(BoundsCheck) \ |
35 V(Branch) \ | 35 V(Branch) \ |
36 V(CallJSFunction) \ | |
37 V(CallWithDescriptor) \ | 36 V(CallWithDescriptor) \ |
38 V(CallNewArray) \ | 37 V(CallNewArray) \ |
39 V(CallRuntime) \ | 38 V(CallRuntime) \ |
40 V(CheckArrayBufferNotNeutered) \ | 39 V(CheckArrayBufferNotNeutered) \ |
41 V(CheckInstanceType) \ | 40 V(CheckInstanceType) \ |
42 V(CheckMaps) \ | 41 V(CheckMaps) \ |
43 V(CheckMapValue) \ | 42 V(CheckMapValue) \ |
44 V(CheckNonSmi) \ | 43 V(CheckNonSmi) \ |
45 V(CheckSmi) \ | 44 V(CheckSmi) \ |
46 V(CheckValue) \ | 45 V(CheckValue) \ |
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1727 inputs_[0] = context; | 1726 inputs_[0] = context; |
1728 } | 1727 } |
1729 | 1728 |
1730 LOperand* context() { return inputs_[0]; } | 1729 LOperand* context() { return inputs_[0]; } |
1731 | 1730 |
1732 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") | 1731 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") |
1733 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) | 1732 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) |
1734 }; | 1733 }; |
1735 | 1734 |
1736 | 1735 |
1737 class LCallJSFunction final : public LTemplateInstruction<1, 1, 0> { | |
1738 public: | |
1739 explicit LCallJSFunction(LOperand* function) { | |
1740 inputs_[0] = function; | |
1741 } | |
1742 | |
1743 LOperand* function() { return inputs_[0]; } | |
1744 | |
1745 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function") | |
1746 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | |
1747 | |
1748 void PrintDataTo(StringStream* stream) override; | |
1749 | |
1750 int arity() const { return hydrogen()->argument_count() - 1; } | |
1751 }; | |
1752 | |
1753 | |
1754 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { | 1736 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { |
1755 public: | 1737 public: |
1756 LCallWithDescriptor(CallInterfaceDescriptor descriptor, | 1738 LCallWithDescriptor(CallInterfaceDescriptor descriptor, |
1757 const ZoneList<LOperand*>& operands, Zone* zone) | 1739 const ZoneList<LOperand*>& operands, Zone* zone) |
1758 : inputs_(descriptor.GetRegisterParameterCount() + | 1740 : inputs_(descriptor.GetRegisterParameterCount() + |
1759 kImplicitRegisterParameterCount, | 1741 kImplicitRegisterParameterCount, |
1760 zone) { | 1742 zone) { |
1761 DCHECK(descriptor.GetRegisterParameterCount() + | 1743 DCHECK(descriptor.GetRegisterParameterCount() + |
1762 kImplicitRegisterParameterCount == | 1744 kImplicitRegisterParameterCount == |
1763 operands.length()); | 1745 operands.length()); |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2703 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2685 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2704 }; | 2686 }; |
2705 | 2687 |
2706 #undef DECLARE_HYDROGEN_ACCESSOR | 2688 #undef DECLARE_HYDROGEN_ACCESSOR |
2707 #undef DECLARE_CONCRETE_INSTRUCTION | 2689 #undef DECLARE_CONCRETE_INSTRUCTION |
2708 | 2690 |
2709 } // namespace internal | 2691 } // namespace internal |
2710 } // namespace v8 | 2692 } // namespace v8 |
2711 | 2693 |
2712 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2694 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |