V8 Project
|
#include <platform.h>
Classes | |
class | MemoryMappedFile |
struct | SharedLibraryAddress |
struct | StackFrame |
Static Public Member Functions | |
static void | Initialize (int64_t random_seed, bool hard_abort, const char *const gc_fake_mmap) |
static int | GetUserTime (uint32_t *secs, uint32_t *usecs) |
static double | TimeCurrentMillis () |
static TimezoneCache * | CreateTimezoneCache () |
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 (char *str, int length, const char *format,...) |
static int | VSNPrintF (char *str, int length, const char *format, va_list args) |
static char * | StrChr (char *str, int c) |
static void | StrNCpy (char *dest, int length, const char *src, size_t n) |
static std::vector< SharedLibraryAddress > | GetSharedLibraryAddresses () |
static void | SignalCodeMovingGC () |
static double | nan_value () |
static bool | ArmUsingHardFloat () |
static int | ActivationFrameAlignment () |
static int | GetCurrentProcessId () |
static int | GetCurrentThreadId () |
Static Public Attributes | |
static const char *const | LogFileOpenMode = "w" |
static const int | kStackWalkError = -1 |
static const int | kStackWalkMaxNameLen = 256 |
static const int | kStackWalkMaxTextLen = 256 |
Private Member Functions | |
DISALLOW_IMPLICIT_CONSTRUCTORS (OS) | |
Static Private Attributes | |
static const int | msPerSecond = 1000 |
Definition at line 142 of file platform.h.
|
static |
Definition at line 209 of file platform-posix.cc.
References v8::base::anonymous_namespace{platform-posix.cc}::g_hard_abort, and V8_IMMEDIATE_CRASH.
Referenced by v8::internal::Isolate::DoThrow(), v8::Utils::ReportApiFailure(), v8::internal::RUNTIME_FUNCTION(), v8::internal::Isolate::StackTraceString(), and V8_Fatal().
|
static |
Definition at line 76 of file platform-posix.cc.
|
static |
Definition at line 50 of file platform-cygwin.cc.
References NULL, and RoundUp().
|
static |
Definition at line 198 of file platform-posix.cc.
Referenced by v8::internal::SemiSpace::GrowTo(), v8::internal::SemiSpace::ShrinkTo(), and v8::base::VirtualMemory::VirtualMemory().
|
static |
Referenced by v8::internal::MacroAssembler::use_eabi_hardfloat().
|
static |
Definition at line 305 of file platform-posix.cc.
Referenced by v8::internal::DateCache::ResetDateCache().
|
static |
Definition at line 94 of file platform-posix.cc.
Referenced by v8::internal::MemoryAllocator::AllocateChunk(), v8::internal::AllocateCodeChunk(), v8::internal::MemoryAllocator::CodePageAreaEndOffset(), v8::internal::MemoryAllocator::CodePageGuardSize(), v8::internal::MemoryAllocator::CodePageGuardStartOffset(), v8::internal::MemoryChunk::CommitArea(), v8::internal::Deoptimizer::GetMaxDeoptTableSize(), v8::base::VirtualMemory::Guard(), and v8::internal::StoreBuffer::SetUp().
|
static |
|
static |
Definition at line 310 of file platform-posix.cc.
References msPerSecond, nan_value(), and NULL.
Referenced by v8::internal::DateCache::GetDaylightSavingsOffsetFromOS().
|
static |
Definition at line 218 of file platform-posix.cc.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
private |
|
static |
Definition at line 300 of file platform-posix.cc.
Referenced by v8::internal::DateCache::~DateCache().
|
static |
Definition at line 328 of file platform-posix.cc.
References file(), mode(), and NULL.
Referenced by v8::internal::AppendChars(), SnapshotWriter::GetFileDescriptorOrDie(), v8::internal::LowLevelLogger::LowLevelLogger(), main(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::OpenFile(), v8::internal::Log::OpenFile(), v8::internal::PerfBasicLogger::PerfBasicLogger(), v8::internal::ReadCharsFromFile(), v8::internal::compiler::Pipeline::VerifyAndPrintGraph(), and v8::internal::WriteChars().
|
static |
Definition at line 370 of file platform-posix.cc.
References VFPrint().
Referenced by v8::internal::PerfBasicLogger::LogRecordedBuffer().
|
static |
Definition at line 100 of file platform-posix.cc.
References DCHECK, size, and USE().
|
static |
Definition at line 250 of file platform-posix.cc.
Referenced by v8::internal::FINAL< kOperandKind, kNumCachedOperands >::CodeTracer(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::HTracer(), v8::base::LoadSymbols(), v8::internal::PerfBasicLogger::PerfBasicLogger(), v8::internal::PrepareLogFileName(), v8::internal::PrintPID(), and v8::base::TEST().
|
static |
Definition at line 255 of file platform-posix.cc.
|
static |
Definition at line 319 of file platform-posix.cc.
Referenced by v8::base::LoadSymbols(), and v8::internal::Heap::RecordStats().
|
static |
Definition at line 153 of file platform-posix.cc.
References NULL, v8::base::platform_random_number_generator, and V8_UINT64_C.
Referenced by v8::base::RandomizedVirtualAlloc().
|
static |
Definition at line 110 of file platform-cygwin.cc.
References v8::internal::fp, NULL, and V8PRIxPTR.
Referenced by v8::internal::Profiler::Engage().
Definition at line 272 of file platform-posix.cc.
Referenced by v8::internal::Logger::ResourceEvent().
|
static |
Definition at line 124 of file platform-posix.cc.
References v8::base::DWORD(), and size.
|
static |
Definition at line 138 of file platform-posix.cc.
References v8::base::anonymous_namespace{platform-posix.cc}::g_gc_fake_mmap, v8::base::anonymous_namespace{platform-posix.cc}::g_hard_abort, and v8::base::platform_random_number_generator.
Referenced by v8::internal::V8::InitializeOncePerProcessImpl().
|
static |
Definition at line 38 of file platform-cygwin.cc.
References DCHECK, msPerSecond, and NULL.
Referenced by v8::internal::DateCache::GetLocalOffsetFromOS().
|
static |
Definition at line 29 of file platform-cygwin.cc.
References msPerSecond, and NULL.
Referenced by v8::internal::DateCache::LocalTimezone().
|
static |
Definition at line 244 of file platform-posix.cc.
Referenced by v8::internal::HOptimizedGraphBuilder::BuildStringCharCodeAt(), v8::internal::FixedDoubleArray::canonical_not_the_hole_nan_as_double(), v8::internal::Heap::CreateInitialObjects(), DaylightSavingsOffset(), v8::internal::TypeImpl< Config >::BitsetType::Min(), v8::internal::compiler::JSGraph::NaNConstant(), v8::Date::New(), v8::Number::New(), v8::Value::NumberValue(), v8::internal::power_double_double(), v8::internal::RUNTIME_FUNCTION(), v8::internal::ExternalFloat32Array::SetValue(), v8::internal::ExternalFloat64Array::SetValue(), and v8::internal::compiler::TEST_F().
|
static |
Definition at line 345 of file platform-posix.cc.
Referenced by v8::internal::Log::OpenTemporaryFile().
|
static |
Definition at line 353 of file platform-posix.cc.
References VPrint().
Referenced by v8::internal::CodeMap::CodeTreePrinter::Call(), v8::internal::BoundsCheckBbData::CoverCheck(), v8::base::LoadSymbols(), v8::internal::HBoundsCheckEliminationPhase::PreProcessBlock(), v8::internal::CpuProfile::Print(), v8::internal::AllocationTraceTree::Print(), v8::internal::ProfileNode::Print(), v8::internal::AllocationTraceNode::Print(), v8::internal::PrintPID(), and v8::internal::BoundsCheckBbData::TightenCheck().
|
static |
Definition at line 387 of file platform-posix.cc.
References VPrintError().
Referenced by v8::internal::AppendChars(), v8::internal::Isolate::DoThrow(), v8::base::DumpBacktrace(), v8::internal::Isolate::PrintStack(), v8::internal::ReadCharsFromFile(), v8::Utils::ReportApiFailure(), v8::internal::RUNTIME_FUNCTION(), v8::internal::Isolate::StackTraceString(), V8_Fatal(), and v8::internal::WriteChars().
|
static |
Definition at line 109 of file platform-posix.cc.
References v8::base::DWORD(), and size.
|
static |
Definition at line 340 of file platform-posix.cc.
|
static |
Definition at line 171 of file platform-cygwin.cc.
Referenced by v8::internal::Logger::CodeMovingGCEvent().
|
static |
Definition at line 203 of file platform-posix.cc.
Referenced by v8::internal::OptimizingCompilerThread::Run(), v8::internal::SamplerThread::Run(), and v8::internal::RUNTIME_FUNCTION().
Definition at line 404 of file platform-posix.cc.
References VSNPrintF().
Referenced by v8::base::TimezoneCache::InitializeIfNeeded().
|
static |
Definition at line 433 of file platform-posix.cc.
|
static |
Definition at line 438 of file platform-posix.cc.
Referenced by v8::internal::StrNCpy().
|
static |
Definition at line 287 of file platform-posix.cc.
Referenced by v8::internal::Logger::DebugEvent(), v8::internal::GCTracer::GCTracer(), v8::internal::Logger::HeapSampleBeginEvent(), v8::internal::IncrementalMarking::Hurry(), v8::internal::Isolate::Init(), v8::internal::MarkCompactCollector::MarkLiveObjects(), v8::internal::PrepareLogFileName(), v8::internal::Logger::ResourceEvent(), v8::internal::RUNTIME_FUNCTION(), v8::internal::GCTracer::Scope::Scope(), v8::internal::GCTracer::Start(), v8::internal::IncrementalMarking::Step(), v8::internal::GCTracer::Stop(), v8::internal::MarkCompactCollector::SweepSpaces(), v8::internal::Isolate::time_millis_since_init(), and v8::internal::GCTracer::Scope::~Scope().
|
static |
Definition at line 378 of file platform-posix.cc.
Referenced by FPrint(), and v8::internal::PrintF().
|
static |
Definition at line 361 of file platform-posix.cc.
Referenced by Print(), v8::internal::PrintF(), v8::internal::PrintPID(), v8::internal::compiler::Trace(), v8::internal::TraceGVN(), and v8::internal::HRangeAnalysisPhase::TraceRange().
|
static |
Definition at line 395 of file platform-posix.cc.
Referenced by PrintError(), and V8_Fatal().
Definition at line 413 of file platform-posix.cc.
Referenced by SNPrintF(), v8::base::VPrintHelper(), and v8::internal::VSNPrintF().
|
static |
Definition at line 239 of file platform.h.
|
static |
Definition at line 240 of file platform.h.
Referenced by v8::base::LoadSymbols().
|
static |
Definition at line 241 of file platform.h.
|
static |
Definition at line 187 of file platform.h.
Referenced by v8::internal::LowLevelLogger::LowLevelLogger(), v8::internal::Log::OpenFile(), and v8::internal::PerfBasicLogger::PerfBasicLogger().
|
staticprivate |
Definition at line 303 of file platform.h.
Referenced by DaylightSavingsOffset(), LocalTimeOffset(), and LocalTimezone().