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_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/arm/simulator-arm.h" | 9 #include "src/arm/simulator-arm.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 DCHECK(!input.is(result)); | 790 DCHECK(!input.is(result)); |
791 DCHECK(!input.is(double_scratch1)); | 791 DCHECK(!input.is(double_scratch1)); |
792 DCHECK(!input.is(double_scratch2)); | 792 DCHECK(!input.is(double_scratch2)); |
793 DCHECK(!result.is(double_scratch1)); | 793 DCHECK(!result.is(double_scratch1)); |
794 DCHECK(!result.is(double_scratch2)); | 794 DCHECK(!result.is(double_scratch2)); |
795 DCHECK(!double_scratch1.is(double_scratch2)); | 795 DCHECK(!double_scratch1.is(double_scratch2)); |
796 DCHECK(!temp1.is(temp2)); | 796 DCHECK(!temp1.is(temp2)); |
797 DCHECK(!temp1.is(temp3)); | 797 DCHECK(!temp1.is(temp3)); |
798 DCHECK(!temp2.is(temp3)); | 798 DCHECK(!temp2.is(temp3)); |
799 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); | 799 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); |
| 800 DCHECK(!masm->serializer_enabled()); // External references not serializable. |
800 | 801 |
801 Label zero, infinity, done; | 802 Label zero, infinity, done; |
802 | 803 |
803 __ mov(temp3, Operand(ExternalReference::math_exp_constants(0))); | 804 __ mov(temp3, Operand(ExternalReference::math_exp_constants(0))); |
804 | 805 |
805 __ vldr(double_scratch1, ExpConstant(0, temp3)); | 806 __ vldr(double_scratch1, ExpConstant(0, temp3)); |
806 __ VFPCompareAndSetFlags(double_scratch1, input); | 807 __ VFPCompareAndSetFlags(double_scratch1, input); |
807 __ b(ge, &zero); | 808 __ b(ge, &zero); |
808 | 809 |
809 __ vldr(double_scratch2, ExpConstant(1, temp3)); | 810 __ vldr(double_scratch2, ExpConstant(1, temp3)); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 patcher.masm()->add(r0, pc, Operand(-8)); | 928 patcher.masm()->add(r0, pc, Operand(-8)); |
928 patcher.masm()->ldr(pc, MemOperand(pc, -4)); | 929 patcher.masm()->ldr(pc, MemOperand(pc, -4)); |
929 patcher.masm()->emit_code_stub_address(stub); | 930 patcher.masm()->emit_code_stub_address(stub); |
930 } | 931 } |
931 } | 932 } |
932 | 933 |
933 | 934 |
934 } } // namespace v8::internal | 935 } } // namespace v8::internal |
935 | 936 |
936 #endif // V8_TARGET_ARCH_ARM | 937 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |