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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-ia32.h ('k') | src/ic/ic.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_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 2325 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 LOperand* context = UseFixed(instr->context(), esi); 2336 LOperand* context = UseFixed(instr->context(), esi);
2337 LOperand* object = 2337 LOperand* object =
2338 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2338 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2339 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); 2339 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister());
2340 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2340 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2341 2341
2342 DCHECK(instr->object()->representation().IsTagged()); 2342 DCHECK(instr->object()->representation().IsTagged());
2343 DCHECK(instr->key()->representation().IsTagged()); 2343 DCHECK(instr->key()->representation().IsTagged());
2344 DCHECK(instr->value()->representation().IsTagged()); 2344 DCHECK(instr->value()->representation().IsTagged());
2345 2345
2346 LStoreKeyedGeneric* result = 2346 LOperand* slot = NULL;
2347 new(zone()) LStoreKeyedGeneric(context, object, key, value); 2347 LOperand* vector = NULL;
2348 if (instr->HasVectorAndSlot()) {
2349 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2350 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2351 }
2352
2353 LStoreKeyedGeneric* result = new (zone())
2354 LStoreKeyedGeneric(context, object, key, value, slot, vector);
2348 return MarkAsCall(result, instr); 2355 return MarkAsCall(result, instr);
2349 } 2356 }
2350 2357
2351 2358
2352 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2359 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2353 HTransitionElementsKind* instr) { 2360 HTransitionElementsKind* instr) {
2354 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2361 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
2355 LOperand* object = UseRegister(instr->object()); 2362 LOperand* object = UseRegister(instr->object());
2356 LOperand* new_map_reg = TempRegister(); 2363 LOperand* new_map_reg = TempRegister();
2357 LOperand* temp_reg = TempRegister(); 2364 LOperand* temp_reg = TempRegister();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 2455
2449 return new(zone()) LStoreNamedField(obj, val, temp, temp_map); 2456 return new(zone()) LStoreNamedField(obj, val, temp, temp_map);
2450 } 2457 }
2451 2458
2452 2459
2453 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 2460 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
2454 LOperand* context = UseFixed(instr->context(), esi); 2461 LOperand* context = UseFixed(instr->context(), esi);
2455 LOperand* object = 2462 LOperand* object =
2456 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2463 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2457 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2464 LOperand* value = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2465 LOperand* slot = NULL;
2466 LOperand* vector = NULL;
2467 if (instr->HasVectorAndSlot()) {
2468 slot = FixedTemp(VectorStoreICDescriptor::SlotRegister());
2469 vector = FixedTemp(VectorStoreICDescriptor::VectorRegister());
2470 }
2458 2471
2459 LStoreNamedGeneric* result = 2472 LStoreNamedGeneric* result =
2460 new(zone()) LStoreNamedGeneric(context, object, value); 2473 new (zone()) LStoreNamedGeneric(context, object, value, slot, vector);
2461 return MarkAsCall(result, instr); 2474 return MarkAsCall(result, instr);
2462 } 2475 }
2463 2476
2464 2477
2465 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2478 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2466 LOperand* context = UseFixed(instr->context(), esi); 2479 LOperand* context = UseFixed(instr->context(), esi);
2467 LOperand* left = UseFixed(instr->left(), edx); 2480 LOperand* left = UseFixed(instr->left(), edx);
2468 LOperand* right = UseFixed(instr->right(), eax); 2481 LOperand* right = UseFixed(instr->right(), eax);
2469 LStringAdd* string_add = new(zone()) LStringAdd(context, left, right); 2482 LStringAdd* string_add = new(zone()) LStringAdd(context, left, right);
2470 return MarkAsCall(DefineFixed(string_add, eax), instr); 2483 return MarkAsCall(DefineFixed(string_add, eax), instr);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2732 LAllocateBlockContext* result = 2745 LAllocateBlockContext* result =
2733 new(zone()) LAllocateBlockContext(context, function); 2746 new(zone()) LAllocateBlockContext(context, function);
2734 return MarkAsCall(DefineFixed(result, esi), instr); 2747 return MarkAsCall(DefineFixed(result, esi), instr);
2735 } 2748 }
2736 2749
2737 2750
2738 } // namespace internal 2751 } // namespace internal
2739 } // namespace v8 2752 } // namespace v8
2740 2753
2741 #endif // V8_TARGET_ARCH_IA32 2754 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698