v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OS Class Reference

#include <platform.h>

Data Structures

class  MemoryMappedFile
 
struct  StackFrame
 

Static Public Member Functions

static void PostSetUp ()
 
static int GetUserTime (uint32_t *secs, uint32_t *usecs)
 
static double TimeCurrentMillis ()
 
static TimezoneCacheCreateTimezoneCache ()
 
static void DisposeTimezoneCache (TimezoneCache *cache)
 
static void ClearTimezoneCache (TimezoneCache *cache)
 
static const char * LocalTimezone (double time, TimezoneCache *cache)
 
static double LocalTimeOffset (TimezoneCache *cache)
 
static double DaylightSavingsOffset (double time, TimezoneCache *cache)
 
static int GetLastError ()
 
static FILE * FOpen (const char *path, const char *mode)
 
static bool Remove (const char *path)
 
static FILE * OpenTemporaryFile ()
 
static void Print (const char *format,...)
 
static void VPrint (const char *format, va_list args)
 
static void FPrint (FILE *out, const char *format,...)
 
static void VFPrint (FILE *out, const char *format, va_list args)
 
static void PrintError (const char *format,...)
 
static void VPrintError (const char *format, va_list args)
 
static void * Allocate (const size_t requested, size_t *allocated, bool is_executable)
 
static void Free (void *address, const size_t size)
 
static intptr_t CommitPageSize ()
 
static void ProtectCode (void *address, const size_t size)
 
static void Guard (void *address, const size_t size)
 
static void * GetRandomMmapAddr ()
 
static size_t AllocateAlignment ()
 
static void Sleep (const int milliseconds)
 
static void Abort ()
 
static void DebugBreak ()
 
static int SNPrintF (Vector< char > str, const char *format,...)
 
static int VSNPrintF (Vector< char > str, const char *format, va_list args)
 
static char * StrChr (char *str, int c)
 
static void StrNCpy (Vector< char > dest, const char *src, size_t n)
 
static void LogSharedLibraryAddresses (Isolate *isolate)
 
static void SignalCodeMovingGC ()
 
static uint64_t CpuFeaturesImpliedByPlatform ()
 
static uint64_t TotalPhysicalMemory ()
 
static intptr_t MaxVirtualMemory ()
 
static double nan_value ()
 
static bool ArmUsingHardFloat ()
 
static int ActivationFrameAlignment ()
 
static void MemCopy (void *dest, const void *src, size_t size)
 
static void MemMove (void *dest, const void *src, size_t size)
 
static int GetCurrentProcessId ()
 

Static Public Attributes

static const char *const LogFileOpenMode = "w"
 
static const int kStackWalkError = -1
 
static const int kStackWalkMaxNameLen = 256
 
static const int kStackWalkMaxTextLen = 256
 
static const int kMinComplexMemCopy = 16 * kPointerSize
 

Detailed Description

Definition at line 172 of file platform.h.

Member Function Documentation

void Abort ( )
static
int ActivationFrameAlignment ( )
static

Definition at line 152 of file platform-posix.cc.

void * Allocate ( const size_t  requested,
size_t *  allocated,
bool  is_executable 
)
static

Definition at line 75 of file platform-cygwin.cc.

References LOG, v8::internal::NULL, and v8::internal::RoundUp().

Referenced by MakeConvertDToIFuncTrampoline(), and TEST().

size_t AllocateAlignment ( )
static
static bool ArmUsingHardFloat ( )
static
void ClearTimezoneCache ( TimezoneCache cache)
static

Definition at line 370 of file platform-posix.cc.

References ASSERT, and v8::internal::NULL.

Referenced by DateCache::ResetDateCache().

uint64_t CpuFeaturesImpliedByPlatform ( )
static

Definition at line 80 of file platform-posix.cc.

References v8::internal::CMOV, and v8::internal::SSE2.

TimezoneCache * CreateTimezoneCache ( )
static

Definition at line 360 of file platform-posix.cc.

References v8::internal::NULL.

double DaylightSavingsOffset ( double  time,
TimezoneCache cache 
)
static
void DebugBreak ( )
static

Definition at line 276 of file platform-posix.cc.

void DisposeTimezoneCache ( TimezoneCache cache)
static

Definition at line 365 of file platform-posix.cc.

References ASSERT, and v8::internal::NULL.

Referenced by DateCache::~DateCache().

void FPrint ( FILE *  out,
const char *  format,
  ... 
)
static

Definition at line 435 of file platform-posix.cc.

References OS::VFPrint().

void Free ( void *  address,
const size_t  size 
)
static

Definition at line 176 of file platform-posix.cc.

References ASSERT, and v8::internal::USE().

int GetLastError ( )
static

Definition at line 384 of file platform-posix.cc.

Referenced by Heap::RecordStats().

void * GetRandomMmapAddr ( )
static
int GetUserTime ( uint32_t *  secs,
uint32_t *  usecs 
)
static

Definition at line 342 of file platform-posix.cc.

Referenced by Logger::ResourceEvent().

void Guard ( void *  address,
const size_t  size 
)
static

Definition at line 200 of file platform-posix.cc.

References v8::internal::DWORD().

double LocalTimeOffset ( TimezoneCache cache)
static

Definition at line 63 of file platform-cygwin.cc.

References ASSERT, and v8::internal::NULL.

Referenced by DateCache::GetLocalOffsetFromOS().

const char * LocalTimezone ( double  time,
TimezoneCache cache 
)
static

Definition at line 54 of file platform-cygwin.cc.

References std::isnan(), and v8::internal::NULL.

Referenced by DateCache::LocalTimezone().

void LogSharedLibraryAddresses ( Isolate isolate)
static

Definition at line 138 of file platform-cygwin.cc.

References v8::internal::fp, LOG, v8::internal::NULL, and V8PRIxPTR.

Referenced by Profiler::Engage().

intptr_t MaxVirtualMemory ( )
static

Definition at line 95 of file platform-posix.cc.

static void MemMove ( void *  dest,
const void *  src,
size_t  size 
)
inlinestatic
FILE * OpenTemporaryFile ( )
static

Definition at line 410 of file platform-posix.cc.

void PostSetUp ( )
static

Definition at line 541 of file platform-posix.cc.

References v8::internal::NULL.

void ProtectCode ( void *  address,
const size_t  size 
)
static

Definition at line 185 of file platform-posix.cc.

References v8::internal::DWORD().

bool Remove ( const char *  path)
static

Definition at line 405 of file platform-posix.cc.

void SignalCodeMovingGC ( )
static

Definition at line 197 of file platform-cygwin.cc.

Referenced by Logger::CodeMovingGCEvent().

void Sleep ( const int  milliseconds)
static
char * StrChr ( char *  str,
int  c 
)
static

Definition at line 565 of file platform-posix.cc.

void StrNCpy ( Vector< char >  dest,
const char *  src,
size_t  n 
)
static
uint64_t TotalPhysicalMemory ( )
static

Definition at line 103 of file platform-posix.cc.

References v8::internal::NULL, v8::internal::size, and UNREACHABLE.

Referenced by Shell::Main().

void VFPrint ( FILE *  out,
const char *  format,
va_list  args 
)
static

Definition at line 443 of file platform-posix.cc.

Referenced by OS::FPrint(), and v8::internal::PrintF().

void VPrint ( const char *  format,
va_list  args 
)
static
void VPrintError ( const char *  format,
va_list  args 
)
static

Definition at line 460 of file platform-posix.cc.

Referenced by OS::PrintError(), and V8_Fatal().

int VSNPrintF ( Vector< char >  str,
const char *  format,
va_list  args 
)
static

Field Documentation

const int kMinComplexMemCopy = 16 * kPointerSize
static

Definition at line 405 of file platform.h.

Referenced by v8::internal::CopyBytes(), and v8::internal::CopyCharsUnsigned().

const int kStackWalkError = -1
static

Definition at line 265 of file platform.h.

const int kStackWalkMaxNameLen = 256
static

Definition at line 266 of file platform.h.

const int kStackWalkMaxTextLen = 256
static

Definition at line 267 of file platform.h.

const char *const LogFileOpenMode = "w"
static

The documentation for this class was generated from the following files: