| 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 #include "src/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.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 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1684 } | 1684 } |
| 1685 | 1685 |
| 1686 | 1686 |
| 1687 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 1687 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
| 1688 DCHECK(instr->representation().IsDouble()); | 1688 DCHECK(instr->representation().IsDouble()); |
| 1689 // We call a C function for double power. It can't trigger a GC. | 1689 // We call a C function for double power. It can't trigger a GC. |
| 1690 // We need to use fixed result register for the call. | 1690 // We need to use fixed result register for the call. |
| 1691 Representation exponent_type = instr->right()->representation(); | 1691 Representation exponent_type = instr->right()->representation(); |
| 1692 DCHECK(instr->left()->representation().IsDouble()); | 1692 DCHECK(instr->left()->representation().IsDouble()); |
| 1693 LOperand* left = UseFixedDouble(instr->left(), d0); | 1693 LOperand* left = UseFixedDouble(instr->left(), d0); |
| 1694 LOperand* right = exponent_type.IsDouble() ? | 1694 LOperand* right = |
| 1695 UseFixedDouble(instr->right(), d1) : | 1695 exponent_type.IsDouble() |
| 1696 UseFixed(instr->right(), r2); | 1696 ? UseFixedDouble(instr->right(), d1) |
| 1697 : UseFixed(instr->right(), MathPowTaggedDescriptor::exponent()); |
| 1697 LPower* result = new(zone()) LPower(left, right); | 1698 LPower* result = new(zone()) LPower(left, right); |
| 1698 return MarkAsCall(DefineFixedDouble(result, d2), | 1699 return MarkAsCall(DefineFixedDouble(result, d2), |
| 1699 instr, | 1700 instr, |
| 1700 CAN_DEOPTIMIZE_EAGERLY); | 1701 CAN_DEOPTIMIZE_EAGERLY); |
| 1701 } | 1702 } |
| 1702 | 1703 |
| 1703 | 1704 |
| 1704 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1705 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
| 1705 DCHECK(instr->left()->representation().IsTagged()); | 1706 DCHECK(instr->left()->representation().IsTagged()); |
| 1706 DCHECK(instr->right()->representation().IsTagged()); | 1707 DCHECK(instr->right()->representation().IsTagged()); |
| (...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2638 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2639 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2639 HAllocateBlockContext* instr) { | 2640 HAllocateBlockContext* instr) { |
| 2640 LOperand* context = UseFixed(instr->context(), cp); | 2641 LOperand* context = UseFixed(instr->context(), cp); |
| 2641 LOperand* function = UseRegisterAtStart(instr->function()); | 2642 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2642 LAllocateBlockContext* result = | 2643 LAllocateBlockContext* result = |
| 2643 new(zone()) LAllocateBlockContext(context, function); | 2644 new(zone()) LAllocateBlockContext(context, function); |
| 2644 return MarkAsCall(DefineFixed(result, cp), instr); | 2645 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2645 } | 2646 } |
| 2646 | 2647 |
| 2647 } } // namespace v8::internal | 2648 } } // namespace v8::internal |
| OLD | NEW |