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

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

Issue 16026023: Avoid Unnecessary Smi Checks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address review Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 return DefineAsRegister( 1993 return DefineAsRegister(
1994 new(zone()) LInteger32ToDouble(Use(instr->value()))); 1994 new(zone()) LInteger32ToDouble(Use(instr->value())));
1995 } 1995 }
1996 } 1996 }
1997 } 1997 }
1998 UNREACHABLE(); 1998 UNREACHABLE();
1999 return NULL; 1999 return NULL;
2000 } 2000 }
2001 2001
2002 2002
2003 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { 2003 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
2004 LOperand* value = UseRegisterAtStart(instr->value()); 2004 LOperand* value = UseRegisterAtStart(instr->value());
2005 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); 2005 return AssignEnvironment(new(zone()) LCheckNonSmi(value));
2006 } 2006 }
2007 2007
2008 2008
2009 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 2009 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
2010 LOperand* value = UseRegisterAtStart(instr->value()); 2010 LOperand* value = UseRegisterAtStart(instr->value());
2011 LInstruction* result = new(zone()) LCheckInstanceType(value); 2011 LInstruction* result = new(zone()) LCheckInstanceType(value);
2012 return AssignEnvironment(result); 2012 return AssignEnvironment(result);
2013 } 2013 }
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
2636 2636
2637 2637
2638 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2638 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2639 LOperand* object = UseRegister(instr->object()); 2639 LOperand* object = UseRegister(instr->object());
2640 LOperand* index = UseRegister(instr->index()); 2640 LOperand* index = UseRegister(instr->index());
2641 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2641 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2642 } 2642 }
2643 2643
2644 2644
2645 } } // namespace v8::internal 2645 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698