Commit 3ec883d2 authored by Dan Elphick's avatar Dan Elphick Committed by Commit Bot

[cleanup] Mark functions unused in chrome as V8_DEPRECATED

Change the following functions from V8_DEPRECATE_SOON to V8_DEPRECATED:
JSON::Parse
ValueSerializer::ReleaseBuffer,TransferSharedArrayBuffer
Date::New
ResourceConstraints::max_semi_space_size, set_max_semi_spaceisize,
max_executable_size, set_max_executable_size

Bug: v8:8015, v8:7269
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: I2724738809fe1db28dbe279d476ac6fdf72ee5fa
Reviewed-on: https://chromium-review.googlesource.com/1235915Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56119}
parent 649db6b8
......@@ -1838,7 +1838,7 @@ class V8_EXPORT JSON {
* \param json_string The string to parse.
* \return The corresponding value if successfully parsed.
*/
static V8_DEPRECATE_SOON("Use the maybe version taking context",
static V8_DEPRECATED("Use the maybe version taking context",
MaybeLocal<Value> Parse(Isolate* isolate,
Local<String> json_string));
static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse(
......@@ -1940,7 +1940,7 @@ class V8_EXPORT ValueSerializer {
* Returns the stored data. This serializer should not be used once the buffer
* is released. The contents are undefined if a previous write has failed.
*/
V8_DEPRECATE_SOON("Use Release()", std::vector<uint8_t> ReleaseBuffer());
V8_DEPRECATED("Use Release()", std::vector<uint8_t> ReleaseBuffer());
/**
* Returns the stored data (allocated using the delegate's
......@@ -1961,7 +1961,7 @@ class V8_EXPORT ValueSerializer {
/**
* Similar to TransferArrayBuffer, but for SharedArrayBuffer.
*/
V8_DEPRECATE_SOON("Use Delegate::GetSharedArrayBufferId",
V8_DEPRECATED("Use Delegate::GetSharedArrayBufferId",
void TransferSharedArrayBuffer(
uint32_t transfer_id,
Local<SharedArrayBuffer> shared_array_buffer));
......@@ -5040,7 +5040,7 @@ class V8_EXPORT SharedArrayBuffer : public Object {
*/
class V8_EXPORT Date : public Object {
public:
static V8_DEPRECATE_SOON("Use maybe version.",
static V8_DEPRECATED("Use maybe version.",
Local<Value> New(Isolate* isolate, double time));
static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
double time);
......@@ -6302,13 +6302,13 @@ class V8_EXPORT ResourceConstraints {
uint64_t virtual_memory_limit);
// Returns the max semi-space size in MB.
V8_DEPRECATE_SOON("Use max_semi_space_size_in_kb()",
V8_DEPRECATED("Use max_semi_space_size_in_kb()",
size_t max_semi_space_size()) {
return max_semi_space_size_in_kb_ / 1024;
}
// Sets the max semi-space size in MB.
V8_DEPRECATE_SOON("Use set_max_semi_space_size_in_kb(size_t limit_in_kb)",
V8_DEPRECATED("Use set_max_semi_space_size_in_kb(size_t limit_in_kb)",
void set_max_semi_space_size(size_t limit_in_mb)) {
max_semi_space_size_in_kb_ = limit_in_mb * 1024;
}
......@@ -6327,11 +6327,11 @@ class V8_EXPORT ResourceConstraints {
void set_max_old_space_size(size_t limit_in_mb) {
max_old_space_size_ = limit_in_mb;
}
V8_DEPRECATE_SOON("max_executable_size_ is subsumed by max_old_space_size_",
V8_DEPRECATED("max_executable_size_ is subsumed by max_old_space_size_",
size_t max_executable_size() const) {
return max_executable_size_;
}
V8_DEPRECATE_SOON("max_executable_size_ is subsumed by max_old_space_size_",
V8_DEPRECATED("max_executable_size_ is subsumed by max_old_space_size_",
void set_max_executable_size(size_t limit_in_mb)) {
max_executable_size_ = limit_in_mb;
}
......
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