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

Side by Side Diff: src/ia32/lithium-ia32.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/hydrogen-instructions.cc ('k') | src/lithium.cc » ('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 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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "ia32/lithium-ia32.h" 10 #include "ia32/lithium-ia32.h"
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 LOperand* length = UseFixed(instr->length(), ebx); 1053 LOperand* length = UseFixed(instr->length(), ebx);
1054 LOperand* elements = UseFixed(instr->elements(), ecx); 1054 LOperand* elements = UseFixed(instr->elements(), ecx);
1055 LApplyArguments* result = new(zone()) LApplyArguments(function, 1055 LApplyArguments* result = new(zone()) LApplyArguments(function,
1056 receiver, 1056 receiver,
1057 length, 1057 length,
1058 elements); 1058 elements);
1059 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); 1059 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY);
1060 } 1060 }
1061 1061
1062 1062
1063 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1063 LInstruction* LChunkBuilder::DoPushArguments(HPushArguments* instr) {
1064 LOperand* argument = UseAny(instr->argument()); 1064 int argc = instr->OperandCount();
1065 return new(zone()) LPushArgument(argument); 1065 for (int i = 0; i < argc; ++i) {
1066 LOperand* argument = UseAny(instr->argument(i));
1067 AddInstruction(new(zone()) LPushArgument(argument), instr);
1068 }
1069 return NULL;
1066 } 1070 }
1067 1071
1068 1072
1069 LInstruction* LChunkBuilder::DoStoreCodeEntry( 1073 LInstruction* LChunkBuilder::DoStoreCodeEntry(
1070 HStoreCodeEntry* store_code_entry) { 1074 HStoreCodeEntry* store_code_entry) {
1071 LOperand* function = UseRegister(store_code_entry->function()); 1075 LOperand* function = UseRegister(store_code_entry->function());
1072 LOperand* code_object = UseTempRegister(store_code_entry->code_object()); 1076 LOperand* code_object = UseTempRegister(store_code_entry->code_object());
1073 return new(zone()) LStoreCodeEntry(function, code_object); 1077 return new(zone()) LStoreCodeEntry(function, code_object);
1074 } 1078 }
1075 1079
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
2674 LOperand* index = UseTempRegister(instr->index()); 2678 LOperand* index = UseTempRegister(instr->index());
2675 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2679 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2676 LInstruction* result = DefineSameAsFirst(load); 2680 LInstruction* result = DefineSameAsFirst(load);
2677 return AssignPointerMap(result); 2681 return AssignPointerMap(result);
2678 } 2682 }
2679 2683
2680 2684
2681 } } // namespace v8::internal 2685 } } // namespace v8::internal
2682 2686
2683 #endif // V8_TARGET_ARCH_IA32 2687 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698