v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test-thread-termination.cc File Reference
#include "v8.h"
#include "platform.h"
#include "cctest.h"
Include dependency graph for test-thread-termination.cc:

Go to the source code of this file.

Data Structures

class  TerminatorThread
 

Functions

void Signal (const v8::FunctionCallbackInfo< v8::Value > &args)
 
void TerminateCurrentThread (const v8::FunctionCallbackInfo< v8::Value > &args)
 
void Fail (const v8::FunctionCallbackInfo< v8::Value > &args)
 
void Loop (const v8::FunctionCallbackInfo< v8::Value > &args)
 
void DoLoop (const v8::FunctionCallbackInfo< v8::Value > &args)
 
void DoLoopNoCall (const v8::FunctionCallbackInfo< v8::Value > &args)
 
v8::Handle< v8::ObjectTemplateCreateGlobalTemplate (v8::Isolate *isolate, v8::FunctionCallback terminate, v8::FunctionCallback doloop)
 
 TEST (TerminateOnlyV8ThreadFromThreadItself)
 
 TEST (TerminateOnlyV8ThreadFromThreadItselfNoLoop)
 
 TEST (TerminateOnlyV8ThreadFromOtherThread)
 
void TerminateOrReturnObject (const v8::FunctionCallbackInfo< v8::Value > &args)
 
void LoopGetProperty (const v8::FunctionCallbackInfo< v8::Value > &args)
 
 TEST (TerminateLoadICException)
 
void ReenterAfterTermination (const v8::FunctionCallbackInfo< v8::Value > &args)
 
 TEST (TerminateAndReenterFromThreadItself)
 
void DoLoopCancelTerminate (const v8::FunctionCallbackInfo< v8::Value > &args)
 
 TEST (TerminateCancelTerminateFromThreadItself)
 

Variables

v8::internal::Semaphore * semaphore = NULL
 
int call_count = 0
 

Function Documentation

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 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)

Variable Documentation

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().