73 " if (term) terminate();"
96 " if (term) terminate();"
123 TEST(TerminateOnlyV8ThreadFromThreadItself) {
143 TEST(TerminateOnlyV8ThreadFromThreadItselfNoLoop) {
164 :
Thread(
"TerminatorThread"),
165 isolate_(reinterpret_cast<v8::Isolate*>(isolate)) { }
179 TEST(TerminateOnlyV8ThreadFromOtherThread) {
229 TEST(TerminateMultipleV8ThreadsDefaultIsolate) {
236 const int kThreads = 2;
238 for (
int i = 0; i < kThreads; i++) {
241 for (
int i = 0; i < kThreads; i++) {
245 for (
int i = 0; i < kThreads; i++) {
250 for (
int i = 0; i < kThreads; i++) {
254 for (
int i = 0; i < kThreads; i++) {
289 " terminate_or_return_object().x;"
308 TEST(TerminateLoadICException) {
339 " if (term) terminate();"
359 TEST(TerminateAndReenterFromThreadItself) {
372 "f()"))->Run()->IsTrue());
static Local< Script > Compile(Handle< String > source, ScriptOrigin *origin=NULL, ScriptData *pre_data=NULL, Handle< String > script_data=Handle< String >())
TerminatorThread(i::Isolate *isolate)
static bool IsExecutionTerminating(Isolate *isolate=NULL)
v8::Handle< v8::Value > Fail(const v8::Arguments &args)
static Local< FunctionTemplate > New(InvocationCallback callback=0, Handle< Value > data=Handle< Value >(), Handle< Signature > signature=Handle< Signature >())
Thread(const Options &options)
v8::Handle< v8::Value > TerminateOrReturnObject(const v8::Arguments &args)
Local< Value > Exception() const
v8::Handle< v8::Value > TerminateCurrentThread(const v8::Arguments &args)
v8::Handle< v8::Value > DoLoopNoCall(const v8::Arguments &args)
static V8EXPORT Local< String > New(const char *data, int length=-1)
v8::Handle< v8::Value > ReenterAfterTermination(const v8::Arguments &args)
v8::Handle< v8::ObjectTemplate > CreateGlobalTemplate(v8::InvocationCallback terminate, v8::InvocationCallback doloop)
void Set(Handle< String > name, Handle< Data > value, PropertyAttribute attributes=None)
v8::Handle< v8::Value > DoLoop(const v8::Arguments &args)
Handle< Value >(* InvocationCallback)(const Arguments &args)
static Local< ObjectTemplate > New()
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination trace on stack replacement optimize closures functions with arguments object optimize functions containing for in loops profiler considers IC stability primitive functions trigger their own optimization re try self optimization if it failed insert an interrupt check at function exit execution budget before interrupt is triggered call count before self optimization self_optimization count_based_interrupts weighted_back_edges trace_opt emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 enable use of ARMv7 instructions if enable use of MIPS FPU instructions if NULL
static void TerminateExecution(int thread_id)
v8::Handle< v8::Value > LoopGetProperty(const v8::Arguments &args)
static Semaphore * CreateSemaphore(int count)
v8::Handle< v8::Value > Signal(const v8::Arguments &args)
static int GetCurrentThreadId()
v8::Handle< v8::Value > Loop(const v8::Arguments &args)
static V8EXPORT Local< Integer > New(int32_t value)
static void StartPreemption(int every_n_ms)
Handle< Primitive > V8EXPORT Undefined()
void Add(const T &element, AllocationPolicy allocator=AllocationPolicy())
static Persistent< Context > New(ExtensionConfiguration *extensions=NULL, Handle< ObjectTemplate > global_template=Handle< ObjectTemplate >(), Handle< Value > global_object=Handle< Value >())
static void StopPreemption()
TEST(TerminateOnlyV8ThreadFromThreadItself)
Local< v8::Message > Message() const
v8::internal::Semaphore * semaphore
static V8EXPORT Local< Object > New()
V8EXPORT bool Set(Handle< Value > key, Handle< Value > value, PropertyAttribute attribs=None)