Commit add71827 authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[api] Advance deprecation of ResourceConstraints API methods

V8_DEPRECATE_SOON happened in v7.7

Bug: v8:9306
Change-Id: I652b494c88534e531c2bef3a1417bfb18c594e85
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2450065Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70340}
parent af118269
......@@ -7171,25 +7171,25 @@ class V8_EXPORT ResourceConstraints {
/**
* Deprecated functions. Do not use in new code.
*/
V8_DEPRECATE_SOON("Use code_range_size_in_bytes.")
V8_DEPRECATED("Use code_range_size_in_bytes.")
size_t code_range_size() const { return code_range_size_ / kMB; }
V8_DEPRECATE_SOON("Use set_code_range_size_in_bytes.")
V8_DEPRECATED("Use set_code_range_size_in_bytes.")
void set_code_range_size(size_t limit_in_mb) {
code_range_size_ = limit_in_mb * kMB;
}
V8_DEPRECATE_SOON("Use max_young_generation_size_in_bytes.")
V8_DEPRECATED("Use max_young_generation_size_in_bytes.")
size_t max_semi_space_size_in_kb() const;
V8_DEPRECATE_SOON("Use set_max_young_generation_size_in_bytes.")
V8_DEPRECATED("Use set_max_young_generation_size_in_bytes.")
void set_max_semi_space_size_in_kb(size_t limit_in_kb);
V8_DEPRECATE_SOON("Use max_old_generation_size_in_bytes.")
V8_DEPRECATED("Use max_old_generation_size_in_bytes.")
size_t max_old_space_size() const { return max_old_generation_size_ / kMB; }
V8_DEPRECATE_SOON("Use set_max_old_generation_size_in_bytes.")
V8_DEPRECATED("Use set_max_old_generation_size_in_bytes.")
void set_max_old_space_size(size_t limit_in_mb) {
max_old_generation_size_ = limit_in_mb * kMB;
}
V8_DEPRECATE_SOON("Zone does not pool memory any more.")
V8_DEPRECATED("Zone does not pool memory any more.")
size_t max_zone_pool_size() const { return max_zone_pool_size_; }
V8_DEPRECATE_SOON("Zone does not pool memory any more.")
V8_DEPRECATED("Zone does not pool memory any more.")
void set_max_zone_pool_size(size_t bytes) { max_zone_pool_size_ = bytes; }
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment