Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 4f5a8fd0bd855c85f3920319d4e93b7aa5fc5523..e133ded014fcf58b1f00a277c00a203ebab5972a 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -4070,6 +4070,32 @@ class V8_EXPORT Isolate { |
Scope& operator=(const Scope&); |
}; |
+ |
+ /** |
+ * Assert that no Javascript code is invoked. |
+ */ |
+ class DisallowJavascriptExecutionScope { |
+ public: |
+ explicit DisallowJavascriptExecutionScope(Isolate* isolate); |
+ ~DisallowJavascriptExecutionScope(); |
+ |
+ private: |
+ void* internal_; |
+ }; |
jochen (gone - plz use gerrit)
2014/03/19 11:13:16
can you add copy and assign declarations? (like in
|
+ |
+ |
+ /** |
+ * Introduce exception to DisallowJavascriptExecutionScope. |
+ */ |
+ class AllowJavascriptExecutionScope { |
+ public: |
+ explicit AllowJavascriptExecutionScope(Isolate* isolate); |
+ ~AllowJavascriptExecutionScope(); |
+ |
+ private: |
+ void* internal_; |
+ }; |
+ |
/** |
* Types of garbage collections that can be requested via |
* RequestGarbageCollectionForTesting. |