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

Side by Side Diff: src/mips/lithium-mips.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, 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/mips/lithium-mips.h ('k') | src/mips64/lithium-codegen-mips64.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_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 LOperand* context = UseFixed(instr->context(), cp); 2262 LOperand* context = UseFixed(instr->context(), cp);
2263 LOperand* obj = 2263 LOperand* obj =
2264 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2264 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2265 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); 2265 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister());
2266 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2266 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2267 2267
2268 DCHECK(instr->object()->representation().IsTagged()); 2268 DCHECK(instr->object()->representation().IsTagged());
2269 DCHECK(instr->key()->representation().IsTagged()); 2269 DCHECK(instr->key()->representation().IsTagged());
2270 DCHECK(instr->value()->representation().IsTagged()); 2270 DCHECK(instr->value()->representation().IsTagged());
2271 2271
2272 return MarkAsCall( 2272 LOperand* slot = NULL;
2273 new(zone()) LStoreKeyedGeneric(context, obj, key, val), instr); 2273 LOperand* vector = NULL;
2274 if (instr->HasVectorAndSlot()) {
2275 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2276 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2277 }
2278
2279 LStoreKeyedGeneric* result =
2280 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector);
2281 return MarkAsCall(result, instr);
2274 } 2282 }
2275 2283
2276 2284
2277 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2285 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2278 HTransitionElementsKind* instr) { 2286 HTransitionElementsKind* instr) {
2279 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2287 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
2280 LOperand* object = UseRegister(instr->object()); 2288 LOperand* object = UseRegister(instr->object());
2281 LOperand* new_map_reg = TempRegister(); 2289 LOperand* new_map_reg = TempRegister();
2282 LTransitionElementsKind* result = 2290 LTransitionElementsKind* result =
2283 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg); 2291 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 2356
2349 return new(zone()) LStoreNamedField(obj, val, temp); 2357 return new(zone()) LStoreNamedField(obj, val, temp);
2350 } 2358 }
2351 2359
2352 2360
2353 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 2361 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
2354 LOperand* context = UseFixed(instr->context(), cp); 2362 LOperand* context = UseFixed(instr->context(), cp);
2355 LOperand* obj = 2363 LOperand* obj =
2356 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2364 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2357 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2365 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2366 LOperand* slot = NULL;
2367 LOperand* vector = NULL;
2368 if (instr->HasVectorAndSlot()) {
2369 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2370 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2371 }
2358 2372
2359 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); 2373 LStoreNamedGeneric* result =
2374 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector);
2360 return MarkAsCall(result, instr); 2375 return MarkAsCall(result, instr);
2361 } 2376 }
2362 2377
2363 2378
2364 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2379 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2365 LOperand* context = UseFixed(instr->context(), cp); 2380 LOperand* context = UseFixed(instr->context(), cp);
2366 LOperand* left = UseFixed(instr->left(), a1); 2381 LOperand* left = UseFixed(instr->left(), a1);
2367 LOperand* right = UseFixed(instr->right(), a0); 2382 LOperand* right = UseFixed(instr->right(), a0);
2368 return MarkAsCall( 2383 return MarkAsCall(
2369 DefineFixed(new(zone()) LStringAdd(context, left, right), v0), 2384 DefineFixed(new(zone()) LStringAdd(context, left, right), v0),
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2617 LOperand* function = UseRegisterAtStart(instr->function()); 2632 LOperand* function = UseRegisterAtStart(instr->function());
2618 LAllocateBlockContext* result = 2633 LAllocateBlockContext* result =
2619 new(zone()) LAllocateBlockContext(context, function); 2634 new(zone()) LAllocateBlockContext(context, function);
2620 return MarkAsCall(DefineFixed(result, cp), instr); 2635 return MarkAsCall(DefineFixed(result, cp), instr);
2621 } 2636 }
2622 2637
2623 } // namespace internal 2638 } // namespace internal
2624 } // namespace v8 2639 } // namespace v8
2625 2640
2626 #endif // V8_TARGET_ARCH_MIPS 2641 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips64/lithium-codegen-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698