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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 static void SignalCodeMovingGC(); | 298 static void SignalCodeMovingGC(); |
299 | 299 |
300 // The return value indicates the CPU features we are sure of because of the | 300 // The return value indicates the CPU features we are sure of because of the |
301 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have SSE2 | 301 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have SSE2 |
302 // instructions. | 302 // instructions. |
303 // This is a little messy because the interpretation is subject to the cross | 303 // This is a little messy because the interpretation is subject to the cross |
304 // of the CPU and the OS. The bits in the answer correspond to the bit | 304 // of the CPU and the OS. The bits in the answer correspond to the bit |
305 // positions indicated by the members of the CpuFeature enum from globals.h | 305 // positions indicated by the members of the CpuFeature enum from globals.h |
306 static uint64_t CpuFeaturesImpliedByPlatform(); | 306 static uint64_t CpuFeaturesImpliedByPlatform(); |
307 | 307 |
| 308 // The total amount of physical memory available on the current system. |
| 309 static uintptr_t TotalPhysicalMemory(); |
| 310 |
308 // Maximum size of the virtual memory. 0 means there is no artificial | 311 // Maximum size of the virtual memory. 0 means there is no artificial |
309 // limit. | 312 // limit. |
310 static intptr_t MaxVirtualMemory(); | 313 static intptr_t MaxVirtualMemory(); |
311 | 314 |
312 // Returns the double constant NAN | 315 // Returns the double constant NAN |
313 static double nan_value(); | 316 static double nan_value(); |
314 | 317 |
315 // Support runtime detection of whether the hard float option of the | 318 // Support runtime detection of whether the hard float option of the |
316 // EABI is used. | 319 // EABI is used. |
317 static bool ArmUsingHardFloat(); | 320 static bool ArmUsingHardFloat(); |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 char name_[kMaxThreadNameLength]; | 595 char name_[kMaxThreadNameLength]; |
593 int stack_size_; | 596 int stack_size_; |
594 Semaphore* start_semaphore_; | 597 Semaphore* start_semaphore_; |
595 | 598 |
596 DISALLOW_COPY_AND_ASSIGN(Thread); | 599 DISALLOW_COPY_AND_ASSIGN(Thread); |
597 }; | 600 }; |
598 | 601 |
599 } } // namespace v8::internal | 602 } } // namespace v8::internal |
600 | 603 |
601 #endif // V8_PLATFORM_H_ | 604 #endif // V8_PLATFORM_H_ |
OLD | NEW |