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

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

Issue 2096653003: [ic] Don't pass receiver and name to LoadGlobalIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@store-name-in-metavector
Patch Set: Removed name parameter. Created 4 years, 6 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 1975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 return DefineAsRegister(new (zone()) LConstantT); 1986 return DefineAsRegister(new (zone()) LConstantT);
1987 } else { 1987 } else {
1988 UNREACHABLE(); 1988 UNREACHABLE();
1989 return NULL; 1989 return NULL;
1990 } 1990 }
1991 } 1991 }
1992 1992
1993 1993
1994 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 1994 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1995 LOperand* context = UseFixed(instr->context(), cp); 1995 LOperand* context = UseFixed(instr->context(), cp);
1996 LOperand* global_object =
1997 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister());
1998 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); 1996 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
1999 LLoadGlobalGeneric* result = 1997
2000 new (zone()) LLoadGlobalGeneric(context, global_object, vector); 1998 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector);
2001 return MarkAsCall(DefineFixed(result, r3), instr); 1999 return MarkAsCall(DefineFixed(result, r3), instr);
2002 } 2000 }
2003 2001
2004 2002
2005 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 2003 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
2006 LOperand* context = UseRegisterAtStart(instr->value()); 2004 LOperand* context = UseRegisterAtStart(instr->value());
2007 LInstruction* result = 2005 LInstruction* result =
2008 DefineAsRegister(new (zone()) LLoadContextSlot(context)); 2006 DefineAsRegister(new (zone()) LLoadContextSlot(context));
2009 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { 2007 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
2010 result = AssignEnvironment(result); 2008 result = AssignEnvironment(result);
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
2474 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2472 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2475 LOperand* object = UseRegister(instr->object()); 2473 LOperand* object = UseRegister(instr->object());
2476 LOperand* index = UseTempRegister(instr->index()); 2474 LOperand* index = UseTempRegister(instr->index());
2477 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2475 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2478 LInstruction* result = DefineSameAsFirst(load); 2476 LInstruction* result = DefineSameAsFirst(load);
2479 return AssignPointerMap(result); 2477 return AssignPointerMap(result);
2480 } 2478 }
2481 2479
2482 } // namespace internal 2480 } // namespace internal
2483 } // namespace v8 2481 } // 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