5 #ifndef V8_ASSERT_SCOPE_H_
6 #define V8_ASSERT_SCOPE_H_
16 class PerThreadAssertData;
38 template <PerThreadAssertType kType,
bool kAllow>
54 template <PerIsolateAssertType type,
bool allow>
72 template <PerThreadAssertType type,
bool allow>
84 template <PerIsolateAssertType type,
bool allow>
86 class PerIsolateAssertScopeDebugOnly :
public
87 PerIsolateAssertScope<type, allow> {
89 explicit PerIsolateAssertScopeDebugOnly(
Isolate* isolate)
90 : PerIsolateAssertScope<type, allow>(isolate) { }
101 typedef PerThreadAssertScopeDebugOnly<HANDLE_ALLOCATION_ASSERT, false>
Isolate represents an isolated instance of the V8 engine.
PerIsolateAssertScopeDebugOnly(Isolate *isolate)
static bool IsAllowed(Isolate *isolate)
DISALLOW_COPY_AND_ASSIGN(PerIsolateAssertScope)
PerIsolateAssertScope(Isolate *isolate)
PerThreadAssertScopeDebugOnly()
DISALLOW_COPY_AND_ASSIGN(PerThreadAssertScope)
PerThreadAssertData * data_
PerThreadAssertScopeDebugOnly< HANDLE_ALLOCATION_ASSERT, true > AllowHandleAllocation
PerThreadAssertScopeDebugOnly< DEFERRED_HANDLE_DEREFERENCE_ASSERT, false > DisallowDeferredHandleDereference
PerThreadAssertScopeDebugOnly< CODE_DEPENDENCY_CHANGE_ASSERT, false > DisallowCodeDependencyChange
PerThreadAssertScopeDebugOnly< HEAP_ALLOCATION_ASSERT, false > DisallowHeapAllocation
PerIsolateAssertScope< JAVASCRIPT_EXECUTION_ASSERT, true > AllowJavascriptExecution
PerIsolateAssertScopeDebugOnly< DEOPTIMIZATION_ASSERT, false > DisallowDeoptimization
PerThreadAssertScopeDebugOnly< HEAP_ALLOCATION_ASSERT, true > AllowHeapAllocation
PerThreadAssertScopeDebugOnly< HANDLE_DEREFERENCE_ASSERT, true > AllowHandleDereference
@ CODE_DEPENDENCY_CHANGE_ASSERT
@ DEFERRED_HANDLE_DEREFERENCE_ASSERT
@ LAST_PER_THREAD_ASSERT_TYPE
@ HANDLE_ALLOCATION_ASSERT
@ HANDLE_DEREFERENCE_ASSERT
PerIsolateAssertScope< JAVASCRIPT_EXECUTION_THROWS, false > ThrowOnJavascriptExecution
PerIsolateAssertScopeDebugOnly< ALLOCATION_FAILURE_ASSERT, false > DisallowAllocationFailure
PerThreadAssertScopeDebugOnly< CODE_DEPENDENCY_CHANGE_ASSERT, true > AllowCodeDependencyChange
PerIsolateAssertScope< JAVASCRIPT_EXECUTION_ASSERT, false > DisallowJavascriptExecution
@ JAVASCRIPT_EXECUTION_THROWS
@ JAVASCRIPT_EXECUTION_ASSERT
@ ALLOCATION_FAILURE_ASSERT
PerIsolateAssertScopeDebugOnly< COMPILATION_ASSERT, false > DisallowCompilation
PerThreadAssertScopeDebugOnly< HANDLE_DEREFERENCE_ASSERT, false > DisallowHandleDereference
PerIsolateAssertScopeDebugOnly< ALLOCATION_FAILURE_ASSERT, true > AllowAllocationFailure
PerIsolateAssertScopeDebugOnly< COMPILATION_ASSERT, true > AllowCompilation
PerThreadAssertScopeDebugOnly< HANDLE_ALLOCATION_ASSERT, false > DisallowHandleAllocation
PerIsolateAssertScopeDebugOnly< DEOPTIMIZATION_ASSERT, true > AllowDeoptimization
PerIsolateAssertScope< JAVASCRIPT_EXECUTION_THROWS, true > NoThrowOnJavascriptExecution
PerThreadAssertScopeDebugOnly< DEFERRED_HANDLE_DEREFERENCE_ASSERT, true > AllowDeferredHandleDereference
Debugger support for the V8 JavaScript engine.