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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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, 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/x64/lithium-x64.h ('k') | src/crankshaft/x87/lithium-codegen-x87.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 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/x64/lithium-x64.h" 5 #include "src/crankshaft/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 return DefineAsRegister(new(zone()) LConstantT); 1996 return DefineAsRegister(new(zone()) LConstantT);
1997 } else { 1997 } else {
1998 UNREACHABLE(); 1998 UNREACHABLE();
1999 return NULL; 1999 return NULL;
2000 } 2000 }
2001 } 2001 }
2002 2002
2003 2003
2004 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { 2004 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
2005 LOperand* context = UseFixed(instr->context(), rsi); 2005 LOperand* context = UseFixed(instr->context(), rsi);
2006 LOperand* global_object =
2007 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister());
2008 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); 2006 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2009 2007
2010 LLoadGlobalGeneric* result = 2008 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector);
2011 new(zone()) LLoadGlobalGeneric(context, global_object, vector);
2012 return MarkAsCall(DefineFixed(result, rax), instr); 2009 return MarkAsCall(DefineFixed(result, rax), instr);
2013 } 2010 }
2014 2011
2015 2012
2016 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 2013 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
2017 LOperand* context = UseRegisterAtStart(instr->value()); 2014 LOperand* context = UseRegisterAtStart(instr->value());
2018 LInstruction* result = 2015 LInstruction* result =
2019 DefineAsRegister(new(zone()) LLoadContextSlot(context)); 2016 DefineAsRegister(new(zone()) LLoadContextSlot(context));
2020 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { 2017 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
2021 result = AssignEnvironment(result); 2018 result = AssignEnvironment(result);
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
2579 LOperand* index = UseTempRegister(instr->index()); 2576 LOperand* index = UseTempRegister(instr->index());
2580 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2577 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2581 LInstruction* result = DefineSameAsFirst(load); 2578 LInstruction* result = DefineSameAsFirst(load);
2582 return AssignPointerMap(result); 2579 return AssignPointerMap(result);
2583 } 2580 }
2584 2581
2585 } // namespace internal 2582 } // namespace internal
2586 } // namespace v8 2583 } // namespace v8
2587 2584
2588 #endif // V8_TARGET_ARCH_X64 2585 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-x64.h ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698