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

Side by Side Diff: src/mips64/lithium-mips64.cc

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, 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 | « src/mips64/lithium-mips64.h ('k') | src/x64/lithium-codegen-x64.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 #include <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 LOperand* context = UseFixed(instr->context(), cp); 2267 LOperand* context = UseFixed(instr->context(), cp);
2268 LOperand* obj = 2268 LOperand* obj =
2269 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2269 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2270 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); 2270 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister());
2271 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2271 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2272 2272
2273 DCHECK(instr->object()->representation().IsTagged()); 2273 DCHECK(instr->object()->representation().IsTagged());
2274 DCHECK(instr->key()->representation().IsTagged()); 2274 DCHECK(instr->key()->representation().IsTagged());
2275 DCHECK(instr->value()->representation().IsTagged()); 2275 DCHECK(instr->value()->representation().IsTagged());
2276 2276
2277 return MarkAsCall( 2277 LOperand* slot = NULL;
2278 new(zone()) LStoreKeyedGeneric(context, obj, key, val), instr); 2278 LOperand* vector = NULL;
2279 if (instr->HasVectorAndSlot()) {
2280 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2281 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2282 }
2283
2284 LStoreKeyedGeneric* result =
2285 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector);
2286 return MarkAsCall(result, instr);
2279 } 2287 }
2280 2288
2281 2289
2282 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2290 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2283 HTransitionElementsKind* instr) { 2291 HTransitionElementsKind* instr) {
2284 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2292 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
2285 LOperand* object = UseRegister(instr->object()); 2293 LOperand* object = UseRegister(instr->object());
2286 LOperand* new_map_reg = TempRegister(); 2294 LOperand* new_map_reg = TempRegister();
2287 LTransitionElementsKind* result = 2295 LTransitionElementsKind* result =
2288 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg); 2296 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 2361
2354 return new(zone()) LStoreNamedField(obj, val, temp); 2362 return new(zone()) LStoreNamedField(obj, val, temp);
2355 } 2363 }
2356 2364
2357 2365
2358 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 2366 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
2359 LOperand* context = UseFixed(instr->context(), cp); 2367 LOperand* context = UseFixed(instr->context(), cp);
2360 LOperand* obj = 2368 LOperand* obj =
2361 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2369 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2362 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2370 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2371 LOperand* slot = NULL;
2372 LOperand* vector = NULL;
2373 if (instr->HasVectorAndSlot()) {
2374 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2375 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2376 }
2363 2377
2364 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); 2378 LStoreNamedGeneric* result =
2379 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector);
2365 return MarkAsCall(result, instr); 2380 return MarkAsCall(result, instr);
2366 } 2381 }
2367 2382
2368 2383
2369 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2384 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2370 LOperand* context = UseFixed(instr->context(), cp); 2385 LOperand* context = UseFixed(instr->context(), cp);
2371 LOperand* left = UseFixed(instr->left(), a1); 2386 LOperand* left = UseFixed(instr->left(), a1);
2372 LOperand* right = UseFixed(instr->right(), a0); 2387 LOperand* right = UseFixed(instr->right(), a0);
2373 return MarkAsCall( 2388 return MarkAsCall(
2374 DefineFixed(new(zone()) LStringAdd(context, left, right), v0), 2389 DefineFixed(new(zone()) LStringAdd(context, left, right), v0),
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2622 LAllocateBlockContext* result = 2637 LAllocateBlockContext* result =
2623 new(zone()) LAllocateBlockContext(context, function); 2638 new(zone()) LAllocateBlockContext(context, function);
2624 return MarkAsCall(DefineFixed(result, cp), instr); 2639 return MarkAsCall(DefineFixed(result, cp), instr);
2625 } 2640 }
2626 2641
2627 2642
2628 } // namespace internal 2643 } // namespace internal
2629 } // namespace v8 2644 } // namespace v8
2630 2645
2631 #endif // V8_TARGET_ARCH_MIPS64 2646 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/lithium-mips64.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698