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 "arm/lithium-arm.h" | 8 #include "arm/lithium-arm.h" |
9 #include "arm/lithium-codegen-arm.h" | 9 #include "arm/lithium-codegen-arm.h" |
10 #include "hydrogen-osr.h" | 10 #include "hydrogen-osr.h" |
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 LOperand* length = UseFixed(instr->length(), r2); | 998 LOperand* length = UseFixed(instr->length(), r2); |
999 LOperand* elements = UseFixed(instr->elements(), r3); | 999 LOperand* elements = UseFixed(instr->elements(), r3); |
1000 LApplyArguments* result = new(zone()) LApplyArguments(function, | 1000 LApplyArguments* result = new(zone()) LApplyArguments(function, |
1001 receiver, | 1001 receiver, |
1002 length, | 1002 length, |
1003 elements); | 1003 elements); |
1004 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); | 1004 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); |
1005 } | 1005 } |
1006 | 1006 |
1007 | 1007 |
1008 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { | 1008 LInstruction* LChunkBuilder::DoPushArguments(HPushArguments* instr) { |
1009 LOperand* argument = Use(instr->argument()); | 1009 int argc = instr->OperandCount(); |
1010 return new(zone()) LPushArgument(argument); | 1010 for (int i = 0; i < argc; ++i) { |
| 1011 LOperand* argument = Use(instr->argument(i)); |
| 1012 AddInstruction(new(zone()) LPushArgument(argument), instr); |
| 1013 } |
| 1014 return NULL; |
1011 } | 1015 } |
1012 | 1016 |
1013 | 1017 |
1014 LInstruction* LChunkBuilder::DoStoreCodeEntry( | 1018 LInstruction* LChunkBuilder::DoStoreCodeEntry( |
1015 HStoreCodeEntry* store_code_entry) { | 1019 HStoreCodeEntry* store_code_entry) { |
1016 LOperand* function = UseRegister(store_code_entry->function()); | 1020 LOperand* function = UseRegister(store_code_entry->function()); |
1017 LOperand* code_object = UseTempRegister(store_code_entry->code_object()); | 1021 LOperand* code_object = UseTempRegister(store_code_entry->code_object()); |
1018 return new(zone()) LStoreCodeEntry(function, code_object); | 1022 return new(zone()) LStoreCodeEntry(function, code_object); |
1019 } | 1023 } |
1020 | 1024 |
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2571 | 2575 |
2572 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2576 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2573 LOperand* object = UseRegister(instr->object()); | 2577 LOperand* object = UseRegister(instr->object()); |
2574 LOperand* index = UseTempRegister(instr->index()); | 2578 LOperand* index = UseTempRegister(instr->index()); |
2575 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2579 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2576 LInstruction* result = DefineSameAsFirst(load); | 2580 LInstruction* result = DefineSameAsFirst(load); |
2577 return AssignPointerMap(result); | 2581 return AssignPointerMap(result); |
2578 } | 2582 } |
2579 | 2583 |
2580 } } // namespace v8::internal | 2584 } } // namespace v8::internal |
OLD | NEW |