| 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 15 matching lines...) Expand all Loading... |
| 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) \ | 34 V(CallJSFunction) \ |
| 35 V(CallWithDescriptor) \ | 35 V(CallWithDescriptor) \ |
| 36 V(CallFunction) \ | |
| 37 V(CallNewArray) \ | 36 V(CallNewArray) \ |
| 38 V(CallRuntime) \ | 37 V(CallRuntime) \ |
| 39 V(CheckArrayBufferNotNeutered) \ | 38 V(CheckArrayBufferNotNeutered) \ |
| 40 V(CheckInstanceType) \ | 39 V(CheckInstanceType) \ |
| 41 V(CheckMaps) \ | 40 V(CheckMaps) \ |
| 42 V(CheckMapValue) \ | 41 V(CheckMapValue) \ |
| 43 V(CheckNonSmi) \ | 42 V(CheckNonSmi) \ |
| 44 V(CheckSmi) \ | 43 V(CheckSmi) \ |
| 45 V(CheckValue) \ | 44 V(CheckValue) \ |
| 46 V(ClampDToUint8) \ | 45 V(ClampDToUint8) \ |
| (...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 | 1817 |
| 1819 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") | 1818 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") |
| 1820 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) | 1819 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) |
| 1821 | 1820 |
| 1822 void PrintDataTo(StringStream* stream) override; | 1821 void PrintDataTo(StringStream* stream) override; |
| 1823 | 1822 |
| 1824 int arity() const { return hydrogen()->argument_count() - 1; } | 1823 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1825 }; | 1824 }; |
| 1826 | 1825 |
| 1827 | 1826 |
| 1828 class LCallFunction final : public LTemplateInstruction<1, 2, 2> { | |
| 1829 public: | |
| 1830 LCallFunction(LOperand* context, LOperand* function, LOperand* slot, | |
| 1831 LOperand* vector) { | |
| 1832 inputs_[0] = context; | |
| 1833 inputs_[1] = function; | |
| 1834 temps_[0] = slot; | |
| 1835 temps_[1] = vector; | |
| 1836 } | |
| 1837 | |
| 1838 LOperand* context() { return inputs_[0]; } | |
| 1839 LOperand* function() { return inputs_[1]; } | |
| 1840 LOperand* temp_slot() { return temps_[0]; } | |
| 1841 LOperand* temp_vector() { return temps_[1]; } | |
| 1842 | |
| 1843 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | |
| 1844 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | |
| 1845 | |
| 1846 int arity() const { return hydrogen()->argument_count() - 1; } | |
| 1847 void PrintDataTo(StringStream* stream) override; | |
| 1848 }; | |
| 1849 | |
| 1850 | |
| 1851 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 1827 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |
| 1852 public: | 1828 public: |
| 1853 LCallNewArray(LOperand* context, LOperand* constructor) { | 1829 LCallNewArray(LOperand* context, LOperand* constructor) { |
| 1854 inputs_[0] = context; | 1830 inputs_[0] = context; |
| 1855 inputs_[1] = constructor; | 1831 inputs_[1] = constructor; |
| 1856 } | 1832 } |
| 1857 | 1833 |
| 1858 LOperand* context() { return inputs_[0]; } | 1834 LOperand* context() { return inputs_[0]; } |
| 1859 LOperand* constructor() { return inputs_[1]; } | 1835 LOperand* constructor() { return inputs_[1]; } |
| 1860 | 1836 |
| (...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2717 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2693 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2718 }; | 2694 }; |
| 2719 | 2695 |
| 2720 #undef DECLARE_HYDROGEN_ACCESSOR | 2696 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2721 #undef DECLARE_CONCRETE_INSTRUCTION | 2697 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2722 | 2698 |
| 2723 } // namespace internal | 2699 } // namespace internal |
| 2724 } // namespace v8 | 2700 } // namespace v8 |
| 2725 | 2701 |
| 2726 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2702 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
| OLD | NEW |