v8  3.14.5(node0.10.28)
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 SetUp ()
 
static void PostSetUp ()
 
static void TearDown ()
 
static int GetUserTime (uint32_t *secs, uint32_t *usecs)
 
static int64_t Ticks ()
 
static double TimeCurrentMillis ()
 
static const char * LocalTimezone (double time)
 
static double LocalTimeOffset ()
 
static double DaylightSavingsOffset (double time)
 
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 bool IsOutsideAllocatedSpace (void *pointer)
 
static void Sleep (const int milliseconds)
 
static void Abort ()
 
static void DebugBreak ()
 
static int StackWalk (Vector< StackFrame > frames)
 
static MutexCreateMutex ()
 
static SemaphoreCreateSemaphore (int count)
 
static SocketCreateSocket ()
 
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 ()
 
static void SignalCodeMovingGC ()
 
static uint64_t CpuFeaturesImpliedByPlatform ()
 
static intptr_t MaxVirtualMemory ()
 
static double nan_value ()
 
static CpuImplementer GetCpuImplementer ()
 
static bool ArmCpuHasFeature (CpuFeature feature)
 
static bool ArmUsingHardFloat ()
 
static bool MipsCpuHasFeature (CpuFeature feature)
 
static int ActivationFrameAlignment ()
 
static void ReleaseStore (volatile AtomicWord *ptr, AtomicWord value)
 
static void MemCopy (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 = 256
 

Detailed Description

Definition at line 139 of file platform.h.

Member Function Documentation

int ActivationFrameAlignment ( )
static

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

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

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

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

size_t AllocateAlignment ( )
static
bool ArmCpuHasFeature ( CpuFeature  feature)
static

Definition at line 223 of file platform-nullos.cc.

References UNIMPLEMENTED.

bool ArmUsingHardFloat ( )
static

Definition at line 228 of file platform-nullos.cc.

References UNIMPLEMENTED.

uint64_t CpuFeaturesImpliedByPlatform ( )
static

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

Socket * CreateSocket ( )
static

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

double DaylightSavingsOffset ( double  time)
static

Definition at line 132 of file platform-nullos.cc.

References UNIMPLEMENTED.

Referenced by DateCache::GetDaylightSavingsOffsetFromOS().

void DebugBreak ( )
static

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

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

Definition at line 165 of file platform-nullos.cc.

References OS::VFPrint().

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

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

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

Referenced by VirtualMemory::VirtualMemory().

CpuImplementer GetCpuImplementer ( )
static

Definition at line 218 of file platform-nullos.cc.

References UNIMPLEMENTED.

int GetCurrentProcessId ( )
static

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

Referenced by v8::internal::PrintPID().

int GetLastError ( )
static

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

References UNIMPLEMENTED.

Referenced by Heap::RecordStats().

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

Definition at line 100 of file platform-nullos.cc.

References UNIMPLEMENTED.

Referenced by Logger::ResourceEvent().

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

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

References v8::internal::DWORD().

bool IsOutsideAllocatedSpace ( void *  pointer)
static

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

Referenced by Heap::Contains(), and Heap::InSpace().

double LocalTimeOffset ( )
static

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

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

Referenced by DateCache::GetLocalOffsetFromOS().

const char * LocalTimezone ( double  time)
static

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

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

Referenced by DateCache::LocalTimezone(), and v8::internal::RUNTIME_FUNCTION().

void LogSharedLibraryAddresses ( )
static

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

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

Referenced by Profiler::Engage().

intptr_t MaxVirtualMemory ( )
static

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

static void MemCopy ( void *  dest,
const void *  src,
size_t  size 
)
inlinestatic

Definition at line 339 of file platform.h.

Referenced by v8::internal::CopyChars(), ScriptData::New(), and TestMemCopy().

static bool MipsCpuHasFeature ( CpuFeature  feature)
static
FILE * OpenTemporaryFile ( )
static

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

void PostSetUp ( )
static

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

References v8::internal::POSIXPostSetUp().

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

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

References v8::internal::DWORD().

void ReleaseStore ( volatile AtomicWord ptr,
AtomicWord  value 
)
static

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

bool Remove ( const char *  path)
static
void SetUp ( )
static

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

References OS::CreateMutex(), seed, SamplerThread::SetUp(), and OS::TimeCurrentMillis().

Referenced by TEST().

void SignalCodeMovingGC ( )
static

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

Referenced by Logger::CodeMovingGCEvent().

void Sleep ( const int  milliseconds)
static

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

Referenced by SamplerThread::Run(), and TEST().

int StackWalk ( Vector< StackFrame frames)
static

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

char * StrChr ( char *  str,
int  c 
)
static

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

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

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

References SamplerThread::TearDown().

Referenced by V8::TearDown().

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

Definition at line 173 of file platform-nullos.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 189 of file platform-nullos.cc.

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

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

Definition at line 201 of file platform-nullos.cc.

References UNIMPLEMENTED.

Referenced by StringBuilder::AddFormattedList(), and StringsStorage::GetVFormatted().

Field Documentation

const int kMinComplexMemCopy = 256
static

Definition at line 342 of file platform.h.

Referenced by v8::internal::CopyChars(), TEST(), and TestMemCopy().

const int kStackWalkError = -1
static

Definition at line 245 of file platform.h.

const int kStackWalkMaxNameLen = 256
static

Definition at line 246 of file platform.h.

const int kStackWalkMaxTextLen = 256
static

Definition at line 247 of file platform.h.

const char *const LogFileOpenMode = "w"
static

Definition at line 186 of file platform.h.


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