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

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

Issue 18712002: Convert UnaryOpStub to a HydrogenCodeStub (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.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 // 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 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 return NULL; 1991 return NULL;
1992 } 1992 }
1993 1993
1994 1994
1995 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { 1995 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
1996 LOperand* value = UseRegisterAtStart(instr->value()); 1996 LOperand* value = UseRegisterAtStart(instr->value());
1997 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); 1997 return AssignEnvironment(new(zone()) LCheckNonSmi(value));
1998 } 1998 }
1999 1999
2000 2000
2001 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
2002 LOperand* value = UseRegisterAtStart(instr->value());
2003 return AssignEnvironment(new(zone()) LCheckSmi(value));
2004 }
2005
2006
2007 LInstruction* LChunkBuilder::DoIsNumberAndBranch(HIsNumberAndBranch* instr) {
2008 return new(zone())
2009 LIsNumberAndBranch(UseRegisterOrConstantAtStart(instr->value()));
2010 }
2011
2012
2001 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 2013 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
2002 LOperand* value = UseRegisterAtStart(instr->value()); 2014 LOperand* value = UseRegisterAtStart(instr->value());
2003 LInstruction* result = new(zone()) LCheckInstanceType(value); 2015 LInstruction* result = new(zone()) LCheckInstanceType(value);
2004 return AssignEnvironment(result); 2016 return AssignEnvironment(result);
2005 } 2017 }
2006 2018
2007 2019
2008 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 2020 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
2009 LUnallocated* temp1 = TempRegister(); 2021 LUnallocated* temp1 = TempRegister();
2010 LOperand* temp2 = TempRegister(); 2022 LOperand* temp2 = TempRegister();
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
2628 2640
2629 2641
2630 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2642 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2631 LOperand* object = UseRegister(instr->object()); 2643 LOperand* object = UseRegister(instr->object());
2632 LOperand* index = UseRegister(instr->index()); 2644 LOperand* index = UseRegister(instr->index());
2633 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2645 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2634 } 2646 }
2635 2647
2636 2648
2637 } } // namespace v8::internal 2649 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698