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

Side by Side Diff: src/ia32/lithium-ia32.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/arm/lithium-arm.h ('k') | src/mips/lithium-mips.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_IA32_LITHIUM_IA32_H_ 5 #ifndef V8_IA32_LITHIUM_IA32_H_
6 #define V8_IA32_LITHIUM_IA32_H_ 6 #define V8_IA32_LITHIUM_IA32_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 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 1777
1778 int count() const { return count_; } 1778 int count() const { return count_; }
1779 1779
1780 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") 1780 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop")
1781 1781
1782 private: 1782 private:
1783 int count_; 1783 int count_;
1784 }; 1784 };
1785 1785
1786 1786
1787 class LStoreCodeEntry V8_FINAL: public LTemplateInstruction<0, 1, 1> { 1787 class LStoreCodeEntry V8_FINAL: public LTemplateInstruction<0, 2, 0> {
1788 public: 1788 public:
1789 LStoreCodeEntry(LOperand* function, LOperand* code_object) { 1789 LStoreCodeEntry(LOperand* function, LOperand* code_object) {
1790 inputs_[0] = function; 1790 inputs_[0] = function;
1791 temps_[0] = code_object; 1791 inputs_[1] = code_object;
1792 } 1792 }
1793 1793
1794 LOperand* function() { return inputs_[0]; } 1794 LOperand* function() { return inputs_[0]; }
1795 LOperand* code_object() { return temps_[0]; } 1795 LOperand* code_object() { return inputs_[1]; }
1796 1796
1797 virtual void PrintDataTo(StringStream* stream); 1797 virtual void PrintDataTo(StringStream* stream);
1798 1798
1799 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") 1799 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry")
1800 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) 1800 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry)
1801 }; 1801 };
1802 1802
1803 1803
1804 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 2, 0> { 1804 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 2, 0> {
1805 public: 1805 public:
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
2863 2863
2864 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2864 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2865 }; 2865 };
2866 2866
2867 #undef DECLARE_HYDROGEN_ACCESSOR 2867 #undef DECLARE_HYDROGEN_ACCESSOR
2868 #undef DECLARE_CONCRETE_INSTRUCTION 2868 #undef DECLARE_CONCRETE_INSTRUCTION
2869 2869
2870 } } // namespace v8::internal 2870 } } // namespace v8::internal
2871 2871
2872 #endif // V8_IA32_LITHIUM_IA32_H_ 2872 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698