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

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

Issue 2391043005: [crankshaft] Remove HLoadKeyedGeneric and use HCallWithDescriptor to call KeyedLoadIC. (Closed)
Patch Set: Rebasing Created 4 years, 2 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/ppc/lithium-ppc.h ('k') | src/crankshaft/s390/lithium-codegen-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 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 (instr->hole_mode() == CONVERT_HOLE_TO_UNDEFINED && info()->IsStub()); 2059 (instr->hole_mode() == CONVERT_HOLE_TO_UNDEFINED && info()->IsStub());
2060 } 2060 }
2061 2061
2062 if (needs_environment) { 2062 if (needs_environment) {
2063 result = AssignEnvironment(result); 2063 result = AssignEnvironment(result);
2064 } 2064 }
2065 return result; 2065 return result;
2066 } 2066 }
2067 2067
2068 2068
2069 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) {
2070 LOperand* context = UseFixed(instr->context(), cp);
2071 LOperand* object =
2072 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
2073 LOperand* key = UseFixed(instr->key(), LoadDescriptor::NameRegister());
2074 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2075
2076 LInstruction* result = DefineFixed(
2077 new (zone()) LLoadKeyedGeneric(context, object, key, vector), r3);
2078 return MarkAsCall(result, instr);
2079 }
2080
2081
2082 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { 2069 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) {
2083 if (!instr->is_fixed_typed_array()) { 2070 if (!instr->is_fixed_typed_array()) {
2084 DCHECK(instr->elements()->representation().IsTagged()); 2071 DCHECK(instr->elements()->representation().IsTagged());
2085 bool needs_write_barrier = instr->NeedsWriteBarrier(); 2072 bool needs_write_barrier = instr->NeedsWriteBarrier();
2086 LOperand* object = NULL; 2073 LOperand* object = NULL;
2087 LOperand* key = NULL; 2074 LOperand* key = NULL;
2088 LOperand* val = NULL; 2075 LOperand* val = NULL;
2089 2076
2090 if (instr->value()->representation().IsDouble()) { 2077 if (instr->value()->representation().IsDouble()) {
2091 object = UseRegisterAtStart(instr->elements()); 2078 object = UseRegisterAtStart(instr->elements());
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2388 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2402 LOperand* object = UseRegister(instr->object()); 2389 LOperand* object = UseRegister(instr->object());
2403 LOperand* index = UseTempRegister(instr->index()); 2390 LOperand* index = UseTempRegister(instr->index());
2404 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2391 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2405 LInstruction* result = DefineSameAsFirst(load); 2392 LInstruction* result = DefineSameAsFirst(load);
2406 return AssignPointerMap(result); 2393 return AssignPointerMap(result);
2407 } 2394 }
2408 2395
2409 } // namespace internal 2396 } // namespace internal
2410 } // namespace v8 2397 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.h ('k') | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698