| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 <sstream> | 5 #include <sstream> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "src/arm64/lithium-codegen-arm64.h" | 9 #include "src/arm64/lithium-codegen-arm64.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 } | 1579 } |
| 1580 | 1580 |
| 1581 | 1581 |
| 1582 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( | 1582 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( |
| 1583 HTailCallThroughMegamorphicCache* instr) { | 1583 HTailCallThroughMegamorphicCache* instr) { |
| 1584 LOperand* context = UseFixed(instr->context(), cp); | 1584 LOperand* context = UseFixed(instr->context(), cp); |
| 1585 LOperand* receiver_register = | 1585 LOperand* receiver_register = |
| 1586 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); | 1586 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); |
| 1587 LOperand* name_register = | 1587 LOperand* name_register = |
| 1588 UseFixed(instr->name(), LoadDescriptor::NameRegister()); | 1588 UseFixed(instr->name(), LoadDescriptor::NameRegister()); |
| 1589 LOperand* slot = NULL; | |
| 1590 LOperand* vector = NULL; | |
| 1591 if (FLAG_vector_ics) { | |
| 1592 slot = UseFixed(instr->slot(), VectorLoadICDescriptor::SlotRegister()); | |
| 1593 vector = | |
| 1594 UseFixed(instr->vector(), VectorLoadICDescriptor::VectorRegister()); | |
| 1595 } | |
| 1596 | 1589 |
| 1597 // Not marked as call. It can't deoptimize, and it never returns. | 1590 // Not marked as call. It can't deoptimize, and it never returns. |
| 1598 return new (zone()) LTailCallThroughMegamorphicCache( | 1591 return new (zone()) LTailCallThroughMegamorphicCache( |
| 1599 context, receiver_register, name_register, slot, vector); | 1592 context, receiver_register, name_register); |
| 1600 } | 1593 } |
| 1601 | 1594 |
| 1602 | 1595 |
| 1603 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1596 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
| 1604 LOperand* context = UseFixed(instr->context(), cp); | 1597 LOperand* context = UseFixed(instr->context(), cp); |
| 1605 // The function is required (by MacroAssembler::InvokeFunction) to be in x1. | 1598 // The function is required (by MacroAssembler::InvokeFunction) to be in x1. |
| 1606 LOperand* function = UseFixed(instr->function(), x1); | 1599 LOperand* function = UseFixed(instr->function(), x1); |
| 1607 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1600 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
| 1608 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1601 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
| 1609 } | 1602 } |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2756 HAllocateBlockContext* instr) { | 2749 HAllocateBlockContext* instr) { |
| 2757 LOperand* context = UseFixed(instr->context(), cp); | 2750 LOperand* context = UseFixed(instr->context(), cp); |
| 2758 LOperand* function = UseRegisterAtStart(instr->function()); | 2751 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2759 LAllocateBlockContext* result = | 2752 LAllocateBlockContext* result = |
| 2760 new(zone()) LAllocateBlockContext(context, function); | 2753 new(zone()) LAllocateBlockContext(context, function); |
| 2761 return MarkAsCall(DefineFixed(result, cp), instr); | 2754 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2762 } | 2755 } |
| 2763 | 2756 |
| 2764 | 2757 |
| 2765 } } // namespace v8::internal | 2758 } } // namespace v8::internal |
| OLD | NEW |