| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index f8ef7c1fc4b66cfc532f61505f150d01d9b60a86..d6678c57c5a03ab1eb3e7a937dc1be3a6cc45dcc 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -3803,6 +3803,16 @@ V8_INLINE Handle<Boolean> False(Isolate* isolate);
|
| class V8_EXPORT ResourceConstraints {
|
| public:
|
| ResourceConstraints();
|
| +
|
| + /**
|
| + * Configures the constraints with reasonable default values based on the
|
| + * capabilities of the current device the VM is running on.
|
| + *
|
| + * \param physical_memory The total amount of physical memory on the current
|
| + * device, in bytes.
|
| + */
|
| + void ConfigureDefaults(uint64_t physical_memory);
|
| +
|
| int max_young_space_size() const { return max_young_space_size_; }
|
| void set_max_young_space_size(int value) { max_young_space_size_ = value; }
|
| int max_old_space_size() const { return max_old_space_size_; }
|
|
|