v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
Go to the source code of this file.
Data Structures | |
class | TerminatorThread |
Variables | |
v8::internal::Semaphore * | semaphore = NULL |
int | call_count = 0 |
v8::Handle<v8::ObjectTemplate> CreateGlobalTemplate | ( | v8::Isolate * | isolate, |
v8::FunctionCallback | terminate, | ||
v8::FunctionCallback | doloop | ||
) |
Definition at line 104 of file test-thread-termination.cc.
References Fail(), Loop(), FunctionTemplate::New(), ObjectTemplate::New(), String::NewFromUtf8(), and Template::Set().
Referenced by Shell::CreateEvaluationContext(), Shell::RealmCreate(), and TEST().
void DoLoop | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 62 of file test-thread-termination.cc.
References TryCatch::CanContinue(), CHECK, Script::Compile(), TryCatch::Exception(), FunctionCallbackInfo< T >::GetIsolate(), TryCatch::HasCaught(), V8::IsExecutionTerminating(), TryCatch::Message(), and String::NewFromUtf8().
Referenced by TEST().
void DoLoopCancelTerminate | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 325 of file test-thread-termination.cc.
References V8::CancelTerminateExecution(), TryCatch::CanContinue(), CHECK, Script::Compile(), TryCatch::Exception(), FunctionCallbackInfo< T >::GetIsolate(), TryCatch::HasCaught(), TryCatch::HasTerminated(), V8::IsExecutionTerminating(), CcTest::isolate(), TryCatch::Message(), and String::NewFromUtf8().
Referenced by TEST().
void DoLoopNoCall | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 87 of file test-thread-termination.cc.
References TryCatch::CanContinue(), CHECK, Script::Compile(), TryCatch::Exception(), FunctionCallbackInfo< T >::GetIsolate(), TryCatch::HasCaught(), V8::IsExecutionTerminating(), TryCatch::Message(), and String::NewFromUtf8().
Referenced by TEST().
void Fail | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 47 of file test-thread-termination.cc.
References CHECK.
Referenced by CreateGlobalTemplate(), and TEST().
void Loop | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 52 of file test-thread-termination.cc.
References CHECK, Script::Compile(), FunctionCallbackInfo< T >::GetIsolate(), V8::IsExecutionTerminating(), and String::NewFromUtf8().
Referenced by CreateGlobalTemplate().
void LoopGetProperty | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 218 of file test-thread-termination.cc.
References TryCatch::CanContinue(), CHECK, Script::Compile(), TryCatch::Exception(), FunctionCallbackInfo< T >::GetIsolate(), TryCatch::HasCaught(), V8::IsExecutionTerminating(), TryCatch::Message(), and String::NewFromUtf8().
Referenced by TEST().
void ReenterAfterTermination | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 272 of file test-thread-termination.cc.
References TryCatch::CanContinue(), CHECK, Script::Compile(), TryCatch::Exception(), FunctionCallbackInfo< T >::GetIsolate(), TryCatch::HasCaught(), V8::IsExecutionTerminating(), TryCatch::Message(), and String::NewFromUtf8().
Referenced by TEST().
void Signal | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 36 of file test-thread-termination.cc.
References semaphore.
Referenced by TEST().
void TerminateCurrentThread | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 41 of file test-thread-termination.cc.
References CHECK, FunctionCallbackInfo< T >::GetIsolate(), V8::IsExecutionTerminating(), and V8::TerminateExecution().
Referenced by TEST().
void TerminateOrReturnObject | ( | const v8::FunctionCallbackInfo< v8::Value > & | args | ) |
Definition at line 205 of file test-thread-termination.cc.
References call_count, CHECK, FunctionCallbackInfo< T >::GetIsolate(), FunctionCallbackInfo< T >::GetReturnValue(), V8::IsExecutionTerminating(), Integer::New(), Object::New(), String::NewFromUtf8(), Object::Set(), and V8::TerminateExecution().
Referenced by TEST().
TEST | ( | TerminateOnlyV8ThreadFromThreadItself | ) |
Definition at line 123 of file test-thread-termination.cc.
References CHECK, Script::Compile(), CreateGlobalTemplate(), DoLoop(), V8::IsExecutionTerminating(), CcTest::isolate(), Context::New(), String::NewFromUtf8(), NULL, and TerminateCurrentThread().
TEST | ( | TerminateOnlyV8ThreadFromThreadItselfNoLoop | ) |
Definition at line 143 of file test-thread-termination.cc.
References CHECK, Script::Compile(), CreateGlobalTemplate(), DoLoopNoCall(), V8::IsExecutionTerminating(), CcTest::isolate(), Context::New(), String::NewFromUtf8(), NULL, and TerminateCurrentThread().
TEST | ( | TerminateOnlyV8ThreadFromOtherThread | ) |
Definition at line 179 of file test-thread-termination.cc.
References CHECK, Script::Compile(), CreateGlobalTemplate(), DoLoop(), CcTest::i_isolate(), V8::IsExecutionTerminating(), CcTest::isolate(), Thread::Join(), Context::New(), String::NewFromUtf8(), NULL, semaphore, Signal(), and Thread::Start().
TEST | ( | TerminateLoadICException | ) |
Definition at line 244 of file test-thread-termination.cc.
References call_count, CHECK, Script::Compile(), Fail(), V8::IsExecutionTerminating(), CcTest::isolate(), LoopGetProperty(), FunctionTemplate::New(), ObjectTemplate::New(), Context::New(), String::NewFromUtf8(), NULL, Template::Set(), and TerminateOrReturnObject().
TEST | ( | TerminateAndReenterFromThreadItself | ) |
Definition at line 302 of file test-thread-termination.cc.
References CHECK, Script::Compile(), CreateGlobalTemplate(), V8::IsExecutionTerminating(), CcTest::isolate(), Context::New(), String::NewFromUtf8(), NULL, ReenterAfterTermination(), and TerminateCurrentThread().
TEST | ( | TerminateCancelTerminateFromThreadItself | ) |
Definition at line 348 of file test-thread-termination.cc.
References CHECK, Script::Compile(), CreateGlobalTemplate(), DoLoopCancelTerminate(), V8::IsExecutionTerminating(), CcTest::isolate(), Context::New(), String::NewFromUtf8(), NULL, and TerminateCurrentThread().
int call_count = 0 |
Definition at line 202 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 TerminatorThread::Run(), Signal(), and TEST().