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

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

Issue 99763003: MIPS: Fix HInnerAllocatedObject to use an HValue for the offset. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/lithium-codegen-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 // 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 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 LOperand* function() { return inputs_[0]; } 1771 LOperand* function() { return inputs_[0]; }
1772 LOperand* code_object() { return temps_[0]; } 1772 LOperand* code_object() { return temps_[0]; }
1773 1773
1774 virtual void PrintDataTo(StringStream* stream); 1774 virtual void PrintDataTo(StringStream* stream);
1775 1775
1776 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") 1776 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry")
1777 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) 1777 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry)
1778 }; 1778 };
1779 1779
1780 1780
1781 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 1, 0> { 1781 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 2, 0> {
1782 public: 1782 public:
1783 explicit LInnerAllocatedObject(LOperand* base_object) { 1783 LInnerAllocatedObject(LOperand* base_object, LOperand* offset) {
1784 inputs_[0] = base_object; 1784 inputs_[0] = base_object;
1785 inputs_[1] = offset;
1785 } 1786 }
1786 1787
1787 LOperand* base_object() { return inputs_[0]; } 1788 LOperand* base_object() const { return inputs_[0]; }
1788 int offset() { return hydrogen()->offset(); } 1789 LOperand* offset() const { return inputs_[1]; }
1789 1790
1790 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1791 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1791 1792
1792 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "sub-allocated-object") 1793 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "inner-allocated-object")
1793 DECLARE_HYDROGEN_ACCESSOR(InnerAllocatedObject)
1794 }; 1794 };
1795 1795
1796 1796
1797 class LThisFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> { 1797 class LThisFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> {
1798 public: 1798 public:
1799 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") 1799 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
1800 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) 1800 DECLARE_HYDROGEN_ACCESSOR(ThisFunction)
1801 }; 1801 };
1802 1802
1803 1803
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
2888 2888
2889 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2889 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2890 }; 2890 };
2891 2891
2892 #undef DECLARE_HYDROGEN_ACCESSOR 2892 #undef DECLARE_HYDROGEN_ACCESSOR
2893 #undef DECLARE_CONCRETE_INSTRUCTION 2893 #undef DECLARE_CONCRETE_INSTRUCTION
2894 2894
2895 } } // namespace v8::internal 2895 } } // namespace v8::internal
2896 2896
2897 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2897 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698