Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: src/mips/lithium-mips.h

Issue 400743002: MIPS: StubCallInterfaceDescriptor and CallInterfaceDescriptor are unified under a base class Interf… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) 1804 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
1805 1805
1806 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1806 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1807 1807
1808 int arity() const { return hydrogen()->argument_count() - 1; } 1808 int arity() const { return hydrogen()->argument_count() - 1; }
1809 }; 1809 };
1810 1810
1811 1811
1812 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { 1812 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> {
1813 public: 1813 public:
1814 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, 1814 LCallWithDescriptor(const InterfaceDescriptor* descriptor,
1815 const ZoneList<LOperand*>& operands, 1815 const ZoneList<LOperand*>& operands,
1816 Zone* zone) 1816 Zone* zone)
1817 : descriptor_(descriptor), 1817 : descriptor_(descriptor),
1818 inputs_(descriptor->environment_length() + 1, zone) { 1818 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) {
1819 ASSERT(descriptor->environment_length() + 1 == operands.length()); 1819 ASSERT(descriptor->GetRegisterParameterCount() + 1 == operands.length());
1820 inputs_.AddAll(operands, zone); 1820 inputs_.AddAll(operands, zone);
1821 } 1821 }
1822 1822
1823 LOperand* target() const { return inputs_[0]; } 1823 LOperand* target() const { return inputs_[0]; }
1824 1824
1825 const CallInterfaceDescriptor* descriptor() { return descriptor_; } 1825 const InterfaceDescriptor* descriptor() { return descriptor_; }
1826 1826
1827 private: 1827 private:
1828 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") 1828 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor")
1829 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) 1829 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
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 const CallInterfaceDescriptor* descriptor_; 1835 const InterfaceDescriptor* descriptor_;
1836 ZoneList<LOperand*> inputs_; 1836 ZoneList<LOperand*> inputs_;
1837 1837
1838 // Iterator support. 1838 // Iterator support.
1839 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } 1839 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); }
1840 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } 1840 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; }
1841 1841
1842 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } 1842 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; }
1843 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } 1843 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; }
1844 }; 1844 };
1845 1845
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 2828
2829 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2829 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2830 }; 2830 };
2831 2831
2832 #undef DECLARE_HYDROGEN_ACCESSOR 2832 #undef DECLARE_HYDROGEN_ACCESSOR
2833 #undef DECLARE_CONCRETE_INSTRUCTION 2833 #undef DECLARE_CONCRETE_INSTRUCTION
2834 2834
2835 } } // namespace v8::internal 2835 } } // namespace v8::internal
2836 2836
2837 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2837 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698