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

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

Issue 347523002: Fix LStoreCodeEntry to treat the code_object parameter as input. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/ia32/lithium-ia32.h ('k') | src/x64/lithium-x64.h » ('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-allocator.h" 9 #include "src/lithium-allocator.h"
10 #include "src/lithium.h" 10 #include "src/lithium.h"
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 1725
1726 int count() const { return count_; } 1726 int count() const { return count_; }
1727 1727
1728 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") 1728 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop")
1729 1729
1730 private: 1730 private:
1731 int count_; 1731 int count_;
1732 }; 1732 };
1733 1733
1734 1734
1735 class LStoreCodeEntry V8_FINAL: public LTemplateInstruction<0, 1, 1> { 1735 class LStoreCodeEntry V8_FINAL: public LTemplateInstruction<0, 2, 0> {
1736 public: 1736 public:
1737 LStoreCodeEntry(LOperand* function, LOperand* code_object) { 1737 LStoreCodeEntry(LOperand* function, LOperand* code_object) {
1738 inputs_[0] = function; 1738 inputs_[0] = function;
1739 temps_[0] = code_object; 1739 inputs_[1] = code_object;
1740 } 1740 }
1741 1741
1742 LOperand* function() { return inputs_[0]; } 1742 LOperand* function() { return inputs_[0]; }
1743 LOperand* code_object() { return temps_[0]; } 1743 LOperand* code_object() { return inputs_[1]; }
1744 1744
1745 virtual void PrintDataTo(StringStream* stream); 1745 virtual void PrintDataTo(StringStream* stream);
1746 1746
1747 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") 1747 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry")
1748 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) 1748 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry)
1749 }; 1749 };
1750 1750
1751 1751
1752 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 2, 0> { 1752 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 2, 0> {
1753 public: 1753 public:
(...skipping 1074 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/ia32/lithium-ia32.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698