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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
8 #include "src/hydrogen-osr.h" | 8 #include "src/hydrogen-osr.h" |
9 #include "src/lithium-inl.h" | 9 #include "src/lithium-inl.h" |
10 | 10 |
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 | 1555 |
1556 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( | 1556 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( |
1557 HInstanceOfKnownGlobal* instr) { | 1557 HInstanceOfKnownGlobal* instr) { |
1558 LInstanceOfKnownGlobal* result = new(zone()) LInstanceOfKnownGlobal( | 1558 LInstanceOfKnownGlobal* result = new(zone()) LInstanceOfKnownGlobal( |
1559 UseFixed(instr->context(), cp), | 1559 UseFixed(instr->context(), cp), |
1560 UseFixed(instr->left(), InstanceofStub::left())); | 1560 UseFixed(instr->left(), InstanceofStub::left())); |
1561 return MarkAsCall(DefineFixed(result, x0), instr); | 1561 return MarkAsCall(DefineFixed(result, x0), instr); |
1562 } | 1562 } |
1563 | 1563 |
1564 | 1564 |
| 1565 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache( |
| 1566 HTailCallThroughMegamorphicCache* instr) { |
| 1567 LOperand* context = UseFixed(instr->context(), cp); |
| 1568 LOperand* receiver_register = |
| 1569 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister()); |
| 1570 LOperand* name_register = |
| 1571 UseFixed(instr->name(), LoadDescriptor::NameRegister()); |
| 1572 // Not marked as call. It can't deoptimize, and it never returns. |
| 1573 return new (zone()) LTailCallThroughMegamorphicCache( |
| 1574 context, receiver_register, name_register); |
| 1575 } |
| 1576 |
| 1577 |
1565 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1578 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
1566 LOperand* context = UseFixed(instr->context(), cp); | 1579 LOperand* context = UseFixed(instr->context(), cp); |
1567 // The function is required (by MacroAssembler::InvokeFunction) to be in x1. | 1580 // The function is required (by MacroAssembler::InvokeFunction) to be in x1. |
1568 LOperand* function = UseFixed(instr->function(), x1); | 1581 LOperand* function = UseFixed(instr->function(), x1); |
1569 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1582 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
1570 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1583 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
1571 } | 1584 } |
1572 | 1585 |
1573 | 1586 |
1574 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( | 1587 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( |
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2737 HAllocateBlockContext* instr) { | 2750 HAllocateBlockContext* instr) { |
2738 LOperand* context = UseFixed(instr->context(), cp); | 2751 LOperand* context = UseFixed(instr->context(), cp); |
2739 LOperand* function = UseRegisterAtStart(instr->function()); | 2752 LOperand* function = UseRegisterAtStart(instr->function()); |
2740 LAllocateBlockContext* result = | 2753 LAllocateBlockContext* result = |
2741 new(zone()) LAllocateBlockContext(context, function); | 2754 new(zone()) LAllocateBlockContext(context, function); |
2742 return MarkAsCall(DefineFixed(result, cp), instr); | 2755 return MarkAsCall(DefineFixed(result, cp), instr); |
2743 } | 2756 } |
2744 | 2757 |
2745 | 2758 |
2746 } } // namespace v8::internal | 2759 } } // namespace v8::internal |
OLD | NEW |