v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
Go to the source code of this file.
Data Structures | |
class | TerminatorThread |
class | LoopingThread |
Functions | |
v8::Handle< v8::Value > | Signal (const v8::Arguments &args) |
v8::Handle< v8::Value > | TerminateCurrentThread (const v8::Arguments &args) |
v8::Handle< v8::Value > | Fail (const v8::Arguments &args) |
v8::Handle< v8::Value > | Loop (const v8::Arguments &args) |
v8::Handle< v8::Value > | DoLoop (const v8::Arguments &args) |
v8::Handle< v8::Value > | DoLoopNoCall (const v8::Arguments &args) |
v8::Handle< v8::ObjectTemplate > | CreateGlobalTemplate (v8::InvocationCallback terminate, v8::InvocationCallback doloop) |
TEST (TerminateOnlyV8ThreadFromThreadItself) | |
TEST (TerminateOnlyV8ThreadFromThreadItselfNoLoop) | |
TEST (TerminateOnlyV8ThreadFromOtherThread) | |
TEST (TerminateMultipleV8ThreadsDefaultIsolate) | |
v8::Handle< v8::Value > | TerminateOrReturnObject (const v8::Arguments &args) |
v8::Handle< v8::Value > | LoopGetProperty (const v8::Arguments &args) |
TEST (TerminateLoadICException) | |
v8::Handle< v8::Value > | ReenterAfterTermination (const v8::Arguments &args) |
TEST (TerminateAndReenterFromThreadItself) | |
Variables | |
v8::internal::Semaphore * | semaphore = NULL |
int | call_count = 0 |
v8::Handle<v8::ObjectTemplate> CreateGlobalTemplate | ( | v8::InvocationCallback | terminate, |
v8::InvocationCallback | doloop | ||
) |
Definition at line 108 of file test-thread-termination.cc.
References Fail(), Loop(), String::New(), FunctionTemplate::New(), ObjectTemplate::New(), and Template::Set().
Referenced by LoopingThread::Run(), and TEST().
v8::Handle<v8::Value> DoLoop | ( | const v8::Arguments & | args | ) |
Definition at line 66 of file test-thread-termination.cc.
References TryCatch::CanContinue(), CHECK, Script::Compile(), TryCatch::Exception(), TryCatch::HasCaught(), V8::IsExecutionTerminating(), TryCatch::Message(), String::New(), and v8::Undefined().
Referenced by LoopingThread::Run(), and TEST().
v8::Handle<v8::Value> DoLoopNoCall | ( | const v8::Arguments & | args | ) |
Definition at line 91 of file test-thread-termination.cc.
References TryCatch::CanContinue(), CHECK, Script::Compile(), TryCatch::Exception(), TryCatch::HasCaught(), V8::IsExecutionTerminating(), TryCatch::Message(), String::New(), and v8::Undefined().
Referenced by TEST().
v8::Handle<v8::Value> Fail | ( | const v8::Arguments & | args | ) |
Definition at line 49 of file test-thread-termination.cc.
References CHECK, and v8::Undefined().
Referenced by CreateGlobalTemplate(), and TEST().
v8::Handle<v8::Value> Loop | ( | const v8::Arguments & | args | ) |
Definition at line 55 of file test-thread-termination.cc.
References CHECK, Script::Compile(), Handle< T >::IsEmpty(), V8::IsExecutionTerminating(), String::New(), and v8::Undefined().
Referenced by CreateGlobalTemplate().
v8::Handle<v8::Value> LoopGetProperty | ( | const v8::Arguments & | args | ) |
Definition at line 283 of file test-thread-termination.cc.
References TryCatch::CanContinue(), CHECK, Script::Compile(), TryCatch::Exception(), TryCatch::HasCaught(), V8::IsExecutionTerminating(), TryCatch::Message(), String::New(), and v8::Undefined().
Referenced by TEST().
v8::Handle<v8::Value> ReenterAfterTermination | ( | const v8::Arguments & | args | ) |
Definition at line 332 of file test-thread-termination.cc.
References TryCatch::CanContinue(), CHECK, Script::Compile(), TryCatch::Exception(), TryCatch::HasCaught(), V8::IsExecutionTerminating(), TryCatch::Message(), String::New(), and v8::Undefined().
Referenced by TEST().
v8::Handle<v8::Value> Signal | ( | const v8::Arguments & | args | ) |
Definition at line 36 of file test-thread-termination.cc.
References Semaphore::Signal(), and v8::Undefined().
Referenced by LoopingThread::Run(), and TEST().
v8::Handle<v8::Value> TerminateCurrentThread | ( | const v8::Arguments & | args | ) |
Definition at line 42 of file test-thread-termination.cc.
References CHECK, V8::IsExecutionTerminating(), V8::TerminateExecution(), and v8::Undefined().
Referenced by TEST().
v8::Handle<v8::Value> TerminateOrReturnObject | ( | const v8::Arguments & | args | ) |
Definition at line 271 of file test-thread-termination.cc.
References call_count, CHECK, V8::IsExecutionTerminating(), String::New(), Integer::New(), Object::New(), Object::Set(), V8::TerminateExecution(), and v8::Undefined().
Referenced by TEST().
TEST | ( | TerminateOnlyV8ThreadFromThreadItself | ) |
Definition at line 123 of file test-thread-termination.cc.
References CHECK, Script::Compile(), CreateGlobalTemplate(), Persistent< T >::Dispose(), DoLoop(), V8::IsExecutionTerminating(), String::New(), Context::New(), NULL, and TerminateCurrentThread().
TEST | ( | TerminateOnlyV8ThreadFromThreadItselfNoLoop | ) |
Definition at line 143 of file test-thread-termination.cc.
References CHECK, Script::Compile(), CreateGlobalTemplate(), Persistent< T >::Dispose(), DoLoopNoCall(), V8::IsExecutionTerminating(), String::New(), Context::New(), NULL, and TerminateCurrentThread().
TEST | ( | TerminateOnlyV8ThreadFromOtherThread | ) |
Definition at line 179 of file test-thread-termination.cc.
References CHECK, Script::Compile(), CreateGlobalTemplate(), OS::CreateSemaphore(), Persistent< T >::Dispose(), DoLoop(), V8::IsExecutionTerminating(), Thread::Join(), String::New(), Context::New(), NULL, semaphore, Signal(), and Thread::Start().
TEST | ( | TerminateMultipleV8ThreadsDefaultIsolate | ) |
Definition at line 229 of file test-thread-termination.cc.
References List< T, P >::Add(), OS::CreateSemaphore(), V8::Initialize(), NULL, semaphore, Locker::StartPreemption(), Locker::StopPreemption(), V8::TerminateExecution(), and Semaphore::Wait().
TEST | ( | TerminateLoadICException | ) |
Definition at line 308 of file test-thread-termination.cc.
References call_count, CHECK, Script::Compile(), Persistent< T >::Dispose(), Fail(), V8::IsExecutionTerminating(), LoopGetProperty(), String::New(), FunctionTemplate::New(), ObjectTemplate::New(), Context::New(), NULL, Template::Set(), and TerminateOrReturnObject().
TEST | ( | TerminateAndReenterFromThreadItself | ) |
Definition at line 359 of file test-thread-termination.cc.
References CHECK, Script::Compile(), CreateGlobalTemplate(), Persistent< T >::Dispose(), V8::IsExecutionTerminating(), String::New(), Context::New(), NULL, ReenterAfterTermination(), and TerminateCurrentThread().
int call_count = 0 |
Definition at line 268 of file test-thread-termination.cc.
Referenced by TerminateOrReturnObject(), and TEST().
v8::internal::Semaphore* semaphore = NULL |
Definition at line 33 of file test-thread-termination.cc.
Referenced by TEST().