| 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 11 matching lines...) Expand all Loading... |
| 22 #define V8_BASE_PLATFORM_PLATFORM_H_ | 22 #define V8_BASE_PLATFORM_PLATFORM_H_ |
| 23 | 23 |
| 24 #include <stdarg.h> | 24 #include <stdarg.h> |
| 25 #include <string> | 25 #include <string> |
| 26 #include <vector> | 26 #include <vector> |
| 27 | 27 |
| 28 #include "src/base/build_config.h" | 28 #include "src/base/build_config.h" |
| 29 #include "src/base/platform/mutex.h" | 29 #include "src/base/platform/mutex.h" |
| 30 #include "src/base/platform/semaphore.h" | 30 #include "src/base/platform/semaphore.h" |
| 31 | 31 |
| 32 #ifdef __sun | |
| 33 # ifndef signbit | |
| 34 namespace std { | |
| 35 int signbit(double x); | |
| 36 } | |
| 37 # endif | |
| 38 #endif | |
| 39 | |
| 40 #if V8_OS_QNX | 32 #if V8_OS_QNX |
| 41 #include "src/base/qnx-math.h" | 33 #include "src/base/qnx-math.h" |
| 42 #endif | 34 #endif |
| 43 | 35 |
| 44 // Microsoft Visual C++ specific stuff. | 36 // Microsoft Visual C++ specific stuff. |
| 45 #if V8_LIBC_MSVCRT | 37 #if V8_LIBC_MSVCRT |
| 46 | 38 |
| 47 #include "src/base/win32-headers.h" | 39 #include "src/base/win32-headers.h" |
| 48 #include "src/base/win32-math.h" | 40 #include "src/base/win32-math.h" |
| 49 | 41 |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 char name_[kMaxThreadNameLength]; | 499 char name_[kMaxThreadNameLength]; |
| 508 int stack_size_; | 500 int stack_size_; |
| 509 Semaphore* start_semaphore_; | 501 Semaphore* start_semaphore_; |
| 510 | 502 |
| 511 DISALLOW_COPY_AND_ASSIGN(Thread); | 503 DISALLOW_COPY_AND_ASSIGN(Thread); |
| 512 }; | 504 }; |
| 513 | 505 |
| 514 } } // namespace v8::base | 506 } } // namespace v8::base |
| 515 | 507 |
| 516 #endif // V8_BASE_PLATFORM_PLATFORM_H_ | 508 #endif // V8_BASE_PLATFORM_PLATFORM_H_ |
| OLD | NEW |