| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 79f4478ea6f626ff297314b4ed227d5dc088abed..3b03d1b2c8f895f3f592237fe7f73e9b5d25b8ea 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -3762,9 +3762,27 @@ class V8_EXPORT ResourceConstraints {
|
| };
|
|
|
|
|
| +/**
|
| + * Sets the given ResourceConstraints on the current isolate.
|
| + */
|
| bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints);
|
|
|
|
|
| +/**
|
| + * Configures the constraints with reasonable default values based on the
|
| + * capabilities of the current device the VM is running on.
|
| + */
|
| +bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
|
| + ResourceConstraints* constraints);
|
| +
|
| +
|
| +/**
|
| + * Convience function which performs SetResourceConstraints with the settings
|
| + * returned by ConfigureResourceConstraintsForCurrentPlatform.
|
| + */
|
| +bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform();
|
| +
|
| +
|
| // --- Exceptions ---
|
|
|
|
|
|
|