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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 // Returns the daylight savings offset for the given time. | 136 // Returns the daylight savings offset for the given time. |
137 static double DaylightSavingsOffset(double time, TimezoneCache* cache); | 137 static double DaylightSavingsOffset(double time, TimezoneCache* cache); |
138 | 138 |
139 // Returns last OS error. | 139 // Returns last OS error. |
140 static int GetLastError(); | 140 static int GetLastError(); |
141 | 141 |
142 static FILE* FOpen(const char* path, const char* mode); | 142 static FILE* FOpen(const char* path, const char* mode); |
143 static bool Remove(const char* path); | 143 static bool Remove(const char* path); |
144 | 144 |
| 145 static char DirectorySeparator(); |
145 static bool isDirectorySeparator(const char ch); | 146 static bool isDirectorySeparator(const char ch); |
146 | 147 |
147 // Opens a temporary file, the file is auto removed on close. | 148 // Opens a temporary file, the file is auto removed on close. |
148 static FILE* OpenTemporaryFile(); | 149 static FILE* OpenTemporaryFile(); |
149 | 150 |
150 // Log file open mode is platform-dependent due to line ends issues. | 151 // Log file open mode is platform-dependent due to line ends issues. |
151 static const char* const LogFileOpenMode; | 152 static const char* const LogFileOpenMode; |
152 | 153 |
153 // Print output to console. This is mostly used for debugging output. | 154 // Print output to console. This is mostly used for debugging output. |
154 // On platforms that has standard terminal output, the output | 155 // On platforms that has standard terminal output, the output |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 int stack_size_; | 477 int stack_size_; |
477 Semaphore* start_semaphore_; | 478 Semaphore* start_semaphore_; |
478 | 479 |
479 DISALLOW_COPY_AND_ASSIGN(Thread); | 480 DISALLOW_COPY_AND_ASSIGN(Thread); |
480 }; | 481 }; |
481 | 482 |
482 } // namespace base | 483 } // namespace base |
483 } // namespace v8 | 484 } // namespace v8 |
484 | 485 |
485 #endif // V8_BASE_PLATFORM_PLATFORM_H_ | 486 #endif // V8_BASE_PLATFORM_PLATFORM_H_ |
OLD | NEW |