| Index: include/v8-defaults.h
|
| diff --git a/include/v8-defaults.h b/include/v8-defaults.h
|
| index 381a48210d1b9895fbda4e4c89eb0e51fa61b6d0..e0802fcb59300a95a807d9693d3d095cd78270a1 100644
|
| --- a/include/v8-defaults.h
|
| +++ b/include/v8-defaults.h
|
| @@ -38,16 +38,22 @@ namespace v8 {
|
| /**
|
| * Configures the constraints with reasonable default values based on the
|
| * capabilities of the current device the VM is running on.
|
| + *
|
| + * \param constraints The constraints object to update
|
| + * \param physical_memory The total amount of physical memory on the current
|
| + * device, in bytes.
|
| */
|
| -bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
|
| - ResourceConstraints* constraints);
|
| +bool V8_EXPORT ConfigureDefaultResourceConstraints(
|
| + ResourceConstraints* constraints, uint64_t physical_memory);
|
|
|
|
|
| -/**
|
| - * Convience function which performs SetResourceConstraints with the settings
|
| - * returned by ConfigureResourceConstraintsForCurrentPlatform.
|
| - */
|
| -bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform();
|
| +V8_DEPRECATED("Use ConfigureDefaultResourceConstraints instead",
|
| + bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
|
| + ResourceConstraints* constraints));
|
| +
|
| +
|
| +V8_DEPRECATED("Use ConfigureDefaultResourceConstraints instead",
|
| + bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform());
|
|
|
| } // namespace v8
|
|
|
|
|