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/crankshaft/arm64/lithium-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-arm64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1560 | 1560 |
1561 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { | 1561 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { |
1562 LOperand* context = UseFixed(instr->context(), cp); | 1562 LOperand* context = UseFixed(instr->context(), cp); |
1563 // The function is required (by MacroAssembler::InvokeFunction) to be in x1. | 1563 // The function is required (by MacroAssembler::InvokeFunction) to be in x1. |
1564 LOperand* function = UseFixed(instr->function(), x1); | 1564 LOperand* function = UseFixed(instr->function(), x1); |
1565 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); | 1565 LInvokeFunction* result = new(zone()) LInvokeFunction(context, function); |
1566 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); | 1566 return MarkAsCall(DefineFixed(result, x0), instr, CANNOT_DEOPTIMIZE_EAGERLY); |
1567 } | 1567 } |
1568 | 1568 |
1569 | 1569 |
1570 LInstruction* LChunkBuilder::DoCompareMinusZeroAndBranch( | |
1571 HCompareMinusZeroAndBranch* instr) { | |
1572 LOperand* value = UseRegister(instr->value()); | |
1573 LOperand* scratch = TempRegister(); | |
1574 return new(zone()) LCompareMinusZeroAndBranch(value, scratch); | |
1575 } | |
1576 | |
1577 | |
1578 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1570 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
1579 DCHECK(instr->value()->representation().IsTagged()); | 1571 DCHECK(instr->value()->representation().IsTagged()); |
1580 LOperand* value = UseRegisterAtStart(instr->value()); | 1572 LOperand* value = UseRegisterAtStart(instr->value()); |
1581 LOperand* temp = TempRegister(); | 1573 LOperand* temp = TempRegister(); |
1582 return new(zone()) LIsStringAndBranch(value, temp); | 1574 return new(zone()) LIsStringAndBranch(value, temp); |
1583 } | 1575 } |
1584 | 1576 |
1585 | 1577 |
1586 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { | 1578 LInstruction* LChunkBuilder::DoIsSmiAndBranch(HIsSmiAndBranch* instr) { |
1587 DCHECK(instr->value()->representation().IsTagged()); | 1579 DCHECK(instr->value()->representation().IsTagged()); |
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2717 LOperand* context = UseFixed(instr->context(), cp); | 2709 LOperand* context = UseFixed(instr->context(), cp); |
2718 LOperand* function = UseRegisterAtStart(instr->function()); | 2710 LOperand* function = UseRegisterAtStart(instr->function()); |
2719 LAllocateBlockContext* result = | 2711 LAllocateBlockContext* result = |
2720 new(zone()) LAllocateBlockContext(context, function); | 2712 new(zone()) LAllocateBlockContext(context, function); |
2721 return MarkAsCall(DefineFixed(result, cp), instr); | 2713 return MarkAsCall(DefineFixed(result, cp), instr); |
2722 } | 2714 } |
2723 | 2715 |
2724 | 2716 |
2725 } // namespace internal | 2717 } // namespace internal |
2726 } // namespace v8 | 2718 } // namespace v8 |
OLD | NEW |