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

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

Issue 6852015: Support string add in crankshaft: (Closed)
Patch Set: Review fixes and ports Created 9 years, 8 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/ia32/lithium-ia32.h ('k') | src/ic.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 1994 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
1995 LOperand* context = UseFixed(instr->context(), esi); 1995 LOperand* context = UseFixed(instr->context(), esi);
1996 LOperand* object = UseFixed(instr->object(), edx); 1996 LOperand* object = UseFixed(instr->object(), edx);
1997 LOperand* value = UseFixed(instr->value(), eax); 1997 LOperand* value = UseFixed(instr->value(), eax);
1998 1998
1999 LStoreNamedGeneric* result = new LStoreNamedGeneric(context, object, value); 1999 LStoreNamedGeneric* result = new LStoreNamedGeneric(context, object, value);
2000 return MarkAsCall(result, instr); 2000 return MarkAsCall(result, instr);
2001 } 2001 }
2002 2002
2003 2003
2004 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2005 LOperand* left = UseOrConstantAtStart(instr->left());
2006 LOperand* right = UseOrConstantAtStart(instr->right());
2007 return MarkAsCall(DefineFixed(new LStringAdd(left, right), eax), instr);
2008 }
2009
2010
2004 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 2011 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
2005 LOperand* string = UseRegister(instr->string()); 2012 LOperand* string = UseRegister(instr->string());
2006 LOperand* index = UseRegisterOrConstant(instr->index()); 2013 LOperand* index = UseRegisterOrConstant(instr->index());
2007 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); 2014 LStringCharCodeAt* result = new LStringCharCodeAt(string, index);
2008 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); 2015 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
2009 } 2016 }
2010 2017
2011 2018
2012 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { 2019 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
2013 LOperand* char_code = UseRegister(instr->value()); 2020 LOperand* char_code = UseRegister(instr->value());
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2179 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2173 HEnvironment* outer = current_block_->last_environment()->outer(); 2180 HEnvironment* outer = current_block_->last_environment()->outer();
2174 current_block_->UpdateEnvironment(outer); 2181 current_block_->UpdateEnvironment(outer);
2175 return NULL; 2182 return NULL;
2176 } 2183 }
2177 2184
2178 2185
2179 } } // namespace v8::internal 2186 } } // namespace v8::internal
2180 2187
2181 #endif // V8_TARGET_ARCH_IA32 2188 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698