v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <optimizing-compiler-thread.h>
Public Member Functions | |
OptimizingCompilerThread (Isolate *isolate) | |
void | Run () |
void | Stop () |
void | QueueForOptimization (OptimizingCompiler *optimizing_compiler) |
void | InstallOptimizedFunctions () |
bool | IsQueueAvailable () |
~OptimizingCompilerThread () | |
Public Member Functions inherited from Thread | |
Thread (const Options &options) | |
virtual | ~Thread () |
void | Start () |
void | Join () |
const char * | name () const |
PlatformData * | data () |
Additional Inherited Members | |
Public Types inherited from Thread | |
enum | LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt } |
Static Public Member Functions inherited from Thread | |
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 inherited from Thread | |
static const int | kMaxThreadNameLength = 16 |
Definition at line 42 of file optimizing-compiler-thread.h.
|
inlineexplicit |
Definition at line 44 of file optimizing-compiler-thread.h.
References v8::internal::NoBarrier_Store().
|
inline |
Definition at line 78 of file optimizing-compiler-thread.h.
void InstallOptimizedFunctions | ( | ) |
Definition at line 98 of file optimizing-compiler-thread.cc.
References Compiler::InstallOptimizedCode(), v8::internal::NULL, and v8::internal::PrintF().
Referenced by Execution::HandleStackGuardInterrupt().
|
inline |
Definition at line 60 of file optimizing-compiler-thread.h.
References ASSERT, and v8::internal::NoBarrier_Load().
void QueueForOptimization | ( | OptimizingCompiler * | optimizing_compiler | ) |
Definition at line 113 of file optimizing-compiler-thread.cc.
References Semaphore::Signal().
|
virtual |
Implements Thread.
Definition at line 40 of file optimizing-compiler-thread.cc.
References v8::internal::Acquire_Load(), ASSERT, v8::internal::Barrier_AtomicIncrement(), ThreadId::Current(), OptimizingCompiler::FAILED, Isolate::heap(), v8::internal::NULL, StackGuard::RequestCodeReadyEvent(), Semaphore::Signal(), Isolate::stack_guard(), OS::Ticks(), ThreadId::ToInteger(), v8::internal::USE(), and Semaphore::Wait().
void Stop | ( | ) |
Definition at line 84 of file optimizing-compiler-thread.cc.
References v8::internal::PrintF(), v8::internal::Release_Store(), Semaphore::Signal(), and Semaphore::Wait().