OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |