| 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 // This module contains the platform-specific code. This make the rest of the | 5 // This module contains the platform-specific code. This make the rest of the |
| 6 // code less dependent on operating system, compilers and runtime libraries. | 6 // code less dependent on operating system, compilers and runtime libraries. |
| 7 // This module does specifically not deal with differences between different | 7 // This module does specifically not deal with differences between different |
| 8 // processor architecture. | 8 // processor architecture. |
| 9 // The platform classes have the same definition for all platforms. The | 9 // The platform classes have the same definition for all platforms. The |
| 10 // implementation for a particular platform is put in platform_<os>.cc. | 10 // implementation for a particular platform is put in platform_<os>.cc. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 #endif | 66 #endif |
| 67 return intgr; | 67 return intgr; |
| 68 } | 68 } |
| 69 #endif // _MSC_VER < 1800 | 69 #endif // _MSC_VER < 1800 |
| 70 | 70 |
| 71 #endif // V8_LIBC_MSVCRT | 71 #endif // V8_LIBC_MSVCRT |
| 72 | 72 |
| 73 namespace v8 { | 73 namespace v8 { |
| 74 namespace internal { | 74 namespace internal { |
| 75 | 75 |
| 76 double modulo(double x, double y); | |
| 77 | |
| 78 // Custom implementation of math functions. | |
| 79 double fast_exp(double input); | |
| 80 double fast_sqrt(double input); | |
| 81 // The custom exp implementation needs 16KB of lookup data; initialize it | |
| 82 // on demand. | |
| 83 void lazily_initialize_fast_exp(); | |
| 84 | |
| 85 | |
| 86 // ---------------------------------------------------------------------------- | 76 // ---------------------------------------------------------------------------- |
| 87 // Fast TLS support | 77 // Fast TLS support |
| 88 | 78 |
| 89 #ifndef V8_NO_FAST_TLS | 79 #ifndef V8_NO_FAST_TLS |
| 90 | 80 |
| 91 #if defined(_MSC_VER) && V8_HOST_ARCH_IA32 | 81 #if defined(_MSC_VER) && V8_HOST_ARCH_IA32 |
| 92 | 82 |
| 93 #define V8_FAST_TLS_SUPPORTED 1 | 83 #define V8_FAST_TLS_SUPPORTED 1 |
| 94 | 84 |
| 95 INLINE(intptr_t InternalGetExistingThreadLocal(intptr_t index)); | 85 INLINE(intptr_t InternalGetExistingThreadLocal(intptr_t index)); |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 char name_[kMaxThreadNameLength]; | 585 char name_[kMaxThreadNameLength]; |
| 596 int stack_size_; | 586 int stack_size_; |
| 597 Semaphore* start_semaphore_; | 587 Semaphore* start_semaphore_; |
| 598 | 588 |
| 599 DISALLOW_COPY_AND_ASSIGN(Thread); | 589 DISALLOW_COPY_AND_ASSIGN(Thread); |
| 600 }; | 590 }; |
| 601 | 591 |
| 602 } } // namespace v8::internal | 592 } } // namespace v8::internal |
| 603 | 593 |
| 604 #endif // V8_PLATFORM_H_ | 594 #endif // V8_PLATFORM_H_ |
| OLD | NEW |