| 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/x87/codegen-x87.h" | 5 #include "src/x87/codegen-x87.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 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 18 matching lines...) Expand all Loading... |
| 29 DCHECK(masm->has_frame()); | 29 DCHECK(masm->has_frame()); |
| 30 masm->set_has_frame(false); | 30 masm->set_has_frame(false); |
| 31 } | 31 } |
| 32 | 32 |
| 33 | 33 |
| 34 #define __ masm. | 34 #define __ masm. |
| 35 | 35 |
| 36 | 36 |
| 37 UnaryMathFunction CreateExpFunction() { | 37 UnaryMathFunction CreateExpFunction() { |
| 38 // No SSE2 support | 38 // No SSE2 support |
| 39 return &std::exp; | 39 return nullptr; |
| 40 } | 40 } |
| 41 | 41 |
| 42 | 42 |
| 43 UnaryMathFunction CreateSqrtFunction() { | 43 UnaryMathFunction CreateSqrtFunction() { |
| 44 size_t actual_size; | 44 size_t actual_size; |
| 45 // Allocate buffer in executable space. | 45 // Allocate buffer in executable space. |
| 46 byte* buffer = | 46 byte* buffer = |
| 47 static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true)); | 47 static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true)); |
| 48 if (buffer == NULL) return &std::sqrt; | 48 if (buffer == NULL) return &std::sqrt; |
| 49 | 49 |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 CodePatcher patcher(sequence, young_length); | 642 CodePatcher patcher(sequence, young_length); |
| 643 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); | 643 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); |
| 644 } | 644 } |
| 645 } | 645 } |
| 646 | 646 |
| 647 | 647 |
| 648 } // namespace internal | 648 } // namespace internal |
| 649 } // namespace v8 | 649 } // namespace v8 |
| 650 | 650 |
| 651 #endif // V8_TARGET_ARCH_X87 | 651 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |