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

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

Issue 296113008: Allow HPushArgument to handle more than one argument. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase, and use int instead of unsigned Created 6 years, 7 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/mips/lithium-mips.cc ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "x64/lithium-x64.h" 10 #include "x64/lithium-x64.h"
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 LOperand* length = UseFixed(instr->length(), rbx); 1016 LOperand* length = UseFixed(instr->length(), rbx);
1017 LOperand* elements = UseFixed(instr->elements(), rcx); 1017 LOperand* elements = UseFixed(instr->elements(), rcx);
1018 LApplyArguments* result = new(zone()) LApplyArguments(function, 1018 LApplyArguments* result = new(zone()) LApplyArguments(function,
1019 receiver, 1019 receiver,
1020 length, 1020 length,
1021 elements); 1021 elements);
1022 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); 1022 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY);
1023 } 1023 }
1024 1024
1025 1025
1026 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1026 LInstruction* LChunkBuilder::DoPushArguments(HPushArguments* instr) {
1027 LOperand* argument = UseOrConstant(instr->argument()); 1027 int argc = instr->OperandCount();
1028 return new(zone()) LPushArgument(argument); 1028 for (int i = 0; i < argc; ++i) {
1029 LOperand* argument = UseOrConstant(instr->argument(i));
1030 AddInstruction(new(zone()) LPushArgument(argument), instr);
1031 }
1032 return NULL;
1029 } 1033 }
1030 1034
1031 1035
1032 LInstruction* LChunkBuilder::DoStoreCodeEntry( 1036 LInstruction* LChunkBuilder::DoStoreCodeEntry(
1033 HStoreCodeEntry* store_code_entry) { 1037 HStoreCodeEntry* store_code_entry) {
1034 LOperand* function = UseRegister(store_code_entry->function()); 1038 LOperand* function = UseRegister(store_code_entry->function());
1035 LOperand* code_object = UseTempRegister(store_code_entry->code_object()); 1039 LOperand* code_object = UseTempRegister(store_code_entry->code_object());
1036 return new(zone()) LStoreCodeEntry(function, code_object); 1040 return new(zone()) LStoreCodeEntry(function, code_object);
1037 } 1041 }
1038 1042
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
2600 LOperand* index = UseTempRegister(instr->index()); 2604 LOperand* index = UseTempRegister(instr->index());
2601 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2605 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2602 LInstruction* result = DefineSameAsFirst(load); 2606 LInstruction* result = DefineSameAsFirst(load);
2603 return AssignPointerMap(result); 2607 return AssignPointerMap(result);
2604 } 2608 }
2605 2609
2606 2610
2607 } } // namespace v8::internal 2611 } } // namespace v8::internal
2608 2612
2609 #endif // V8_TARGET_ARCH_X64 2613 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698