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()
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)
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 use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra 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 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL
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)