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

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

Issue 2350423002: [crankshaft] Remove HStoreKeyedGeneric and use HCallWithDescriptor instead to call KeyedStoreIC. (Closed)
Patch Set: Created 4 years, 3 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.h ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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 "src/crankshaft/mips64/lithium-mips64.h" 5 #include "src/crankshaft/mips64/lithium-mips64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 if (value() == NULL) { 336 if (value() == NULL) {
337 DCHECK(hydrogen()->IsConstantHoleStore() && 337 DCHECK(hydrogen()->IsConstantHoleStore() &&
338 hydrogen()->value()->representation().IsDouble()); 338 hydrogen()->value()->representation().IsDouble());
339 stream->Add("<the hole(nan)>"); 339 stream->Add("<the hole(nan)>");
340 } else { 340 } else {
341 value()->PrintTo(stream); 341 value()->PrintTo(stream);
342 } 342 }
343 } 343 }
344 344
345 345
346 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
347 object()->PrintTo(stream);
348 stream->Add("[");
349 key()->PrintTo(stream);
350 stream->Add("] <- ");
351 value()->PrintTo(stream);
352 }
353
354
355 void LTransitionElementsKind::PrintDataTo(StringStream* stream) { 346 void LTransitionElementsKind::PrintDataTo(StringStream* stream) {
356 object()->PrintTo(stream); 347 object()->PrintTo(stream);
357 stream->Add(" %p -> %p", *original_map(), *transitioned_map()); 348 stream->Add(" %p -> %p", *original_map(), *transitioned_map());
358 } 349 }
359 350
360 351
361 int LPlatformChunk::GetNextSpillIndex(RegisterKind kind) { 352 int LPlatformChunk::GetNextSpillIndex(RegisterKind kind) {
362 // Skip a slot if for a double-width slot. 353 // Skip a slot if for a double-width slot.
363 if (kind == DOUBLE_REGISTERS) current_frame_slots_++; 354 if (kind == DOUBLE_REGISTERS) current_frame_slots_++;
364 return current_frame_slots_++; 355 return current_frame_slots_++;
(...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 IsDoubleOrFloatElementsKind(instr->elements_kind()))); 2107 IsDoubleOrFloatElementsKind(instr->elements_kind())));
2117 DCHECK(instr->elements()->representation().IsExternal()); 2108 DCHECK(instr->elements()->representation().IsExternal());
2118 LOperand* val = UseRegister(instr->value()); 2109 LOperand* val = UseRegister(instr->value());
2119 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); 2110 LOperand* key = UseRegisterOrConstantAtStart(instr->key());
2120 LOperand* backing_store = UseRegister(instr->elements()); 2111 LOperand* backing_store = UseRegister(instr->elements());
2121 LOperand* backing_store_owner = UseAny(instr->backing_store_owner()); 2112 LOperand* backing_store_owner = UseAny(instr->backing_store_owner());
2122 return new (zone()) LStoreKeyed(backing_store, key, val, backing_store_owner); 2113 return new (zone()) LStoreKeyed(backing_store, key, val, backing_store_owner);
2123 } 2114 }
2124 2115
2125 2116
2126 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) {
2127 LOperand* context = UseFixed(instr->context(), cp);
2128 LOperand* obj =
2129 UseFixed(instr->object(), StoreDescriptor::ReceiverRegister());
2130 LOperand* key = UseFixed(instr->key(), StoreDescriptor::NameRegister());
2131 LOperand* val = UseFixed(instr->value(), StoreDescriptor::ValueRegister());
2132
2133 DCHECK(instr->object()->representation().IsTagged());
2134 DCHECK(instr->key()->representation().IsTagged());
2135 DCHECK(instr->value()->representation().IsTagged());
2136
2137 LOperand* slot = FixedTemp(StoreWithVectorDescriptor::SlotRegister());
2138 LOperand* vector = FixedTemp(StoreWithVectorDescriptor::VectorRegister());
2139
2140 LStoreKeyedGeneric* result =
2141 new (zone()) LStoreKeyedGeneric(context, obj, key, val, slot, vector);
2142 return MarkAsCall(result, instr);
2143 }
2144
2145
2146 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2117 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2147 HTransitionElementsKind* instr) { 2118 HTransitionElementsKind* instr) {
2148 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2119 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
2149 LOperand* object = UseRegister(instr->object()); 2120 LOperand* object = UseRegister(instr->object());
2150 LOperand* new_map_reg = TempRegister(); 2121 LOperand* new_map_reg = TempRegister();
2151 LTransitionElementsKind* result = 2122 LTransitionElementsKind* result =
2152 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg); 2123 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg);
2153 return result; 2124 return result;
2154 } else { 2125 } else {
2155 LOperand* object = UseFixed(instr->object(), a0); 2126 LOperand* object = UseFixed(instr->object(), a0);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2428 LOperand* index = UseTempRegister(instr->index()); 2399 LOperand* index = UseTempRegister(instr->index());
2429 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2400 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2430 LInstruction* result = DefineSameAsFirst(load); 2401 LInstruction* result = DefineSameAsFirst(load);
2431 return AssignPointerMap(result); 2402 return AssignPointerMap(result);
2432 } 2403 }
2433 2404
2434 } // namespace internal 2405 } // namespace internal
2435 } // namespace v8 2406 } // namespace v8
2436 2407
2437 #endif // V8_TARGET_ARCH_MIPS64 2408 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.h ('k') | src/crankshaft/ppc/lithium-codegen-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698