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