| 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 |  | 
| 308   // Maximum size of the virtual memory.  0 means there is no artificial | 305   // Maximum size of the virtual memory.  0 means there is no artificial | 
| 309   // limit. | 306   // limit. | 
| 310   static intptr_t MaxVirtualMemory(); | 307   static intptr_t MaxVirtualMemory(); | 
| 311 | 308 | 
| 312   // Returns the double constant NAN | 309   // Returns the double constant NAN | 
| 313   static double nan_value(); | 310   static double nan_value(); | 
| 314 | 311 | 
| 315   // Support runtime detection of whether the hard float option of the | 312   // Support runtime detection of whether the hard float option of the | 
| 316   // EABI is used. | 313   // EABI is used. | 
| 317   static bool ArmUsingHardFloat(); | 314   static bool ArmUsingHardFloat(); | 
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 592   char name_[kMaxThreadNameLength]; | 589   char name_[kMaxThreadNameLength]; | 
| 593   int stack_size_; | 590   int stack_size_; | 
| 594   Semaphore* start_semaphore_; | 591   Semaphore* start_semaphore_; | 
| 595 | 592 | 
| 596   DISALLOW_COPY_AND_ASSIGN(Thread); | 593   DISALLOW_COPY_AND_ASSIGN(Thread); | 
| 597 }; | 594 }; | 
| 598 | 595 | 
| 599 } }  // namespace v8::internal | 596 } }  // namespace v8::internal | 
| 600 | 597 | 
| 601 #endif  // V8_PLATFORM_H_ | 598 #endif  // V8_PLATFORM_H_ | 
| OLD | NEW | 
|---|