v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 3985 | skipping to change at line 3985 | |||
private: | private: | |||
Isolate* const isolate_; | Isolate* const isolate_; | |||
// Prevent copying of Scope objects. | // Prevent copying of Scope objects. | |||
Scope(const Scope&); | Scope(const Scope&); | |||
Scope& operator=(const Scope&); | Scope& operator=(const Scope&); | |||
}; | }; | |||
/** | /** | |||
* Assert that no Javascript code is invoked. | ||||
*/ | ||||
class DisallowJavascriptExecutionScope { | ||||
public: | ||||
enum OnFailure { CRASH_ON_FAILURE, THROW_ON_FAILURE }; | ||||
explicit DisallowJavascriptExecutionScope(Isolate* isolate, | ||||
OnFailure on_failure); | ||||
~DisallowJavascriptExecutionScope(); | ||||
private: | ||||
bool on_failure_; | ||||
void* internal_; | ||||
// Prevent copying of Scope objects. | ||||
DisallowJavascriptExecutionScope(const DisallowJavascriptExecutionScope | ||||
&); | ||||
DisallowJavascriptExecutionScope& operator=( | ||||
const DisallowJavascriptExecutionScope&); | ||||
}; | ||||
/** | ||||
* Introduce exception to DisallowJavascriptExecutionScope. | ||||
*/ | ||||
class AllowJavascriptExecutionScope { | ||||
public: | ||||
explicit AllowJavascriptExecutionScope(Isolate* isolate); | ||||
~AllowJavascriptExecutionScope(); | ||||
private: | ||||
void* internal_throws_; | ||||
void* internal_assert_; | ||||
// Prevent copying of Scope objects. | ||||
AllowJavascriptExecutionScope(const AllowJavascriptExecutionScope&); | ||||
AllowJavascriptExecutionScope& operator=( | ||||
const AllowJavascriptExecutionScope&); | ||||
}; | ||||
/** | ||||
* Types of garbage collections that can be requested via | * Types of garbage collections that can be requested via | |||
* RequestGarbageCollectionForTesting. | * RequestGarbageCollectionForTesting. | |||
*/ | */ | |||
enum GarbageCollectionType { | enum GarbageCollectionType { | |||
kFullGarbageCollection, | kFullGarbageCollection, | |||
kMinorGarbageCollection | kMinorGarbageCollection | |||
}; | }; | |||
/** | /** | |||
* Creates a new isolate. Does not change the currently entered | * Creates a new isolate. Does not change the currently entered | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 40 lines changed or added | |||