| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 XMMRegister input, | 922 XMMRegister input, |
| 923 XMMRegister result, | 923 XMMRegister result, |
| 924 XMMRegister double_scratch, | 924 XMMRegister double_scratch, |
| 925 Register temp1, | 925 Register temp1, |
| 926 Register temp2) { | 926 Register temp2) { |
| 927 DCHECK(!input.is(double_scratch)); | 927 DCHECK(!input.is(double_scratch)); |
| 928 DCHECK(!input.is(result)); | 928 DCHECK(!input.is(result)); |
| 929 DCHECK(!result.is(double_scratch)); | 929 DCHECK(!result.is(double_scratch)); |
| 930 DCHECK(!temp1.is(temp2)); | 930 DCHECK(!temp1.is(temp2)); |
| 931 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); | 931 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); |
| 932 DCHECK(!masm->serializer_enabled()); // External references not serializable. |
| 932 | 933 |
| 933 Label done; | 934 Label done; |
| 934 | 935 |
| 935 __ movsd(double_scratch, ExpConstant(0)); | 936 __ movsd(double_scratch, ExpConstant(0)); |
| 936 __ xorpd(result, result); | 937 __ xorpd(result, result); |
| 937 __ ucomisd(double_scratch, input); | 938 __ ucomisd(double_scratch, input); |
| 938 __ j(above_equal, &done); | 939 __ j(above_equal, &done); |
| 939 __ ucomisd(input, ExpConstant(1)); | 940 __ ucomisd(input, ExpConstant(1)); |
| 940 __ movsd(result, ExpConstant(2)); | 941 __ movsd(result, ExpConstant(2)); |
| 941 __ j(above_equal, &done); | 942 __ j(above_equal, &done); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 Code* stub = GetCodeAgeStub(isolate, age, parity); | 1024 Code* stub = GetCodeAgeStub(isolate, age, parity); |
| 1024 CodePatcher patcher(sequence, young_length); | 1025 CodePatcher patcher(sequence, young_length); |
| 1025 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); | 1026 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); |
| 1026 } | 1027 } |
| 1027 } | 1028 } |
| 1028 | 1029 |
| 1029 | 1030 |
| 1030 } } // namespace v8::internal | 1031 } } // namespace v8::internal |
| 1031 | 1032 |
| 1032 #endif // V8_TARGET_ARCH_IA32 | 1033 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |