| 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 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1803 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) | 1803 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) |
| 1804 | 1804 |
| 1805 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1805 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1806 | 1806 |
| 1807 int arity() const { return hydrogen()->argument_count() - 1; } | 1807 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1808 }; | 1808 }; |
| 1809 | 1809 |
| 1810 | 1810 |
| 1811 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1811 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
| 1812 public: | 1812 public: |
| 1813 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, | 1813 LCallWithDescriptor(const InterfaceDescriptor* descriptor, |
| 1814 const ZoneList<LOperand*>& operands, | 1814 const ZoneList<LOperand*>& operands, |
| 1815 Zone* zone) | 1815 Zone* zone) |
| 1816 : descriptor_(descriptor), | 1816 : descriptor_(descriptor), |
| 1817 inputs_(descriptor->environment_length() + 1, zone) { | 1817 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { |
| 1818 ASSERT(descriptor->environment_length() + 1 == operands.length()); | 1818 ASSERT(descriptor->GetRegisterParameterCount() + 1 == operands.length()); |
| 1819 inputs_.AddAll(operands, zone); | 1819 inputs_.AddAll(operands, zone); |
| 1820 } | 1820 } |
| 1821 | 1821 |
| 1822 LOperand* target() const { return inputs_[0]; } | 1822 LOperand* target() const { return inputs_[0]; } |
| 1823 | 1823 |
| 1824 const CallInterfaceDescriptor* descriptor() { return descriptor_; } | 1824 const InterfaceDescriptor* descriptor() { return descriptor_; } |
| 1825 | 1825 |
| 1826 private: | 1826 private: |
| 1827 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1827 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
| 1828 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | 1828 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
| 1829 | 1829 |
| 1830 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1830 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1831 | 1831 |
| 1832 int arity() const { return hydrogen()->argument_count() - 1; } | 1832 int arity() const { return hydrogen()->argument_count() - 1; } |
| 1833 | 1833 |
| 1834 const CallInterfaceDescriptor* descriptor_; | 1834 const InterfaceDescriptor* descriptor_; |
| 1835 ZoneList<LOperand*> inputs_; | 1835 ZoneList<LOperand*> inputs_; |
| 1836 | 1836 |
| 1837 // Iterator support. | 1837 // Iterator support. |
| 1838 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } | 1838 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } |
| 1839 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } | 1839 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } |
| 1840 | 1840 |
| 1841 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } | 1841 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } |
| 1842 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } | 1842 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } |
| 1843 }; | 1843 }; |
| 1844 | 1844 |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2812 | 2812 |
| 2813 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2813 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2814 }; | 2814 }; |
| 2815 | 2815 |
| 2816 #undef DECLARE_HYDROGEN_ACCESSOR | 2816 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2817 #undef DECLARE_CONCRETE_INSTRUCTION | 2817 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2818 | 2818 |
| 2819 } } // namespace v8::internal | 2819 } } // namespace v8::internal |
| 2820 | 2820 |
| 2821 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2821 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |