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

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: REBASE Created 7 years, 4 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/hydrogen-instructions.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 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 1988
1989 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { 1989 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) {
1990 Representation r = instr->representation(); 1990 Representation r = instr->representation();
1991 if (r.IsSmi()) { 1991 if (r.IsSmi()) {
1992 return DefineAsRegister(new(zone()) LConstantS); 1992 return DefineAsRegister(new(zone()) LConstantS);
1993 } else if (r.IsInteger32()) { 1993 } else if (r.IsInteger32()) {
1994 return DefineAsRegister(new(zone()) LConstantI); 1994 return DefineAsRegister(new(zone()) LConstantI);
1995 } else if (r.IsDouble()) { 1995 } else if (r.IsDouble()) {
1996 LOperand* temp = TempRegister(); 1996 LOperand* temp = TempRegister();
1997 return DefineAsRegister(new(zone()) LConstantD(temp)); 1997 return DefineAsRegister(new(zone()) LConstantD(temp));
1998 } else if (r.IsExternal()) {
1999 return DefineAsRegister(new(zone()) LConstantE);
1998 } else if (r.IsTagged()) { 2000 } else if (r.IsTagged()) {
1999 return DefineAsRegister(new(zone()) LConstantT); 2001 return DefineAsRegister(new(zone()) LConstantT);
2000 } else { 2002 } else {
2001 UNREACHABLE(); 2003 UNREACHABLE();
2002 return NULL; 2004 return NULL;
2003 } 2005 }
2004 } 2006 }
2005 2007
2006 2008
2007 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { 2009 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2575 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2574 LOperand* object = UseRegister(instr->object()); 2576 LOperand* object = UseRegister(instr->object());
2575 LOperand* index = UseTempRegister(instr->index()); 2577 LOperand* index = UseTempRegister(instr->index());
2576 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2578 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2577 } 2579 }
2578 2580
2579 2581
2580 } } // namespace v8::internal 2582 } } // namespace v8::internal
2581 2583
2582 #endif // V8_TARGET_ARCH_X64 2584 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/hydrogen-instructions.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