diff options
Diffstat (limited to 'deps/v8/src/isolate.h')
-rw-r--r-- | deps/v8/src/isolate.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/deps/v8/src/isolate.h b/deps/v8/src/isolate.h index 927ad0e0fb..71d86f4ac0 100644 --- a/deps/v8/src/isolate.h +++ b/deps/v8/src/isolate.h @@ -85,7 +85,7 @@ class SweeperThread; class ThreadManager; class ThreadState; class ThreadVisitor; // Defined in v8threads.h -class VMState; +template <StateTag Tag> class VMState; // 'void function pointer', used to roundtrip the // ExternalReference::ExternalReferenceRedirector since we can not include @@ -783,6 +783,7 @@ class Isolate { // Out of resource exception helpers. Failure* StackOverflow(); Failure* TerminateExecution(); + void CancelTerminateExecution(); // Administration void Iterate(ObjectVisitor* v); @@ -990,9 +991,9 @@ class Isolate { int* code_kind_statistics() { return code_kind_statistics_; } - bool AllowHandleDereference(); + HandleDereferenceGuard::State HandleDereferenceGuardState(); - void SetAllowHandleDereference(bool allow); + void SetHandleDereferenceGuardState(HandleDereferenceGuard::State state); #endif #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \ @@ -1030,7 +1031,7 @@ class Isolate { return thread_local_top_.current_vm_state_; } - void SetCurrentVMState(StateTag state) { + void set_current_vm_state(StateTag state) { thread_local_top_.current_vm_state_ = state; } @@ -1073,6 +1074,10 @@ class Isolate { void LinkDeferredHandles(DeferredHandles* deferred_handles); void UnlinkDeferredHandles(DeferredHandles* deferred_handles); +#ifdef DEBUG + bool IsDeferredHandle(Object** location); +#endif // DEBUG + OptimizingCompilerThread* optimizing_compiler_thread() { return &optimizing_compiler_thread_; } @@ -1291,8 +1296,8 @@ class Isolate { JSObject::SpillInformation js_spill_information_; int code_kind_statistics_[Code::NUMBER_OF_KINDS]; - bool allow_compiler_thread_handle_deref_; - bool allow_execution_thread_handle_deref_; + HandleDereferenceGuard::State compiler_thread_handle_deref_state_; + HandleDereferenceGuard::State execution_thread_handle_deref_state_; #endif #ifdef ENABLE_DEBUGGER_SUPPORT |