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

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

Issue 2622783002: [crankshaft] Remove dead Variable hole-checking code (Closed)
Patch Set: Update golden files Created 3 years, 11 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/bailout-reason.h ('k') | src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after
1968 return DefineAsRegister(new(zone()) LConstantT); 1968 return DefineAsRegister(new(zone()) LConstantT);
1969 } else { 1969 } else {
1970 UNREACHABLE(); 1970 UNREACHABLE();
1971 return NULL; 1971 return NULL;
1972 } 1972 }
1973 } 1973 }
1974 1974
1975 1975
1976 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1976 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1977 LOperand* context = UseRegisterAtStart(instr->value()); 1977 LOperand* context = UseRegisterAtStart(instr->value());
1978 LInstruction* result = 1978 return DefineAsRegister(new (zone()) LLoadContextSlot(context));
1979 DefineAsRegister(new(zone()) LLoadContextSlot(context));
1980 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
1981 result = AssignEnvironment(result);
1982 }
1983 return result;
1984 } 1979 }
1985 1980
1986 1981
1987 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1982 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1988 LOperand* context; 1983 LOperand* context;
1989 LOperand* value; 1984 LOperand* value;
1990 if (instr->NeedsWriteBarrier()) { 1985 if (instr->NeedsWriteBarrier()) {
1991 context = UseTempRegister(instr->context()); 1986 context = UseTempRegister(instr->context());
1992 value = UseTempRegister(instr->value()); 1987 value = UseTempRegister(instr->value());
1993 } else { 1988 } else {
1994 context = UseRegister(instr->context()); 1989 context = UseRegister(instr->context());
1995 value = UseRegister(instr->value()); 1990 value = UseRegister(instr->value());
1996 } 1991 }
1997 LInstruction* result = new(zone()) LStoreContextSlot(context, value); 1992 return new (zone()) LStoreContextSlot(context, value);
1998 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
1999 result = AssignEnvironment(result);
2000 }
2001 return result;
2002 } 1993 }
2003 1994
2004 1995
2005 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1996 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
2006 LOperand* obj = UseRegisterAtStart(instr->object()); 1997 LOperand* obj = UseRegisterAtStart(instr->object());
2007 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 1998 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2008 } 1999 }
2009 2000
2010 2001
2011 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2002 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2382 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2392 LOperand* object = UseRegister(instr->object()); 2383 LOperand* object = UseRegister(instr->object());
2393 LOperand* index = UseTempRegister(instr->index()); 2384 LOperand* index = UseTempRegister(instr->index());
2394 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2385 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2395 LInstruction* result = DefineSameAsFirst(load); 2386 LInstruction* result = DefineSameAsFirst(load);
2396 return AssignPointerMap(result); 2387 return AssignPointerMap(result);
2397 } 2388 }
2398 2389
2399 } // namespace internal 2390 } // namespace internal
2400 } // namespace v8 2391 } // namespace v8
OLDNEW
« no previous file with comments | « src/bailout-reason.h ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698