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 25 matching lines...) Expand all Loading... |
36 # endif | 36 # endif |
37 #endif | 37 #endif |
38 | 38 |
39 #if V8_OS_QNX | 39 #if V8_OS_QNX |
40 #include "src/qnx-math.h" | 40 #include "src/qnx-math.h" |
41 #endif | 41 #endif |
42 | 42 |
43 // Microsoft Visual C++ specific stuff. | 43 // Microsoft Visual C++ specific stuff. |
44 #if V8_LIBC_MSVCRT | 44 #if V8_LIBC_MSVCRT |
45 | 45 |
46 #include "src/win32-headers.h" | 46 #include "src/base/win32-headers.h" |
47 #include "src/win32-math.h" | 47 #include "src/win32-math.h" |
48 | 48 |
49 int strncasecmp(const char* s1, const char* s2, int n); | 49 int strncasecmp(const char* s1, const char* s2, int n); |
50 | 50 |
51 // Visual C++ 2013 and higher implement this function. | 51 // Visual C++ 2013 and higher implement this function. |
52 #if (_MSC_VER < 1800) | 52 #if (_MSC_VER < 1800) |
53 inline int lrint(double flt) { | 53 inline int lrint(double flt) { |
54 int intgr; | 54 int intgr; |
55 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 | 55 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 |
56 __asm { | 56 __asm { |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 char name_[kMaxThreadNameLength]; | 503 char name_[kMaxThreadNameLength]; |
504 int stack_size_; | 504 int stack_size_; |
505 Semaphore* start_semaphore_; | 505 Semaphore* start_semaphore_; |
506 | 506 |
507 DISALLOW_COPY_AND_ASSIGN(Thread); | 507 DISALLOW_COPY_AND_ASSIGN(Thread); |
508 }; | 508 }; |
509 | 509 |
510 } } // namespace v8::internal | 510 } } // namespace v8::internal |
511 | 511 |
512 #endif // V8_PLATFORM_H_ | 512 #endif // V8_PLATFORM_H_ |
OLD | NEW |