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

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

Issue 6469053: x64: implement apply with arguments in lithium backend. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. 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-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( 1133 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal(
1134 HInstanceOfKnownGlobal* instr) { 1134 HInstanceOfKnownGlobal* instr) {
1135 LInstanceOfKnownGlobal* result = 1135 LInstanceOfKnownGlobal* result =
1136 new LInstanceOfKnownGlobal(UseRegisterAtStart(instr->value())); 1136 new LInstanceOfKnownGlobal(UseRegisterAtStart(instr->value()));
1137 MarkAsSaveDoubles(result); 1137 MarkAsSaveDoubles(result);
1138 return AssignEnvironment(AssignPointerMap(DefineFixed(result, rax))); 1138 return AssignEnvironment(AssignPointerMap(DefineFixed(result, rax)));
1139 } 1139 }
1140 1140
1141 1141
1142 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1142 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1143 Abort("Unimplemented: %s", "DoApplyArguments"); 1143 LOperand* function = UseFixed(instr->function(), rdi);
1144 return NULL; 1144 LOperand* receiver = UseFixed(instr->receiver(), rax);
1145 LOperand* length = UseFixed(instr->length(), rbx);
1146 LOperand* elements = UseFixed(instr->elements(), rcx);
1147 LApplyArguments* result = new LApplyArguments(function,
1148 receiver,
1149 length,
1150 elements);
1151 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY);
1145 } 1152 }
1146 1153
1147 1154
1148 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1155 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) {
1149 ++argument_count_; 1156 ++argument_count_;
1150 LOperand* argument = UseOrConstant(instr->argument()); 1157 LOperand* argument = UseOrConstant(instr->argument());
1151 return new LPushArgument(argument); 1158 return new LPushArgument(argument);
1152 } 1159 }
1153 1160
1154 1161
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1954 1961
1955 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1962 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1956 HEnvironment* outer = current_block_->last_environment()->outer(); 1963 HEnvironment* outer = current_block_->last_environment()->outer();
1957 current_block_->UpdateEnvironment(outer); 1964 current_block_->UpdateEnvironment(outer);
1958 return NULL; 1965 return NULL;
1959 } 1966 }
1960 1967
1961 } } // namespace v8::internal 1968 } } // namespace v8::internal
1962 1969
1963 #endif // V8_TARGET_ARCH_X64 1970 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698