v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <platform.h>
Data Structures | |
class | Options |
class | PlatformData |
Public Types | |
enum | LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt } |
Public Member Functions | |
Thread (const Options &options) | |
virtual | ~Thread () |
void | Start () |
void | Join () |
const char * | name () const |
virtual void | Run ()=0 |
PlatformData * | data () |
Static Public Member Functions | |
static LocalStorageKey | CreateThreadLocalKey () |
static void | DeleteThreadLocalKey (LocalStorageKey key) |
static void * | GetThreadLocal (LocalStorageKey key) |
static int | GetThreadLocalInt (LocalStorageKey key) |
static void | SetThreadLocal (LocalStorageKey key, void *value) |
static void | SetThreadLocalInt (LocalStorageKey key, int value) |
static bool | HasThreadLocal (LocalStorageKey key) |
static void * | GetExistingThreadLocal (LocalStorageKey key) |
static void | YieldCPU () |
Static Public Attributes | |
static const int | kMaxThreadNameLength = 16 |
Definition at line 449 of file platform.h.
enum LocalStorageKey |
Enumerator | |
---|---|
LOCAL_STORAGE_KEY_MIN_VALUE | |
LOCAL_STORAGE_KEY_MAX_VALUE |
Definition at line 455 of file platform.h.
Definition at line 371 of file platform-cygwin.cc.
References Thread::Options::name().
|
virtual |
Definition at line 378 of file platform-cygwin.cc.
|
static |
Definition at line 438 of file platform-cygwin.cc.
References ASSERT, v8::internal::NULL, and v8::internal::USE().
Referenced by Isolate::EnsureDefaultIsolate().
|
inline |
Definition at line 528 of file platform.h.
|
static |
Definition at line 447 of file platform-cygwin.cc.
References ASSERT, and v8::internal::USE().
|
inlinestatic |
Definition at line 514 of file platform.h.
References Thread::GetThreadLocal().
Referenced by Isolate::INLINE().
|
static |
Definition at line 455 of file platform-cygwin.cc.
Referenced by Isolate::CurrentPerIsolateThreadData(), Isolate::EnsureDefaultIsolate(), Thread::GetExistingThreadLocal(), Thread::GetThreadLocalInt(), Thread::HasThreadLocal(), and Isolate::INLINE().
|
inlinestatic |
Definition at line 495 of file platform.h.
References Thread::GetThreadLocal().
|
inlinestatic |
Definition at line 502 of file platform.h.
References Thread::GetThreadLocal(), and v8::internal::NULL.
void Join | ( | ) |
Definition at line 414 of file platform-cygwin.cc.
References v8::internal::NULL, and Thread::PlatformData::thread_.
Referenced by Profiler::Disengage(), ThreadC::Run(), Shell::RunMain(), ContextSwitcher::StopPreemption(), RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(), PreallocatedMemoryThread::StopThread(), ApiTestFuzzer::TearDown(), TEST(), and SourceGroup::WaitForThread().
|
inline |
Definition at line 484 of file platform.h.
|
pure virtual |
Implemented in InitDefaultIsolateThread, IsolateThread, SamplerThread, ShellThread, SignalSender, SignalSender, SamplerThread, SignalSender, SignalSender, SamplerThread, LoopingThread, ThreadC, PreallocatedMemoryThread, TerminatorThread, ThreadIdValidationThread, ProfilerEventsProcessor, KeyboardThread, Profiler, ReceiverThread, ThreadB, ApiTestFuzzer, ThreadA, KangarooThread, OptimizingCompilerThread, and TestThread.
|
static |
Definition at line 461 of file platform-cygwin.cc.
Referenced by Isolate::EnsureDefaultIsolate(), and Thread::SetThreadLocalInt().
|
inlinestatic |
Definition at line 499 of file platform.h.
References Thread::SetThreadLocal().
void Start | ( | ) |
Definition at line 401 of file platform-cygwin.cc.
References ASSERT, v8::internal::NULL, and Thread::PlatformData::thread_.
Referenced by SamplerThread::AddActiveSampler(), SignalSender::AddActiveSampler(), Profiler::Engage(), ThreadIdValidationThread::Run(), Shell::RunMain(), ApiTestFuzzer::SetUp(), SourceGroup::StartExecuteInThread(), ContextSwitcher::StartPreemption(), and TEST().
|
static |
Definition at line 467 of file platform-cygwin.cc.
Referenced by ProfilerEventsProcessor::Run().
|
static |
Definition at line 525 of file platform.h.