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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 }; | 239 }; |
240 | 240 |
241 static std::vector<SharedLibraryAddress> GetSharedLibraryAddresses(); | 241 static std::vector<SharedLibraryAddress> GetSharedLibraryAddresses(); |
242 | 242 |
243 // Support for the profiler. Notifies the external profiling | 243 // Support for the profiler. Notifies the external profiling |
244 // process that a code moving garbage collection starts. Can do | 244 // process that a code moving garbage collection starts. Can do |
245 // nothing, in which case the code objects must not move (e.g., by | 245 // nothing, in which case the code objects must not move (e.g., by |
246 // using --never-compact) if accurate profiling is desired. | 246 // using --never-compact) if accurate profiling is desired. |
247 static void SignalCodeMovingGC(); | 247 static void SignalCodeMovingGC(); |
248 | 248 |
249 // Returns the double constant NAN | |
250 static double nan_value(); | |
251 | |
252 // Support runtime detection of whether the hard float option of the | 249 // Support runtime detection of whether the hard float option of the |
253 // EABI is used. | 250 // EABI is used. |
254 static bool ArmUsingHardFloat(); | 251 static bool ArmUsingHardFloat(); |
255 | 252 |
256 // Returns the activation frame alignment constraint or zero if | 253 // Returns the activation frame alignment constraint or zero if |
257 // the platform doesn't care. Guaranteed to be a power of two. | 254 // the platform doesn't care. Guaranteed to be a power of two. |
258 static int ActivationFrameAlignment(); | 255 static int ActivationFrameAlignment(); |
259 | 256 |
260 static int GetCurrentProcessId(); | 257 static int GetCurrentProcessId(); |
261 | 258 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 char name_[kMaxThreadNameLength]; | 466 char name_[kMaxThreadNameLength]; |
470 int stack_size_; | 467 int stack_size_; |
471 Semaphore* start_semaphore_; | 468 Semaphore* start_semaphore_; |
472 | 469 |
473 DISALLOW_COPY_AND_ASSIGN(Thread); | 470 DISALLOW_COPY_AND_ASSIGN(Thread); |
474 }; | 471 }; |
475 | 472 |
476 } } // namespace v8::base | 473 } } // namespace v8::base |
477 | 474 |
478 #endif // V8_BASE_PLATFORM_PLATFORM_H_ | 475 #endif // V8_BASE_PLATFORM_PLATFORM_H_ |
OLD | NEW |