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 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1830 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | 1830 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) |
1831 | 1831 |
1832 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1832 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1833 | 1833 |
1834 int arity() const { return hydrogen()->argument_count() - 1; } | 1834 int arity() const { return hydrogen()->argument_count() - 1; } |
1835 }; | 1835 }; |
1836 | 1836 |
1837 | 1837 |
1838 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1838 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
1839 public: | 1839 public: |
1840 LCallWithDescriptor(const InterfaceDescriptor* descriptor, | 1840 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, |
1841 const ZoneList<LOperand*>& operands, | 1841 const ZoneList<LOperand*>& operands, Zone* zone) |
1842 Zone* zone) | 1842 : descriptor_(descriptor), |
1843 : descriptor_(descriptor), | 1843 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { |
1844 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { | |
1845 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); | 1844 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); |
1846 inputs_.AddAll(operands, zone); | 1845 inputs_.AddAll(operands, zone); |
1847 } | 1846 } |
1848 | 1847 |
1849 LOperand* target() const { return inputs_[0]; } | 1848 LOperand* target() const { return inputs_[0]; } |
1850 | 1849 |
1851 const InterfaceDescriptor* descriptor() { return descriptor_; } | 1850 const CallInterfaceDescriptor* descriptor() { return descriptor_; } |
1852 | 1851 |
1853 private: | 1852 private: |
1854 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1853 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
1855 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | 1854 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
1856 | 1855 |
1857 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1856 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1858 | 1857 |
1859 int arity() const { return hydrogen()->argument_count() - 1; } | 1858 int arity() const { return hydrogen()->argument_count() - 1; } |
1860 | 1859 |
1861 const InterfaceDescriptor* descriptor_; | 1860 const CallInterfaceDescriptor* descriptor_; |
1862 ZoneList<LOperand*> inputs_; | 1861 ZoneList<LOperand*> inputs_; |
1863 | 1862 |
1864 // Iterator support. | 1863 // Iterator support. |
1865 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } | 1864 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } |
1866 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } | 1865 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } |
1867 | 1866 |
1868 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } | 1867 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } |
1869 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } | 1868 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } |
1870 }; | 1869 }; |
1871 | 1870 |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2855 | 2854 |
2856 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2855 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2857 }; | 2856 }; |
2858 | 2857 |
2859 #undef DECLARE_HYDROGEN_ACCESSOR | 2858 #undef DECLARE_HYDROGEN_ACCESSOR |
2860 #undef DECLARE_CONCRETE_INSTRUCTION | 2859 #undef DECLARE_CONCRETE_INSTRUCTION |
2861 | 2860 |
2862 } } // namespace v8::internal | 2861 } } // namespace v8::internal |
2863 | 2862 |
2864 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2863 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |