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

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

Issue 6529053: X64 Crankshaft: Start using LCallFunction, remove errors in it. (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 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 1212
1213 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { 1213 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1214 LOperand* constructor = UseFixed(instr->constructor(), rdi); 1214 LOperand* constructor = UseFixed(instr->constructor(), rdi);
1215 argument_count_ -= instr->argument_count(); 1215 argument_count_ -= instr->argument_count();
1216 LCallNew* result = new LCallNew(constructor); 1216 LCallNew* result = new LCallNew(constructor);
1217 return MarkAsCall(DefineFixed(result, rax), instr); 1217 return MarkAsCall(DefineFixed(result, rax), instr);
1218 } 1218 }
1219 1219
1220 1220
1221 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1221 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1222 Abort("Unimplemented: %s", "DoCallFunction"); 1222 argument_count_ -= instr->argument_count();
1223 return NULL; 1223 LCallFunction* result = new LCallFunction();
1224 return MarkAsCall(DefineFixed(result, rax), instr);
1224 } 1225 }
1225 1226
1226 1227
1227 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1228 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1228 argument_count_ -= instr->argument_count(); 1229 argument_count_ -= instr->argument_count();
1229 return MarkAsCall(DefineFixed(new LCallRuntime, rax), instr); 1230 return MarkAsCall(DefineFixed(new LCallRuntime, rax), instr);
1230 } 1231 }
1231 1232
1232 1233
1233 LInstruction* LChunkBuilder::DoShr(HShr* instr) { 1234 LInstruction* LChunkBuilder::DoShr(HShr* instr) {
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1912 1913
1913 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1914 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1914 HEnvironment* outer = current_block_->last_environment()->outer(); 1915 HEnvironment* outer = current_block_->last_environment()->outer();
1915 current_block_->UpdateEnvironment(outer); 1916 current_block_->UpdateEnvironment(outer);
1916 return NULL; 1917 return NULL;
1917 } 1918 }
1918 1919
1919 } } // namespace v8::internal 1920 } } // namespace v8::internal
1920 1921
1921 #endif // V8_TARGET_ARCH_X64 1922 #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