Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index cdb23b4655d6b2caadde4a9bd16f45d99902e4fd..fa4eb135c84f8bb4647079c08a45a5758eaac9aa 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -4682,10 +4682,12 @@ class V8_EXPORT ResourceConstraints { |
* device, in bytes. |
* \param virtual_memory_limit The amount of virtual memory on the current |
* device, in bytes, or zero, if there is no limit. |
- * \param number_of_processors The number of CPUs available on the current |
- * device. |
*/ |
void ConfigureDefaults(uint64_t physical_memory, |
+ uint64_t virtual_memory_limit); |
+ |
+ // Deprecated, will be removed soon. |
+ void ConfigureDefaults(uint64_t physical_memory, |
uint64_t virtual_memory_limit, |
uint32_t number_of_processors); |
@@ -4698,9 +4700,13 @@ class V8_EXPORT ResourceConstraints { |
uint32_t* stack_limit() const { return stack_limit_; } |
// Sets an address beyond which the VM's stack may not grow. |
void set_stack_limit(uint32_t* value) { stack_limit_ = value; } |
- int max_available_threads() const { return max_available_threads_; } |
+ V8_DEPRECATE_SOON("Unused, will be removed", |
+ int max_available_threads() const) { |
+ return max_available_threads_; |
+ } |
// Set the number of threads available to V8, assuming at least 1. |
- void set_max_available_threads(int value) { |
+ V8_DEPRECATE_SOON("Unused, will be removed", |
+ void set_max_available_threads(int value)) { |
max_available_threads_ = value; |
} |
size_t code_range_size() const { return code_range_size_; } |