| 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 15 matching lines...) Expand all Loading... |
| 26 V(ArgumentsElements) \ | 26 V(ArgumentsElements) \ |
| 27 V(ArgumentsLength) \ | 27 V(ArgumentsLength) \ |
| 28 V(ArithmeticD) \ | 28 V(ArithmeticD) \ |
| 29 V(ArithmeticT) \ | 29 V(ArithmeticT) \ |
| 30 V(BitI) \ | 30 V(BitI) \ |
| 31 V(BoundsCheck) \ | 31 V(BoundsCheck) \ |
| 32 V(Branch) \ | 32 V(Branch) \ |
| 33 V(CallJSFunction) \ | 33 V(CallJSFunction) \ |
| 34 V(CallWithDescriptor) \ | 34 V(CallWithDescriptor) \ |
| 35 V(CallFunction) \ | 35 V(CallFunction) \ |
| 36 V(CallNew) \ | |
| 37 V(CallNewArray) \ | 36 V(CallNewArray) \ |
| 38 V(CallRuntime) \ | 37 V(CallRuntime) \ |
| 39 V(CallStub) \ | 38 V(CallStub) \ |
| 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 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 LOperand* temp_vector() { return temps_[1]; } | 1848 LOperand* temp_vector() { return temps_[1]; } |
| 1850 | 1849 |
| 1851 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") | 1850 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
| 1852 DECLARE_HYDROGEN_ACCESSOR(CallFunction) | 1851 DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
| 1853 | 1852 |
| 1854 int arity() const { return hydrogen()->argument_count() - 1; } | 1853 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1855 void PrintDataTo(StringStream* stream) override; | 1854 void PrintDataTo(StringStream* stream) override; |
| 1856 }; | 1855 }; |
| 1857 | 1856 |
| 1858 | 1857 |
| 1859 class LCallNew final : public LTemplateInstruction<1, 2, 0> { | |
| 1860 public: | |
| 1861 LCallNew(LOperand* context, LOperand* constructor) { | |
| 1862 inputs_[0] = context; | |
| 1863 inputs_[1] = constructor; | |
| 1864 } | |
| 1865 | |
| 1866 LOperand* context() { return inputs_[0]; } | |
| 1867 LOperand* constructor() { return inputs_[1]; } | |
| 1868 | |
| 1869 DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new") | |
| 1870 DECLARE_HYDROGEN_ACCESSOR(CallNew) | |
| 1871 | |
| 1872 void PrintDataTo(StringStream* stream) override; | |
| 1873 | |
| 1874 int arity() const { return hydrogen()->argument_count() - 1; } | |
| 1875 }; | |
| 1876 | |
| 1877 | |
| 1878 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { | 1858 class LCallNewArray final : public LTemplateInstruction<1, 2, 0> { |
| 1879 public: | 1859 public: |
| 1880 LCallNewArray(LOperand* context, LOperand* constructor) { | 1860 LCallNewArray(LOperand* context, LOperand* constructor) { |
| 1881 inputs_[0] = context; | 1861 inputs_[0] = context; |
| 1882 inputs_[1] = constructor; | 1862 inputs_[1] = constructor; |
| 1883 } | 1863 } |
| 1884 | 1864 |
| 1885 LOperand* context() { return inputs_[0]; } | 1865 LOperand* context() { return inputs_[0]; } |
| 1886 LOperand* constructor() { return inputs_[1]; } | 1866 LOperand* constructor() { return inputs_[1]; } |
| 1887 | 1867 |
| (...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2800 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2780 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2801 }; | 2781 }; |
| 2802 | 2782 |
| 2803 #undef DECLARE_HYDROGEN_ACCESSOR | 2783 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2804 #undef DECLARE_CONCRETE_INSTRUCTION | 2784 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2805 | 2785 |
| 2806 } // namespace internal | 2786 } // namespace internal |
| 2807 } // namespace v8 | 2787 } // namespace v8 |
| 2808 | 2788 |
| 2809 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2789 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |