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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
(...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 } | 1633 } |
1634 | 1634 |
1635 | 1635 |
1636 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 1636 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
1637 DCHECK(instr->representation().IsDouble()); | 1637 DCHECK(instr->representation().IsDouble()); |
1638 // We call a C function for double power. It can't trigger a GC. | 1638 // We call a C function for double power. It can't trigger a GC. |
1639 // We need to use fixed result register for the call. | 1639 // We need to use fixed result register for the call. |
1640 Representation exponent_type = instr->right()->representation(); | 1640 Representation exponent_type = instr->right()->representation(); |
1641 DCHECK(instr->left()->representation().IsDouble()); | 1641 DCHECK(instr->left()->representation().IsDouble()); |
1642 LOperand* left = UseFixedDouble(instr->left(), f2); | 1642 LOperand* left = UseFixedDouble(instr->left(), f2); |
1643 LOperand* right = exponent_type.IsDouble() ? | 1643 LOperand* right = |
1644 UseFixedDouble(instr->right(), f4) : | 1644 exponent_type.IsDouble() |
1645 UseFixed(instr->right(), a2); | 1645 ? UseFixedDouble(instr->right(), f4) |
| 1646 : UseFixed(instr->right(), MathPowTaggedDescriptor::exponent()); |
1646 LPower* result = new(zone()) LPower(left, right); | 1647 LPower* result = new(zone()) LPower(left, right); |
1647 return MarkAsCall(DefineFixedDouble(result, f0), | 1648 return MarkAsCall(DefineFixedDouble(result, f0), |
1648 instr, | 1649 instr, |
1649 CAN_DEOPTIMIZE_EAGERLY); | 1650 CAN_DEOPTIMIZE_EAGERLY); |
1650 } | 1651 } |
1651 | 1652 |
1652 | 1653 |
1653 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1654 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
1654 DCHECK(instr->left()->representation().IsTagged()); | 1655 DCHECK(instr->left()->representation().IsTagged()); |
1655 DCHECK(instr->right()->representation().IsTagged()); | 1656 DCHECK(instr->right()->representation().IsTagged()); |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2590 LOperand* context = UseFixed(instr->context(), cp); | 2591 LOperand* context = UseFixed(instr->context(), cp); |
2591 LOperand* function = UseRegisterAtStart(instr->function()); | 2592 LOperand* function = UseRegisterAtStart(instr->function()); |
2592 LAllocateBlockContext* result = | 2593 LAllocateBlockContext* result = |
2593 new(zone()) LAllocateBlockContext(context, function); | 2594 new(zone()) LAllocateBlockContext(context, function); |
2594 return MarkAsCall(DefineFixed(result, cp), instr); | 2595 return MarkAsCall(DefineFixed(result, cp), instr); |
2595 } | 2596 } |
2596 | 2597 |
2597 } } // namespace v8::internal | 2598 } } // namespace v8::internal |
2598 | 2599 |
2599 #endif // V8_TARGET_ARCH_MIPS | 2600 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |