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