| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_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 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(CheckMaps) \ | 37 V(CheckMaps) \ |
| 39 V(CheckMapValue) \ | 38 V(CheckMapValue) \ |
| 40 V(CheckNonSmi) \ | 39 V(CheckNonSmi) \ |
| 41 V(CheckSmi) \ | 40 V(CheckSmi) \ |
| 42 V(CheckValue) \ | 41 V(CheckValue) \ |
| (...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 inputs_[0] = context; | 1675 inputs_[0] = context; |
| 1677 } | 1676 } |
| 1678 | 1677 |
| 1679 LOperand* context() { return inputs_[0]; } | 1678 LOperand* context() { return inputs_[0]; } |
| 1680 | 1679 |
| 1681 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") | 1680 DECLARE_CONCRETE_INSTRUCTION(DeclareGlobals, "declare-globals") |
| 1682 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) | 1681 DECLARE_HYDROGEN_ACCESSOR(DeclareGlobals) |
| 1683 }; | 1682 }; |
| 1684 | 1683 |
| 1685 | 1684 |
| 1686 class LCallJSFunction final : public LTemplateInstruction<1, 1, 0> { | |
| 1687 public: | |
| 1688 explicit LCallJSFunction(LOperand* function) { | |
| 1689 inputs_[0] = function; | |
| 1690 } | |
| 1691 | |
| 1692 LOperand* function() { return inputs_[0]; } | |
| 1693 | |
| 1694 DECLARE_CONCRETE_INSTRUCTION(CallJSFunction, "call-js-function") | |
| 1695 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | |
| 1696 | |
| 1697 void PrintDataTo(StringStream* stream) override; | |
| 1698 | |
| 1699 int arity() const { return hydrogen()->argument_count() - 1; } | |
| 1700 }; | |
| 1701 | |
| 1702 | |
| 1703 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { | 1685 class LCallWithDescriptor final : public LTemplateResultInstruction<1> { |
| 1704 public: | 1686 public: |
| 1705 LCallWithDescriptor(CallInterfaceDescriptor descriptor, | 1687 LCallWithDescriptor(CallInterfaceDescriptor descriptor, |
| 1706 const ZoneList<LOperand*>& operands, Zone* zone) | 1688 const ZoneList<LOperand*>& operands, Zone* zone) |
| 1707 : descriptor_(descriptor), | 1689 : descriptor_(descriptor), |
| 1708 inputs_(descriptor.GetRegisterParameterCount() + | 1690 inputs_(descriptor.GetRegisterParameterCount() + |
| 1709 kImplicitRegisterParameterCount, | 1691 kImplicitRegisterParameterCount, |
| 1710 zone) { | 1692 zone) { |
| 1711 DCHECK(descriptor.GetRegisterParameterCount() + | 1693 DCHECK(descriptor.GetRegisterParameterCount() + |
| 1712 kImplicitRegisterParameterCount == | 1694 kImplicitRegisterParameterCount == |
| (...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2647 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2629 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2648 }; | 2630 }; |
| 2649 | 2631 |
| 2650 #undef DECLARE_HYDROGEN_ACCESSOR | 2632 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2651 #undef DECLARE_CONCRETE_INSTRUCTION | 2633 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2652 | 2634 |
| 2653 } // namespace internal | 2635 } // namespace internal |
| 2654 } // namespace v8 | 2636 } // namespace v8 |
| 2655 | 2637 |
| 2656 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2638 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |