OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 __ neg(scratch, scratch); | 798 __ neg(scratch, scratch); |
799 __ bind(&positive_exponent); | 799 __ bind(&positive_exponent); |
800 } | 800 } |
801 | 801 |
802 Label while_true, no_carry, loop_end; | 802 Label while_true, no_carry, loop_end; |
803 __ bind(&while_true); | 803 __ bind(&while_true); |
804 __ andi(scratch2, scratch, Operand(1)); | 804 __ andi(scratch2, scratch, Operand(1)); |
805 __ beq(&no_carry, cr0); | 805 __ beq(&no_carry, cr0); |
806 __ fmul(double_result, double_result, double_scratch); | 806 __ fmul(double_result, double_result, double_scratch); |
807 __ bind(&no_carry); | 807 __ bind(&no_carry); |
808 __ ShiftRightArithImm(scratch, scratch, 1, SetRC); | 808 __ ShiftRightImm(scratch, scratch, Operand(1), SetRC); |
809 __ beq(&loop_end, cr0); | 809 __ beq(&loop_end, cr0); |
810 __ fmul(double_scratch, double_scratch, double_scratch); | 810 __ fmul(double_scratch, double_scratch, double_scratch); |
811 __ b(&while_true); | 811 __ b(&while_true); |
812 __ bind(&loop_end); | 812 __ bind(&loop_end); |
813 | 813 |
814 __ cmpi(exponent, Operand::Zero()); | 814 __ cmpi(exponent, Operand::Zero()); |
815 __ bge(&done); | 815 __ bge(&done); |
816 | 816 |
817 __ li(scratch2, Operand(1)); | 817 __ li(scratch2, Operand(1)); |
818 __ ConvertIntToDouble(scratch2, double_scratch); | 818 __ ConvertIntToDouble(scratch2, double_scratch); |
(...skipping 4658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5477 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); | 5477 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); |
5478 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5478 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
5479 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5479 kStackUnwindSpace, NULL, return_value_operand, NULL); |
5480 } | 5480 } |
5481 | 5481 |
5482 #undef __ | 5482 #undef __ |
5483 } // namespace internal | 5483 } // namespace internal |
5484 } // namespace v8 | 5484 } // namespace v8 |
5485 | 5485 |
5486 #endif // V8_TARGET_ARCH_PPC | 5486 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |