| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 double modulo(double x, double y); | 99 double modulo(double x, double y); |
| 100 | 100 |
| 101 // Custom implementation of math functions. | 101 // Custom implementation of math functions. |
| 102 double fast_exp(double input); | 102 double fast_exp(double input); |
| 103 double fast_sqrt(double input); | 103 double fast_sqrt(double input); |
| 104 // The custom exp implementation needs 16KB of lookup data; initialize it | 104 // The custom exp implementation needs 16KB of lookup data; initialize it |
| 105 // on demand. | 105 // on demand. |
| 106 void lazily_initialize_fast_exp(); | 106 void lazily_initialize_fast_exp(); |
| 107 | 107 |
| 108 |
| 108 // ---------------------------------------------------------------------------- | 109 // ---------------------------------------------------------------------------- |
| 109 // Fast TLS support | 110 // Fast TLS support |
| 110 | 111 |
| 111 #ifndef V8_NO_FAST_TLS | 112 #ifndef V8_NO_FAST_TLS |
| 112 | 113 |
| 113 #if defined(_MSC_VER) && V8_HOST_ARCH_IA32 | 114 #if defined(_MSC_VER) && V8_HOST_ARCH_IA32 |
| 114 | 115 |
| 115 #define V8_FAST_TLS_SUPPORTED 1 | 116 #define V8_FAST_TLS_SUPPORTED 1 |
| 116 | 117 |
| 117 INLINE(intptr_t InternalGetExistingThreadLocal(intptr_t index)); | 118 INLINE(intptr_t InternalGetExistingThreadLocal(intptr_t index)); |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 char name_[kMaxThreadNameLength]; | 618 char name_[kMaxThreadNameLength]; |
| 618 int stack_size_; | 619 int stack_size_; |
| 619 Semaphore* start_semaphore_; | 620 Semaphore* start_semaphore_; |
| 620 | 621 |
| 621 DISALLOW_COPY_AND_ASSIGN(Thread); | 622 DISALLOW_COPY_AND_ASSIGN(Thread); |
| 622 }; | 623 }; |
| 623 | 624 |
| 624 } } // namespace v8::internal | 625 } } // namespace v8::internal |
| 625 | 626 |
| 626 #endif // V8_PLATFORM_H_ | 627 #endif // V8_PLATFORM_H_ |
| OLD | NEW |