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

Side by Side Diff: src/mips/lithium-mips.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/lithium.cc ('k') | src/x64/lithium-x64.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 #include "lithium-allocator-inl.h" 7 #include "lithium-allocator-inl.h"
8 #include "mips/lithium-mips.h" 8 #include "mips/lithium-mips.h"
9 #include "mips/lithium-codegen-mips.h" 9 #include "mips/lithium-codegen-mips.h"
10 #include "hydrogen-osr.h" 10 #include "hydrogen-osr.h"
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 LOperand* length = UseFixed(instr->length(), a2); 1001 LOperand* length = UseFixed(instr->length(), a2);
1002 LOperand* elements = UseFixed(instr->elements(), a3); 1002 LOperand* elements = UseFixed(instr->elements(), a3);
1003 LApplyArguments* result = new(zone()) LApplyArguments(function, 1003 LApplyArguments* result = new(zone()) LApplyArguments(function,
1004 receiver, 1004 receiver,
1005 length, 1005 length,
1006 elements); 1006 elements);
1007 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); 1007 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY);
1008 } 1008 }
1009 1009
1010 1010
1011 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1011 LInstruction* LChunkBuilder::DoPushArguments(HPushArguments* instr) {
1012 LOperand* argument = Use(instr->argument()); 1012 int argc = instr->OperandCount();
1013 return new(zone()) LPushArgument(argument); 1013 for (int i = 0; i < argc; ++i) {
1014 LOperand* argument = Use(instr->argument(i));
1015 AddInstruction(new(zone()) LPushArgument(argument), instr);
1016 }
1017 return NULL;
1014 } 1018 }
1015 1019
1016 1020
1017 LInstruction* LChunkBuilder::DoStoreCodeEntry( 1021 LInstruction* LChunkBuilder::DoStoreCodeEntry(
1018 HStoreCodeEntry* store_code_entry) { 1022 HStoreCodeEntry* store_code_entry) {
1019 LOperand* function = UseRegister(store_code_entry->function()); 1023 LOperand* function = UseRegister(store_code_entry->function());
1020 LOperand* code_object = UseTempRegister(store_code_entry->code_object()); 1024 LOperand* code_object = UseTempRegister(store_code_entry->code_object());
1021 return new(zone()) LStoreCodeEntry(function, code_object); 1025 return new(zone()) LStoreCodeEntry(function, code_object);
1022 } 1026 }
1023 1027
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2523 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2527 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2524 LOperand* object = UseRegister(instr->object()); 2528 LOperand* object = UseRegister(instr->object());
2525 LOperand* index = UseTempRegister(instr->index()); 2529 LOperand* index = UseTempRegister(instr->index());
2526 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2530 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2527 LInstruction* result = DefineSameAsFirst(load); 2531 LInstruction* result = DefineSameAsFirst(load);
2528 return AssignPointerMap(result); 2532 return AssignPointerMap(result);
2529 } 2533 }
2530 2534
2531 2535
2532 } } // namespace v8::internal 2536 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698