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

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

Issue 6852015: Support string add in crankshaft: (Closed)
Patch Set: 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
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 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 1995 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
1996 LOperand* context = UseFixed(instr->context(), esi); 1996 LOperand* context = UseFixed(instr->context(), esi);
1997 LOperand* object = UseFixed(instr->object(), edx); 1997 LOperand* object = UseFixed(instr->object(), edx);
1998 LOperand* value = UseFixed(instr->value(), eax); 1998 LOperand* value = UseFixed(instr->value(), eax);
1999 1999
2000 LStoreNamedGeneric* result = new LStoreNamedGeneric(context, object, value); 2000 LStoreNamedGeneric* result = new LStoreNamedGeneric(context, object, value);
2001 return MarkAsCall(result, instr); 2001 return MarkAsCall(result, instr);
2002 } 2002 }
2003 2003
2004 2004
2005 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2006 LOperand* left = UseOrConstant(instr->left());
fschneider 2011/04/14 10:26:47 This should be UseOrConstantAtStart. Otherwise we
Vitaly Repeshko 2011/04/14 21:07:18 Done.
2007 LOperand* right = UseOrConstant(instr->right());
2008 return MarkAsCall(DefineFixed(new LStringAdd(left, right), eax), instr);
2009 }
2010
2011
2005 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 2012 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
2006 LOperand* string = UseRegister(instr->string()); 2013 LOperand* string = UseRegister(instr->string());
2007 LOperand* index = UseRegisterOrConstant(instr->index()); 2014 LOperand* index = UseRegisterOrConstant(instr->index());
2008 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); 2015 LStringCharCodeAt* result = new LStringCharCodeAt(string, index);
2009 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); 2016 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
2010 } 2017 }
2011 2018
2012 2019
2013 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { 2020 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
2014 LOperand* char_code = UseRegister(instr->value()); 2021 LOperand* char_code = UseRegister(instr->value());
(...skipping 157 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

Powered by Google App Engine
This is Rietveld 408576698