| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_H_ |
| 7 | 7 |
| 8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
| 9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
| 10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
| (...skipping 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1829 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | 1829 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) |
| 1830 | 1830 |
| 1831 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1831 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1832 | 1832 |
| 1833 int arity() const { return hydrogen()->argument_count() - 1; } | 1833 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1834 }; | 1834 }; |
| 1835 | 1835 |
| 1836 | 1836 |
| 1837 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1837 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
| 1838 public: | 1838 public: |
| 1839 LCallWithDescriptor(const InterfaceDescriptor* descriptor, | 1839 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, |
| 1840 const ZoneList<LOperand*>& operands, | 1840 const ZoneList<LOperand*>& operands, Zone* zone) |
| 1841 Zone* zone) | 1841 : descriptor_(descriptor), |
| 1842 : descriptor_(descriptor), | 1842 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { |
| 1843 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { | |
| 1844 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); | 1843 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); |
| 1845 inputs_.AddAll(operands, zone); | 1844 inputs_.AddAll(operands, zone); |
| 1846 } | 1845 } |
| 1847 | 1846 |
| 1848 LOperand* target() const { return inputs_[0]; } | 1847 LOperand* target() const { return inputs_[0]; } |
| 1849 | 1848 |
| 1850 const InterfaceDescriptor* descriptor() { return descriptor_; } | 1849 const CallInterfaceDescriptor* descriptor() { return descriptor_; } |
| 1851 | 1850 |
| 1852 private: | 1851 private: |
| 1853 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1852 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
| 1854 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | 1853 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
| 1855 | 1854 |
| 1856 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1855 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1857 | 1856 |
| 1858 int arity() const { return hydrogen()->argument_count() - 1; } | 1857 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1859 | 1858 |
| 1860 const InterfaceDescriptor* descriptor_; | 1859 const CallInterfaceDescriptor* descriptor_; |
| 1861 ZoneList<LOperand*> inputs_; | 1860 ZoneList<LOperand*> inputs_; |
| 1862 | 1861 |
| 1863 // Iterator support. | 1862 // Iterator support. |
| 1864 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } | 1863 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } |
| 1865 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } | 1864 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } |
| 1866 | 1865 |
| 1867 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } | 1866 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } |
| 1868 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } | 1867 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } |
| 1869 }; | 1868 }; |
| 1870 | 1869 |
| (...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2839 | 2838 |
| 2840 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2839 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2841 }; | 2840 }; |
| 2842 | 2841 |
| 2843 #undef DECLARE_HYDROGEN_ACCESSOR | 2842 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2844 #undef DECLARE_CONCRETE_INSTRUCTION | 2843 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2845 | 2844 |
| 2846 } } // namespace v8::internal | 2845 } } // namespace v8::internal |
| 2847 | 2846 |
| 2848 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2847 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |