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

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

Issue 2147043002: Cleanup interface descriptors to reflect that vectors are part of stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rename-store-ic
Patch Set: Rebasing Created 4 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/crankshaft/mips64/lithium-mips64.cc ('k') | src/crankshaft/s390/lithium-s390.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 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 "src/crankshaft/ppc/lithium-ppc.h" 5 #include "src/crankshaft/ppc/lithium-ppc.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2154 LOperand* context = UseFixed(instr->context(), cp); 2154 LOperand* context = UseFixed(instr->context(), cp);
2155 LOperand* obj = 2155 LOperand* obj =
2156 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2156 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2157 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister()); 2157 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister());
2158 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2158 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2159 2159
2160 DCHECK(instr->object()->representation().IsTagged()); 2160 DCHECK(instr->object()->representation().IsTagged());
2161 DCHECK(instr->key()->representation().IsTagged()); 2161 DCHECK(instr->key()->representation().IsTagged());
2162 DCHECK(instr->value()->representation().IsTagged()); 2162 DCHECK(instr->value()->representation().IsTagged());
2163 2163
2164 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); 2164 LOperand* slot = FixedTemp(StoreWithVectorDescriptor::SlotRegister());
2165 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); 2165 LOperand* vector = FixedTemp(StoreWithVectorDescriptor::VectorRegister());
2166 2166
2167 LStoreKeyedGeneric* result = 2167 LStoreKeyedGeneric* result =
2168 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector); 2168 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector);
2169 return MarkAsCall(result, instr); 2169 return MarkAsCall(result, instr);
2170 } 2170 }
2171 2171
2172 2172
2173 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2173 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2174 HTransitionElementsKind* instr) { 2174 HTransitionElementsKind* instr) {
2175 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2175 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 2243
2244 return new (zone()) LStoreNamedField(obj, val, temp); 2244 return new (zone()) LStoreNamedField(obj, val, temp);
2245 } 2245 }
2246 2246
2247 2247
2248 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 2248 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
2249 LOperand* context = UseFixed(instr->context(), cp); 2249 LOperand* context = UseFixed(instr->context(), cp);
2250 LOperand* obj = 2250 LOperand* obj =
2251 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister()); 2251 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2252 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister()); 2252 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2253 LOperand* slot = FixedTemp(VectorStoreICDescriptor::SlotRegister()); 2253 LOperand* slot = FixedTemp(StoreWithVectorDescriptor::SlotRegister());
2254 LOperand* vector = FixedTemp(VectorStoreICDescriptor::VectorRegister()); 2254 LOperand* vector = FixedTemp(StoreWithVectorDescriptor::VectorRegister());
2255 LStoreNamedGeneric* result = 2255 LStoreNamedGeneric* result =
2256 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector); 2256 new (zone()) LStoreNamedGeneric(context, obj, val, slot, vector);
2257 return MarkAsCall(result, instr); 2257 return MarkAsCall(result, instr);
2258 } 2258 }
2259 2259
2260 2260
2261 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2261 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2262 LOperand* context = UseFixed(instr->context(), cp); 2262 LOperand* context = UseFixed(instr->context(), cp);
2263 LOperand* left = UseFixed(instr->left(), r4); 2263 LOperand* left = UseFixed(instr->left(), r4);
2264 LOperand* right = UseFixed(instr->right(), r3); 2264 LOperand* right = UseFixed(instr->right(), r3);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2465 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2465 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2466 LOperand* object = UseRegister(instr->object()); 2466 LOperand* object = UseRegister(instr->object());
2467 LOperand* index = UseTempRegister(instr->index()); 2467 LOperand* index = UseTempRegister(instr->index());
2468 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2468 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2469 LInstruction* result = DefineSameAsFirst(load); 2469 LInstruction* result = DefineSameAsFirst(load);
2470 return AssignPointerMap(result); 2470 return AssignPointerMap(result);
2471 } 2471 }
2472 2472
2473 } // namespace internal 2473 } // namespace internal
2474 } // namespace v8 2474 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.cc ('k') | src/crankshaft/s390/lithium-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698