55 args.
GetIsolate(),
"try { doloop(); fail(); } catch(e) { fail(); }");
57 CHECK(result.IsEmpty());
70 " if (term) terminate();"
93 " if (term) terminate();"
123 TEST(TerminateOnlyV8ThreadFromThreadItself) {
143 TEST(TerminateOnlyV8ThreadFromThreadItselfNoLoop) {
164 :
Thread(
"TerminatorThread"),
165 isolate_(reinterpret_cast<v8::Isolate*>(isolate)) { }
179 TEST(TerminateOnlyV8ThreadFromOtherThread) {
180 semaphore =
new v8::internal::Semaphore(0);
226 " terminate_or_return_object().x;"
244 TEST(TerminateLoadICException) {
262 isolate,
"try { loop(); fail(); } catch(e) { fail(); }");
280 " if (term) terminate();"
295 "function f() { fail(); } f()"))
302 TEST(TerminateAndReenterFromThreadItself) {
312 isolate,
"try { loop(); fail(); } catch(e) { fail(); }");
318 "function f() { return true; }"
331 " if (term) terminate();"
348 TEST(TerminateCancelTerminateFromThreadItself) {
357 isolate,
"try { doloop(); } catch(e) { fail(); } 'completed';");
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter NULL
void Fail(const v8::FunctionCallbackInfo< v8::Value > &args)
TerminatorThread(i::Isolate *isolate)
static bool IsExecutionTerminating(Isolate *isolate=NULL)
void Signal(const v8::FunctionCallbackInfo< v8::Value > &args)
Thread(const Options &options)
Local< Value > Exception() const
static void CancelTerminateExecution(Isolate *isolate)
void(* FunctionCallback)(const FunctionCallbackInfo< Value > &info)
V8_INLINE Isolate * GetIsolate() const
V8_INLINE ReturnValue< T > GetReturnValue() const
static Local< Integer > New(Isolate *isolate, int32_t value)
void Set(Handle< String > name, Handle< Data > value, PropertyAttribute attributes=None)
bool HasTerminated() const
static void TerminateExecution(Isolate *isolate=NULL)
static Local< ObjectTemplate > New()
void DoLoopNoCall(const v8::FunctionCallbackInfo< v8::Value > &args)
static Local< FunctionTemplate > New(Isolate *isolate, FunctionCallback callback=0, Handle< Value > data=Handle< Value >(), Handle< Signature > signature=Handle< Signature >(), int length=0)
void TerminateCurrentThread(const v8::FunctionCallbackInfo< v8::Value > &args)
static Local< Script > Compile(Handle< String > source, ScriptOrigin *origin=NULL, ScriptData *script_data=NULL)
static i::Isolate * i_isolate()
v8::Handle< v8::ObjectTemplate > CreateGlobalTemplate(v8::Isolate *isolate, v8::FunctionCallback terminate, v8::FunctionCallback doloop)
static Local< Object > New(Isolate *isolate)
static Local< Context > New(Isolate *isolate, ExtensionConfiguration *extensions=NULL, Handle< ObjectTemplate > global_template=Handle< ObjectTemplate >(), Handle< Value > global_object=Handle< Value >())
void Loop(const v8::FunctionCallbackInfo< v8::Value > &args)
void DoLoopCancelTerminate(const v8::FunctionCallbackInfo< v8::Value > &args)
void LoopGetProperty(const v8::FunctionCallbackInfo< v8::Value > &args)
void TerminateOrReturnObject(const v8::FunctionCallbackInfo< v8::Value > &args)
void DoLoop(const v8::FunctionCallbackInfo< v8::Value > &args)
TEST(TerminateOnlyV8ThreadFromThreadItself)
Local< v8::Message > Message() const
v8::internal::Semaphore * semaphore
void ReenterAfterTermination(const v8::FunctionCallbackInfo< v8::Value > &args)
bool Set(Handle< Value > key, Handle< Value > value, PropertyAttribute attribs=None)
static v8::Isolate * isolate()
static Local< String > NewFromUtf8(Isolate *isolate, const char *data, NewStringType type=kNormalString, int length=-1)