v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#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 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 (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 |
Definition at line 172 of file platform.h.
|
static |
Definition at line 267 of file platform-posix.cc.
References V8_IMMEDIATE_CRASH.
Referenced by Isolate::DoThrow(), v8::internal::RUNTIME_FUNCTION(), Isolate::StackTraceString(), and V8_Fatal().
|
static |
Definition at line 152 of file platform-posix.cc.
|
static |
Definition at line 75 of file platform-cygwin.cc.
References LOG, v8::internal::NULL, and v8::internal::RoundUp().
Referenced by MakeConvertDToIFuncTrampoline(), and TEST().
|
static |
Definition at line 256 of file platform-posix.cc.
Referenced by SemiSpace::GrowTo(), SemiSpace::ShrinkTo(), and VirtualMemory::VirtualMemory().
|
static |
Referenced by MacroAssembler::use_eabi_hardfloat().
|
static |
Definition at line 370 of file platform-posix.cc.
References ASSERT, and v8::internal::NULL.
Referenced by DateCache::ResetDateCache().
|
static |
Definition at line 170 of file platform-posix.cc.
Referenced by MemoryAllocator::AllocateChunk(), MemoryAllocator::CodePageAreaEndOffset(), MemoryAllocator::CodePageGuardSize(), MemoryAllocator::CodePageGuardStartOffset(), MemoryChunk::CommitArea(), Deoptimizer::GetMaxDeoptTableSize(), VirtualMemory::Guard(), and StoreBuffer::SetUp().
|
static |
Definition at line 80 of file platform-posix.cc.
References v8::internal::CMOV, and v8::internal::SSE2.
|
static |
Definition at line 360 of file platform-posix.cc.
References v8::internal::NULL.
|
static |
Definition at line 375 of file platform-posix.cc.
References std::isnan(), OS::nan_value(), and v8::internal::NULL.
Referenced by DateCache::GetDaylightSavingsOffsetFromOS().
|
static |
Definition at line 276 of file platform-posix.cc.
|
static |
Definition at line 365 of file platform-posix.cc.
References ASSERT, and v8::internal::NULL.
Referenced by DateCache::~DateCache().
|
static |
Definition at line 393 of file platform-posix.cc.
References v8::internal::NULL.
Referenced by v8::internal::AppendChars(), CppByteSink::CppByteSink(), FileByteSink::FileByteSink(), LowLevelLogger::LowLevelLogger(), main(), V8_FINAL< kOperandKind, kNumCachedOperands >::OpenFile(), PerfBasicLogger::PerfBasicLogger(), PerfJitLogger::PerfJitLogger(), v8::internal::ReadCharsFromFile(), v8::internal::WriteChars(), and FileByteSink::WriteSpaceUsed().
|
static |
Definition at line 435 of file platform-posix.cc.
References OS::VFPrint().
|
static |
Definition at line 176 of file platform-posix.cc.
References ASSERT, and v8::internal::USE().
|
static |
Definition at line 333 of file platform-posix.cc.
Referenced by V8_FINAL< kOperandKind, kNumCachedOperands >::CodeTracer(), V8_FINAL< kOperandKind, kNumCachedOperands >::HTracer(), PerfBasicLogger::PerfBasicLogger(), PerfJitLogger::PerfJitLogger(), and v8::internal::PrintPID().
|
static |
Definition at line 384 of file platform-posix.cc.
Referenced by Heap::RecordStats().
|
static |
Definition at line 210 of file platform-posix.cc.
References v8::internal::NULL, Isolate::random_number_generator(), and V8_UINT64_C.
|
static |
Definition at line 342 of file platform-posix.cc.
Referenced by Logger::ResourceEvent().
|
static |
Definition at line 200 of file platform-posix.cc.
References v8::internal::DWORD().
|
static |
Definition at line 63 of file platform-cygwin.cc.
References ASSERT, and v8::internal::NULL.
Referenced by DateCache::GetLocalOffsetFromOS().
|
static |
Definition at line 54 of file platform-cygwin.cc.
References std::isnan(), and v8::internal::NULL.
Referenced by DateCache::LocalTimezone().
|
static |
Definition at line 138 of file platform-cygwin.cc.
References v8::internal::fp, LOG, v8::internal::NULL, and V8PRIxPTR.
Referenced by Profiler::Engage().
|
static |
Definition at line 95 of file platform-posix.cc.
|
inlinestatic |
Definition at line 399 of file platform.h.
Referenced by SimpleStringBuilder::AddSubstring(), OutputStreamWriter::AddSubstring(), Heap::AllocateOneByteInternalizedString(), Heap::AllocateTwoByteInternalizedString(), CodeEventLogger::NameBuffer::AppendBytes(), RegExpStack::ArchiveStack(), StackGuard::ArchiveStackGuard(), Isolate::ArchiveThread(), Heap::CheckpointObjectStats(), v8::internal::CopyBytes(), v8::internal::CopyCharsUnsigned(), SnapshotByteSource::CopyRaw(), v8::internal::CopyWords(), DeclaredAccessorDescriptor::Create(), RegExpStack::EnsureCapacity(), CompleteParserRecorder::ExtractData(), v8::internal::FastD2UI(), HeapStringAllocator::grow(), RegExpImpl::IrregexpExecRaw(), LowLevelLogger::LowLevelLogger(), Object::ObjectProtoToString(), v8::internal::ReadLine(), RegExpStack::RestoreStack(), StackGuard::RestoreStackGuard(), Isolate::RestoreThread(), v8::internal::StrDup(), v8::internal::StrNDup(), TEST(), StringStream::ToCString(), and Utf8Decoder< kBufferSize >::WriteUtf16().
|
inlinestatic |
Definition at line 402 of file platform.h.
Referenced by Heap::MoveBlock(), Heap::MoveElements(), v8::internal::MoveWords(), TEST(), and TestMemMove().
|
static |
Definition at line 327 of file platform-posix.cc.
Referenced by FixedDoubleArray::canonical_not_the_hole_nan_as_double(), OS::DaylightSavingsOffset(), Number::New(), Date::New(), Value::NumberValue(), v8::internal::power_double_double(), v8::internal::RUNTIME_FUNCTION(), ExternalFloat32Array::SetValue(), ExternalFloat64Array::SetValue(), TEST(), and THREADED_TEST().
|
static |
Definition at line 410 of file platform-posix.cc.
|
static |
Definition at line 541 of file platform-posix.cc.
References v8::internal::NULL.
|
static |
Definition at line 418 of file platform-posix.cc.
References OS::VPrint().
Referenced by CallCompletedCallback1(), CallCompletedCallback2(), BoundsCheckBbData::CoverCheck(), AllocationTraceNode::Print(), AllocationTraceTree::Print(), ProfileNode::Print(), CpuProfile::Print(), v8::internal::PrintPID(), RecursiveCall(), TEST(), and TestParserSyncWithFlags().
|
static |
Definition at line 452 of file platform-posix.cc.
References OS::VPrintError().
Referenced by v8::internal::AppendChars(), Isolate::DoThrow(), v8::internal::DumpBacktrace(), Isolate::PrintStack(), v8::internal::ReadCharsFromFile(), v8::internal::RUNTIME_FUNCTION(), Isolate::StackTraceString(), V8_Fatal(), and v8::internal::WriteChars().
|
static |
Definition at line 185 of file platform-posix.cc.
References v8::internal::DWORD().
|
static |
Definition at line 405 of file platform-posix.cc.
|
static |
Definition at line 197 of file platform-cygwin.cc.
Referenced by Logger::CodeMovingGCEvent().
|
static |
Definition at line 261 of file platform-posix.cc.
Referenced by OptimizingCompilerThread::Run(), SamplerThread::Run(), RegExpInterruptionThread::Run(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 469 of file platform-posix.cc.
References OS::VSNPrintF().
Referenced by StringStream::Add(), CodeEventLogger::NameBuffer::AppendHex(), CodeEventLogger::NameBuffer::AppendInt(), CheckCorrectThrow(), V8_FINAL< kOperandKind, kNumCachedOperands >::CodeTracer(), CreateCode(), DEPENDENT_TEST(), Version::GetSONAME(), Version::GetString(), HeapNumber::HeapNumberPrint(), V8_FINAL< kOperandKind, kNumCachedOperands >::HTracer(), TimezoneCache::InitializeIfNeeded(), PerfBasicLogger::PerfBasicLogger(), PerfJitLogger::PerfJitLogger(), RecursiveCall(), ApiCallOptimizationChecker::Run(), RunParserSyncTest(), TEST(), THREADED_TEST(), and FileByteSink::WriteSpaceUsed().
|
static |
Definition at line 565 of file platform-posix.cc.
|
static |
Definition at line 570 of file platform-posix.cc.
References Vector< T >::start().
Referenced by V8_FINAL< kOperandKind, kNumCachedOperands >::CodeTracer(), Factory::EmergencyNewError(), StringsStorage::GetCopy(), and V8_FINAL< kOperandKind, kNumCachedOperands >::HTracer().
|
static |
Definition at line 352 of file platform-posix.cc.
Referenced by Logger::DebugEvent(), Logger::HeapSampleBeginEvent(), IncrementalMarking::Hurry(), Logger::ResourceEvent(), v8::internal::RUNTIME_FUNCTION(), BASE_EMBEDDED< Visitor >::BASE_EMBEDDED::Scope(), IncrementalMarking::Step(), Isolate::time_millis_since_init(), and BASE_EMBEDDED< Visitor >::BASE_EMBEDDED::~Scope().
|
static |
Definition at line 103 of file platform-posix.cc.
References v8::internal::NULL, v8::internal::size, and UNREACHABLE.
Referenced by Shell::Main().
|
static |
Definition at line 443 of file platform-posix.cc.
Referenced by OS::FPrint(), and v8::internal::PrintF().
|
static |
Definition at line 426 of file platform-posix.cc.
Referenced by OS::Print(), v8::internal::PrintF(), v8::internal::PrintPID(), and v8::internal::TraceGVN().
|
static |
Definition at line 460 of file platform-posix.cc.
Referenced by OS::PrintError(), and V8_Fatal().
|
static |
Definition at line 478 of file platform-posix.cc.
References Vector< T >::length(), and Vector< T >::start().
Referenced by StringBuilder::AddFormattedList(), StringsStorage::GetVFormatted(), and OS::SNPrintF().
|
static |
Definition at line 405 of file platform.h.
Referenced by v8::internal::CopyBytes(), and v8::internal::CopyCharsUnsigned().
|
static |
Definition at line 265 of file platform.h.
|
static |
Definition at line 266 of file platform.h.
|
static |
Definition at line 267 of file platform.h.
|
static |
Definition at line 213 of file platform.h.
Referenced by LowLevelLogger::LowLevelLogger(), PerfBasicLogger::PerfBasicLogger(), and PerfJitLogger::PerfJitLogger().