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

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

Issue 1228113008: Crankshaft part of the 'loads and stores to global vars through property cell shortcuts' feature. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments + regression test Created 5 years, 5 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 | src/arm/lithium-arm.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 // 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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_ARM_H_
6 #define V8_ARM_LITHIUM_ARM_H_ 6 #define V8_ARM_LITHIUM_ARM_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 V(IsStringAndBranch) \ 95 V(IsStringAndBranch) \
96 V(IsSmiAndBranch) \ 96 V(IsSmiAndBranch) \
97 V(IsUndetectableAndBranch) \ 97 V(IsUndetectableAndBranch) \
98 V(Label) \ 98 V(Label) \
99 V(LazyBailout) \ 99 V(LazyBailout) \
100 V(LoadContextSlot) \ 100 V(LoadContextSlot) \
101 V(LoadRoot) \ 101 V(LoadRoot) \
102 V(LoadFieldByIndex) \ 102 V(LoadFieldByIndex) \
103 V(LoadFunctionPrototype) \ 103 V(LoadFunctionPrototype) \
104 V(LoadGlobalGeneric) \ 104 V(LoadGlobalGeneric) \
105 V(LoadGlobalViaContext) \
105 V(LoadKeyed) \ 106 V(LoadKeyed) \
106 V(LoadKeyedGeneric) \ 107 V(LoadKeyedGeneric) \
107 V(LoadNamedField) \ 108 V(LoadNamedField) \
108 V(LoadNamedGeneric) \ 109 V(LoadNamedGeneric) \
109 V(MapEnumLength) \ 110 V(MapEnumLength) \
110 V(MathAbs) \ 111 V(MathAbs) \
111 V(MathClz32) \ 112 V(MathClz32) \
112 V(MathExp) \ 113 V(MathExp) \
113 V(MathFloor) \ 114 V(MathFloor) \
114 V(MathFround) \ 115 V(MathFround) \
(...skipping 21 matching lines...) Expand all
136 V(Return) \ 137 V(Return) \
137 V(SeqStringGetChar) \ 138 V(SeqStringGetChar) \
138 V(SeqStringSetChar) \ 139 V(SeqStringSetChar) \
139 V(ShiftI) \ 140 V(ShiftI) \
140 V(SmiTag) \ 141 V(SmiTag) \
141 V(SmiUntag) \ 142 V(SmiUntag) \
142 V(StackCheck) \ 143 V(StackCheck) \
143 V(StoreCodeEntry) \ 144 V(StoreCodeEntry) \
144 V(StoreContextSlot) \ 145 V(StoreContextSlot) \
145 V(StoreFrameContext) \ 146 V(StoreFrameContext) \
147 V(StoreGlobalViaContext) \
146 V(StoreKeyed) \ 148 V(StoreKeyed) \
147 V(StoreKeyedGeneric) \ 149 V(StoreKeyedGeneric) \
148 V(StoreNamedField) \ 150 V(StoreNamedField) \
149 V(StoreNamedGeneric) \ 151 V(StoreNamedGeneric) \
150 V(StringAdd) \ 152 V(StringAdd) \
151 V(StringCharCodeAt) \ 153 V(StringCharCodeAt) \
152 V(StringCharFromCode) \ 154 V(StringCharFromCode) \
153 V(StringCompareAndBranch) \ 155 V(StringCompareAndBranch) \
154 V(SubI) \ 156 V(SubI) \
155 V(RSubI) \ 157 V(RSubI) \
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 LOperand* temp_vector() { return temps_[0]; } 1699 LOperand* temp_vector() { return temps_[0]; }
1698 1700
1699 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") 1701 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1700 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) 1702 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1701 1703
1702 Handle<Object> name() const { return hydrogen()->name(); } 1704 Handle<Object> name() const { return hydrogen()->name(); }
1703 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } 1705 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); }
1704 }; 1706 };
1705 1707
1706 1708
1709 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> {
1710 public:
1711 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; }
1712
1713 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context")
1714 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext)
1715
1716 void PrintDataTo(StringStream* stream) override;
1717
1718 LOperand* context() { return inputs_[0]; }
1719
1720 Handle<Object> name() const { return hydrogen()->name(); }
1721 int depth() const { return hydrogen()->depth(); }
1722 int slot_index() const { return hydrogen()->slot_index(); }
1723 };
1724
1725
1707 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { 1726 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> {
1708 public: 1727 public:
1709 explicit LLoadContextSlot(LOperand* context) { 1728 explicit LLoadContextSlot(LOperand* context) {
1710 inputs_[0] = context; 1729 inputs_[0] = context;
1711 } 1730 }
1712 1731
1713 LOperand* context() { return inputs_[0]; } 1732 LOperand* context() { return inputs_[0]; }
1714 1733
1715 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1734 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1716 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1735 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
2198 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 2217 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
2199 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 2218 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
2200 2219
2201 void PrintDataTo(StringStream* stream) override; 2220 void PrintDataTo(StringStream* stream) override;
2202 2221
2203 Handle<Object> name() const { return hydrogen()->name(); } 2222 Handle<Object> name() const { return hydrogen()->name(); }
2204 LanguageMode language_mode() { return hydrogen()->language_mode(); } 2223 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2205 }; 2224 };
2206 2225
2207 2226
2227 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> {
2228 public:
2229 LStoreGlobalViaContext(LOperand* context, LOperand* value) {
2230 inputs_[0] = context;
2231 inputs_[1] = value;
2232 }
2233
2234 LOperand* context() { return inputs_[0]; }
2235 LOperand* value() { return inputs_[1]; }
2236
2237 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext,
2238 "store-global-via-context")
2239 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext)
2240
2241 void PrintDataTo(StringStream* stream) override;
2242
2243 Handle<Object> name() const { return hydrogen()->name(); }
2244 int depth() { return hydrogen()->depth(); }
2245 int slot_index() { return hydrogen()->slot_index(); }
2246 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2247 };
2248
2249
2208 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { 2250 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> {
2209 public: 2251 public:
2210 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { 2252 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) {
2211 inputs_[0] = object; 2253 inputs_[0] = object;
2212 inputs_[1] = key; 2254 inputs_[1] = key;
2213 inputs_[2] = value; 2255 inputs_[2] = value;
2214 } 2256 }
2215 2257
2216 bool is_external() const { return hydrogen()->is_external(); } 2258 bool is_external() const { return hydrogen()->is_external(); }
2217 bool is_fixed_typed_array() const { 2259 bool is_fixed_typed_array() const {
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2892 2934
2893 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2935 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2894 }; 2936 };
2895 2937
2896 #undef DECLARE_HYDROGEN_ACCESSOR 2938 #undef DECLARE_HYDROGEN_ACCESSOR
2897 #undef DECLARE_CONCRETE_INSTRUCTION 2939 #undef DECLARE_CONCRETE_INSTRUCTION
2898 2940
2899 } } // namespace v8::internal 2941 } } // namespace v8::internal
2900 2942
2901 #endif // V8_ARM_LITHIUM_ARM_H_ 2943 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698