| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index ee49ca4349d804a15020c98d5c573012d35f2e7e..fda5627f2304346eb831de6273f2680c245dfdff 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -3604,6 +3604,24 @@ class V8EXPORT PersistentHandleVisitor { // NOLINT
|
|
|
|
|
| /**
|
| + * Asserts that no action is performed that could cause a handle's value
|
| + * to be modified. Useful when otherwise unsafe handle operations need to
|
| + * be performed.
|
| + */
|
| +class V8EXPORT AssertNoGCScope {
|
| +#ifndef DEBUG
|
| + V8_INLINE(AssertNoGCScope(Isolate* isolate)) {}
|
| +#else
|
| + AssertNoGCScope(Isolate* isolate);
|
| + ~AssertNoGCScope();
|
| + private:
|
| + Isolate* isolate_;
|
| + uint8_t data_;
|
| +#endif
|
| +};
|
| +
|
| +
|
| +/**
|
| * Container class for static utility functions.
|
| */
|
| class V8EXPORT V8 {
|
|
|