| 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 __ Ret(return_address); | 683 __ Ret(return_address); |
| 684 } | 684 } |
| 685 | 685 |
| 686 void MathPowStub::Generate(MacroAssembler* masm) { | 686 void MathPowStub::Generate(MacroAssembler* masm) { |
| 687 // Stack on entry: | 687 // Stack on entry: |
| 688 // jssp[0]: Exponent (as a tagged value). | 688 // jssp[0]: Exponent (as a tagged value). |
| 689 // jssp[1]: Base (as a tagged value). | 689 // jssp[1]: Base (as a tagged value). |
| 690 // | 690 // |
| 691 // The (tagged) result will be returned in x0, as a heap number. | 691 // The (tagged) result will be returned in x0, as a heap number. |
| 692 | 692 |
| 693 Register result_tagged = x0; | |
| 694 Register exponent_tagged = MathPowTaggedDescriptor::exponent(); | 693 Register exponent_tagged = MathPowTaggedDescriptor::exponent(); |
| 695 DCHECK(exponent_tagged.is(x11)); | 694 DCHECK(exponent_tagged.is(x11)); |
| 696 Register exponent_integer = MathPowIntegerDescriptor::exponent(); | 695 Register exponent_integer = MathPowIntegerDescriptor::exponent(); |
| 697 DCHECK(exponent_integer.is(x12)); | 696 DCHECK(exponent_integer.is(x12)); |
| 698 Register saved_lr = x19; | 697 Register saved_lr = x19; |
| 699 FPRegister result_double = d0; | 698 FPRegister result_double = d0; |
| 700 FPRegister base_double = d0; | 699 FPRegister base_double = d0; |
| 701 FPRegister exponent_double = d1; | 700 FPRegister exponent_double = d1; |
| 702 FPRegister base_double_copy = d2; | 701 FPRegister base_double_copy = d2; |
| 703 FPRegister scratch1_double = d6; | 702 FPRegister scratch1_double = d6; |
| (...skipping 4893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5597 kStackUnwindSpace, NULL, spill_offset, | 5596 kStackUnwindSpace, NULL, spill_offset, |
| 5598 return_value_operand, NULL); | 5597 return_value_operand, NULL); |
| 5599 } | 5598 } |
| 5600 | 5599 |
| 5601 #undef __ | 5600 #undef __ |
| 5602 | 5601 |
| 5603 } // namespace internal | 5602 } // namespace internal |
| 5604 } // namespace v8 | 5603 } // namespace v8 |
| 5605 | 5604 |
| 5606 #endif // V8_TARGET_ARCH_ARM64 | 5605 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |