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

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

Issue 1209903003: VectorICs: Lithium support for vector-based stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix and REBASE. Created 5 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
« 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 // 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.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 2157 matching lines...) Expand 10 before | Expand all | Expand 10 after
2168 LOperand* temp() { return temps_[0]; } 2168 LOperand* temp() { return temps_[0]; }
2169 LOperand* temp_map() { return temps_[1]; } 2169 LOperand* temp_map() { return temps_[1]; }
2170 2170
2171 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") 2171 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
2172 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) 2172 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
2173 2173
2174 void PrintDataTo(StringStream* stream) override; 2174 void PrintDataTo(StringStream* stream) override;
2175 }; 2175 };
2176 2176
2177 2177
2178 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 0> { 2178 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> {
2179 public: 2179 public:
2180 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) { 2180 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value,
2181 LOperand* slot, LOperand* vector) {
2181 inputs_[0] = context; 2182 inputs_[0] = context;
2182 inputs_[1] = object; 2183 inputs_[1] = object;
2183 inputs_[2] = value; 2184 inputs_[2] = value;
2185 temps_[0] = slot;
2186 temps_[1] = vector;
2184 } 2187 }
2185 2188
2186 LOperand* context() { return inputs_[0]; } 2189 LOperand* context() { return inputs_[0]; }
2187 LOperand* object() { return inputs_[1]; } 2190 LOperand* object() { return inputs_[1]; }
2188 LOperand* value() { return inputs_[2]; } 2191 LOperand* value() { return inputs_[2]; }
2192 LOperand* temp_slot() { return temps_[0]; }
2193 LOperand* temp_vector() { return temps_[1]; }
2189 2194
2190 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") 2195 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
2191 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) 2196 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
2192 2197
2193 void PrintDataTo(StringStream* stream) override; 2198 void PrintDataTo(StringStream* stream) override;
2194 Handle<Object> name() const { return hydrogen()->name(); } 2199 Handle<Object> name() const { return hydrogen()->name(); }
2195 LanguageMode language_mode() { return hydrogen()->language_mode(); } 2200 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2196 }; 2201 };
2197 2202
2198 2203
(...skipping 21 matching lines...) Expand all
2220 2225
2221 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") 2226 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed")
2222 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) 2227 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed)
2223 2228
2224 void PrintDataTo(StringStream* stream) override; 2229 void PrintDataTo(StringStream* stream) override;
2225 uint32_t base_offset() const { return hydrogen()->base_offset(); } 2230 uint32_t base_offset() const { return hydrogen()->base_offset(); }
2226 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } 2231 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); }
2227 }; 2232 };
2228 2233
2229 2234
2230 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 0> { 2235 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> {
2231 public: 2236 public:
2232 LStoreKeyedGeneric(LOperand* context, 2237 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key,
2233 LOperand* object, 2238 LOperand* value, LOperand* slot, LOperand* vector) {
2234 LOperand* key,
2235 LOperand* value) {
2236 inputs_[0] = context; 2239 inputs_[0] = context;
2237 inputs_[1] = object; 2240 inputs_[1] = object;
2238 inputs_[2] = key; 2241 inputs_[2] = key;
2239 inputs_[3] = value; 2242 inputs_[3] = value;
2243 temps_[0] = slot;
2244 temps_[1] = vector;
2240 } 2245 }
2241 2246
2242 LOperand* context() { return inputs_[0]; } 2247 LOperand* context() { return inputs_[0]; }
2243 LOperand* object() { return inputs_[1]; } 2248 LOperand* object() { return inputs_[1]; }
2244 LOperand* key() { return inputs_[2]; } 2249 LOperand* key() { return inputs_[2]; }
2245 LOperand* value() { return inputs_[3]; } 2250 LOperand* value() { return inputs_[3]; }
2251 LOperand* temp_slot() { return temps_[0]; }
2252 LOperand* temp_vector() { return temps_[1]; }
2246 2253
2247 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") 2254 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
2248 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) 2255 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric)
2249 2256
2250 void PrintDataTo(StringStream* stream) override; 2257 void PrintDataTo(StringStream* stream) override;
2251 2258
2252 LanguageMode language_mode() { return hydrogen()->language_mode(); } 2259 LanguageMode language_mode() { return hydrogen()->language_mode(); }
2253 }; 2260 };
2254 2261
2255 2262
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
2875 2882
2876 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2883 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2877 }; 2884 };
2878 2885
2879 #undef DECLARE_HYDROGEN_ACCESSOR 2886 #undef DECLARE_HYDROGEN_ACCESSOR
2880 #undef DECLARE_CONCRETE_INSTRUCTION 2887 #undef DECLARE_CONCRETE_INSTRUCTION
2881 2888
2882 } } // namespace v8::internal 2889 } } // namespace v8::internal
2883 2890
2884 #endif // V8_IA32_LITHIUM_IA32_H_ 2891 #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