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

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

Issue 143003007: Fix compilation on x64 architectures (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 1784
1785 int arity() const { return hydrogen()->argument_count() - 1; } 1785 int arity() const { return hydrogen()->argument_count() - 1; }
1786 }; 1786 };
1787 1787
1788 1788
1789 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { 1789 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> {
1790 public: 1790 public:
1791 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, 1791 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor,
1792 ZoneList<LOperand*>& operands, 1792 ZoneList<LOperand*>& operands,
1793 Zone* zone) 1793 Zone* zone)
1794 : descriptor_(descriptor), 1794 : inputs_(descriptor->environment_length() + 1, zone) {
1795 inputs_(descriptor->environment_length() + 1, zone) {
1796 ASSERT(descriptor->environment_length() + 1 == operands.length()); 1795 ASSERT(descriptor->environment_length() + 1 == operands.length());
1797 inputs_.AddAll(operands, zone); 1796 inputs_.AddAll(operands, zone);
1798 } 1797 }
1799 1798
1800 LOperand* target() const { return inputs_[0]; } 1799 LOperand* target() const { return inputs_[0]; }
1801 1800
1802 private: 1801 private:
1803 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") 1802 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor")
1804 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) 1803 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
1805 1804
1806 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1805 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1807 1806
1808 int arity() const { return hydrogen()->argument_count() - 1; } 1807 int arity() const { return hydrogen()->argument_count() - 1; }
1809 1808
1810 const CallInterfaceDescriptor* descriptor_;
1811 ZoneList<LOperand*> inputs_; 1809 ZoneList<LOperand*> inputs_;
1812 1810
1813 // Iterator support. 1811 // Iterator support.
1814 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } 1812 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); }
1815 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } 1813 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; }
1816 1814
1817 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } 1815 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; }
1818 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } 1816 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; }
1819 }; 1817 };
1820 1818
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
2751 2749
2752 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2750 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2753 }; 2751 };
2754 2752
2755 #undef DECLARE_HYDROGEN_ACCESSOR 2753 #undef DECLARE_HYDROGEN_ACCESSOR
2756 #undef DECLARE_CONCRETE_INSTRUCTION 2754 #undef DECLARE_CONCRETE_INSTRUCTION
2757 2755
2758 } } // namespace v8::int 2756 } } // namespace v8::int
2759 2757
2760 #endif // V8_X64_LITHIUM_X64_H_ 2758 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698