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

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

Issue 6541069: X64 Crankshaft: Implement CallKeyed in optimizing compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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/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 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 290 }
291 291
292 292
293 void LLoadContextSlot::PrintDataTo(StringStream* stream) { 293 void LLoadContextSlot::PrintDataTo(StringStream* stream) {
294 InputAt(0)->PrintTo(stream); 294 InputAt(0)->PrintTo(stream);
295 stream->Add("[%d]", slot_index()); 295 stream->Add("[%d]", slot_index());
296 } 296 }
297 297
298 298
299 void LCallKeyed::PrintDataTo(StringStream* stream) { 299 void LCallKeyed::PrintDataTo(StringStream* stream) {
300 stream->Add("[ecx] #%d / ", arity()); 300 stream->Add("[rcx] #%d / ", arity());
301 } 301 }
302 302
303 303
304 void LCallNamed::PrintDataTo(StringStream* stream) { 304 void LCallNamed::PrintDataTo(StringStream* stream) {
305 SmartPointer<char> name_string = name()->ToCString(); 305 SmartPointer<char> name_string = name()->ToCString();
306 stream->Add("%s #%d / ", *name_string, arity()); 306 stream->Add("%s #%d / ", *name_string, arity());
307 } 307 }
308 308
309 309
310 void LCallGlobal::PrintDataTo(StringStream* stream) { 310 void LCallGlobal::PrintDataTo(StringStream* stream) {
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 return DefineSameAsFirst(result); 1209 return DefineSameAsFirst(result);
1210 default: 1210 default:
1211 UNREACHABLE(); 1211 UNREACHABLE();
1212 return NULL; 1212 return NULL;
1213 } 1213 }
1214 } 1214 }
1215 } 1215 }
1216 1216
1217 1217
1218 LInstruction* LChunkBuilder::DoCallKeyed(HCallKeyed* instr) { 1218 LInstruction* LChunkBuilder::DoCallKeyed(HCallKeyed* instr) {
1219 Abort("Unimplemented: %s", "DoCallKeyed"); 1219 ASSERT(instr->key()->representation().IsTagged());
1220 return NULL; 1220 LOperand* key = UseFixed(instr->key(), rcx);
1221 argument_count_ -= instr->argument_count();
1222 LCallKeyed* result = new LCallKeyed(key);
1223 return MarkAsCall(DefineFixed(result, rax), instr);
1221 } 1224 }
1222 1225
1223 1226
1224 LInstruction* LChunkBuilder::DoCallNamed(HCallNamed* instr) { 1227 LInstruction* LChunkBuilder::DoCallNamed(HCallNamed* instr) {
1225 argument_count_ -= instr->argument_count(); 1228 argument_count_ -= instr->argument_count();
1226 return MarkAsCall(DefineFixed(new LCallNamed, rax), instr); 1229 return MarkAsCall(DefineFixed(new LCallNamed, rax), instr);
1227 } 1230 }
1228 1231
1229 1232
1230 LInstruction* LChunkBuilder::DoCallGlobal(HCallGlobal* instr) { 1233 LInstruction* LChunkBuilder::DoCallGlobal(HCallGlobal* instr) {
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 1984
1982 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1985 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1983 HEnvironment* outer = current_block_->last_environment()->outer(); 1986 HEnvironment* outer = current_block_->last_environment()->outer();
1984 current_block_->UpdateEnvironment(outer); 1987 current_block_->UpdateEnvironment(outer);
1985 return NULL; 1988 return NULL;
1986 } 1989 }
1987 1990
1988 } } // namespace v8::internal 1991 } } // namespace v8::internal
1989 1992
1990 #endif // V8_TARGET_ARCH_X64 1993 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698