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

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

Issue 19562003: Add support for IncrementCounter in Hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add ExternalMemory portion 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
« src/ia32/lithium-ia32.h ('K') | « src/x64/lithium-x64.h ('k') | no next file » | 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 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 1990
1991 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { 1991 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) {
1992 Representation r = instr->representation(); 1992 Representation r = instr->representation();
1993 if (r.IsSmi()) { 1993 if (r.IsSmi()) {
1994 return DefineAsRegister(new(zone()) LConstantS); 1994 return DefineAsRegister(new(zone()) LConstantS);
1995 } else if (r.IsInteger32()) { 1995 } else if (r.IsInteger32()) {
1996 return DefineAsRegister(new(zone()) LConstantI); 1996 return DefineAsRegister(new(zone()) LConstantI);
1997 } else if (r.IsDouble()) { 1997 } else if (r.IsDouble()) {
1998 LOperand* temp = TempRegister(); 1998 LOperand* temp = TempRegister();
1999 return DefineAsRegister(new(zone()) LConstantD(temp)); 1999 return DefineAsRegister(new(zone()) LConstantD(temp));
2000 } else if (r.IsExternal()) {
2001 return DefineAsRegister(new(zone()) LConstantE);
2000 } else if (r.IsTagged()) { 2002 } else if (r.IsTagged()) {
2001 return DefineAsRegister(new(zone()) LConstantT); 2003 return DefineAsRegister(new(zone()) LConstantT);
2002 } else { 2004 } else {
2003 UNREACHABLE(); 2005 UNREACHABLE();
2004 return NULL; 2006 return NULL;
2005 } 2007 }
2006 } 2008 }
2007 2009
2008 2010
2009 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { 2011 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2575 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2577 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2576 LOperand* object = UseRegister(instr->object()); 2578 LOperand* object = UseRegister(instr->object());
2577 LOperand* index = UseTempRegister(instr->index()); 2579 LOperand* index = UseTempRegister(instr->index());
2578 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2580 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2579 } 2581 }
2580 2582
2581 2583
2582 } } // namespace v8::internal 2584 } } // namespace v8::internal
2583 2585
2584 #endif // V8_TARGET_ARCH_X64 2586 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/lithium-ia32.h ('K') | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698