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

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

Issue 22562002: Convert FastNewClosureStub into hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Nit fixin Created 7 years, 3 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-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 V(Power) \ 154 V(Power) \
155 V(Random) \ 155 V(Random) \
156 V(PushArgument) \ 156 V(PushArgument) \
157 V(RegExpLiteral) \ 157 V(RegExpLiteral) \
158 V(Return) \ 158 V(Return) \
159 V(SeqStringSetChar) \ 159 V(SeqStringSetChar) \
160 V(ShiftI) \ 160 V(ShiftI) \
161 V(SmiTag) \ 161 V(SmiTag) \
162 V(SmiUntag) \ 162 V(SmiUntag) \
163 V(StackCheck) \ 163 V(StackCheck) \
164 V(StoreCodeEntry) \
164 V(StoreContextSlot) \ 165 V(StoreContextSlot) \
165 V(StoreGlobalCell) \ 166 V(StoreGlobalCell) \
166 V(StoreGlobalGeneric) \ 167 V(StoreGlobalGeneric) \
167 V(StoreKeyed) \ 168 V(StoreKeyed) \
168 V(StoreKeyedGeneric) \ 169 V(StoreKeyedGeneric) \
169 V(StoreNamedField) \ 170 V(StoreNamedField) \
170 V(StoreNamedGeneric) \ 171 V(StoreNamedGeneric) \
171 V(StringAdd) \ 172 V(StringAdd) \
172 V(StringCharCodeAt) \ 173 V(StringCharCodeAt) \
173 V(StringCharFromCode) \ 174 V(StringCharFromCode) \
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 1771
1771 int count() const { return count_; } 1772 int count() const { return count_; }
1772 1773
1773 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") 1774 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop")
1774 1775
1775 private: 1776 private:
1776 int count_; 1777 int count_;
1777 }; 1778 };
1778 1779
1779 1780
1780 class LInnerAllocatedObject V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1781 class LStoreCodeEntry V8_FINAL: public LTemplateInstruction<0, 1, 1> {
1782 public:
1783 LStoreCodeEntry(LOperand* function, LOperand* code_object) {
1784 inputs_[0] = function;
1785 temps_[0] = code_object;
1786 }
1787
1788 LOperand* function() { return inputs_[0]; }
1789 LOperand* code_object() { return temps_[0]; }
1790
1791 virtual void PrintDataTo(StringStream* stream);
1792
1793 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry")
1794 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry)
1795 };
1796
1797
1798 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 1, 0> {
1781 public: 1799 public:
1782 explicit LInnerAllocatedObject(LOperand* base_object) { 1800 explicit LInnerAllocatedObject(LOperand* base_object) {
1783 inputs_[0] = base_object; 1801 inputs_[0] = base_object;
1784 } 1802 }
1785 1803
1786 LOperand* base_object() { return inputs_[0]; } 1804 LOperand* base_object() { return inputs_[0]; }
1787 int offset() { return hydrogen()->offset(); } 1805 int offset() { return hydrogen()->offset(); }
1788 1806
1789 virtual void PrintDataTo(StringStream* stream); 1807 virtual void PrintDataTo(StringStream* stream);
1790 1808
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2910 2928
2911 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2929 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2912 }; 2930 };
2913 2931
2914 #undef DECLARE_HYDROGEN_ACCESSOR 2932 #undef DECLARE_HYDROGEN_ACCESSOR
2915 #undef DECLARE_CONCRETE_INSTRUCTION 2933 #undef DECLARE_CONCRETE_INSTRUCTION
2916 2934
2917 } } // namespace v8::internal 2935 } } // namespace v8::internal
2918 2936
2919 #endif // V8_IA32_LITHIUM_IA32_H_ 2937 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698