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

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

Issue 1212613003: PPC: VectorICs: Lithium support for vector-based stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/ppc/lithium-ppc.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2268 LOperand* context = UseFixed(instr->context(), cp); 2268 LOperand* context = UseFixed(instr->context(), cp);
2269 LOperand* obj = 2269 LOperand* obj =
2270 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2270 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2271 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); 2271 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister());
2272 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2272 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2273 2273
2274 DCHECK(instr->object()->representation().IsTagged()); 2274 DCHECK(instr->object()->representation().IsTagged());
2275 DCHECK(instr->key()->representation().IsTagged()); 2275 DCHECK(instr->key()->representation().IsTagged());
2276 DCHECK(instr->value()->representation().IsTagged()); 2276 DCHECK(instr->value()->representation().IsTagged());
2277 2277
2278 return MarkAsCall(new (zone()) LStoreKeyedGeneric(context, obj, key, val), 2278 LOperand* slot = NULL;
2279 instr); 2279 LOperand* vector = NULL;
2280 if (instr->HasVectorAndSlot()) {
2281 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2282 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2283 }
2284
2285 LStoreKeyedGeneric* result =
2286 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector);
2287 return MarkAsCall(result, instr);
2280 } 2288 }
2281 2289
2282 2290
2283 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2291 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2284 HTransitionElementsKind* instr) { 2292 HTransitionElementsKind* instr) {
2285 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2293 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
2286 LOperand* object = UseRegister(instr->object()); 2294 LOperand* object = UseRegister(instr->object());
2287 LOperand* new_map_reg = TempRegister(); 2295 LOperand* new_map_reg = TempRegister();
2288 LTransitionElementsKind* result = 2296 LTransitionElementsKind* result =
2289 new (zone()) LTransitionElementsKind(object, NULL, new_map_reg); 2297 new (zone()) LTransitionElementsKind(object, NULL, new_map_reg);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2352 2360
2353 return new (zone()) LStoreNamedField(obj, val, temp); 2361 return new (zone()) LStoreNamedField(obj, val, temp);
2354 } 2362 }
2355 2363
2356 2364
2357 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 2365 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
2358 LOperand* context = UseFixed(instr->context(), cp); 2366 LOperand* context = UseFixed(instr->context(), cp);
2359 LOperand* obj = 2367 LOperand* obj =
2360 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2368 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2361 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2369 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2370 LOperand* slot = NULL;
2371 LOperand* vector = NULL;
2372 if (instr->HasVectorAndSlot()) {
2373 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2374 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2375 }
2362 2376
2363 LInstruction* result = new (zone()) LStoreNamedGeneric(context, obj, val); 2377 LStoreNamedGeneric* result =
2378 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector);
2364 return MarkAsCall(result, instr); 2379 return MarkAsCall(result, instr);
2365 } 2380 }
2366 2381
2367 2382
2368 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2383 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2369 LOperand* context = UseFixed(instr->context(), cp); 2384 LOperand* context = UseFixed(instr->context(), cp);
2370 LOperand* left = UseFixed(instr->left(), r4); 2385 LOperand* left = UseFixed(instr->left(), r4);
2371 LOperand* right = UseFixed(instr->right(), r3); 2386 LOperand* right = UseFixed(instr->right(), r3);
2372 return MarkAsCall( 2387 return MarkAsCall(
2373 DefineFixed(new (zone()) LStringAdd(context, left, right), r3), instr); 2388 DefineFixed(new (zone()) LStringAdd(context, left, right), r3), instr);
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
2615 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2630 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2616 HAllocateBlockContext* instr) { 2631 HAllocateBlockContext* instr) {
2617 LOperand* context = UseFixed(instr->context(), cp); 2632 LOperand* context = UseFixed(instr->context(), cp);
2618 LOperand* function = UseRegisterAtStart(instr->function()); 2633 LOperand* function = UseRegisterAtStart(instr->function());
2619 LAllocateBlockContext* result = 2634 LAllocateBlockContext* result =
2620 new (zone()) LAllocateBlockContext(context, function); 2635 new (zone()) LAllocateBlockContext(context, function);
2621 return MarkAsCall(DefineFixed(result, cp), instr); 2636 return MarkAsCall(DefineFixed(result, cp), instr);
2622 } 2637 }
2623 } // namespace internal 2638 } // namespace internal
2624 } // namespace v8 2639 } // namespace v8
OLDNEW
« no previous file with comments | « src/ppc/lithium-ppc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698