[api] Advance legacy ArrayBuffer API deprecation

Bug: v8:9380
Change-Id: I31d825265d283627406d4b976c8ab067eb7d2c06
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2154798
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72656}
This commit is contained in:
Ulan Degenbaev 2020-04-20 13:37:50 +02:00 committed by Commit Bot
parent 04b0203593
commit b1c36b2305

View File

@ -5404,7 +5404,7 @@ class V8_EXPORT ArrayBuffer : public Object {
* |Allocator::Free| once all ArrayBuffers referencing it are collected by
* the garbage collector.
*/
V8_DEPRECATE_SOON(
V8_DEPRECATED(
"Use the version that takes a BackingStore. "
"See http://crbug.com/v8/9908.")
static Local<ArrayBuffer> New(
@ -5453,7 +5453,7 @@ class V8_EXPORT ArrayBuffer : public Object {
* Returns true if ArrayBuffer is externalized, that is, does not
* own its memory block.
*/
V8_DEPRECATE_SOON(
V8_DEPRECATED(
"With v8::BackingStore externalized ArrayBuffers are "
"the same as ordinary ArrayBuffers. See http://crbug.com/v8/9908.")
bool IsExternal() const;
@ -5481,8 +5481,7 @@ class V8_EXPORT ArrayBuffer : public Object {
* deleter, which will call ArrayBuffer::Allocator::Free if the buffer
* was allocated with ArrayBuffer::Allocator::Allocate.
*/
V8_DEPRECATE_SOON(
"Use GetBackingStore or Detach. See http://crbug.com/v8/9908.")
V8_DEPRECATED("Use GetBackingStore or Detach. See http://crbug.com/v8/9908.")
Contents Externalize();
/**
@ -5492,7 +5491,7 @@ class V8_EXPORT ArrayBuffer : public Object {
* With the new lifetime management of backing stores there is no need for
* externalizing, so this function exists only to make the transition easier.
*/
V8_DEPRECATE_SOON("This will be removed together with IsExternal.")
V8_DEPRECATED("This will be removed together with IsExternal.")
void Externalize(const std::shared_ptr<BackingStore>& backing_store);
/**
@ -5503,7 +5502,7 @@ class V8_EXPORT ArrayBuffer : public Object {
* The embedder should make sure to hold a strong reference to the
* ArrayBuffer while accessing this pointer.
*/
V8_DEPRECATE_SOON("Use GetBackingStore. See http://crbug.com/v8/9908.")
V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.")
Contents GetContents();
/**
@ -5887,7 +5886,7 @@ class V8_EXPORT SharedArrayBuffer : public Object {
* specified. The memory block will not be reclaimed when a created
* SharedArrayBuffer is garbage-collected.
*/
V8_DEPRECATE_SOON(
V8_DEPRECATED(
"Use the version that takes a BackingStore. "
"See http://crbug.com/v8/9908.")
static Local<SharedArrayBuffer> New(
@ -5947,7 +5946,7 @@ class V8_EXPORT SharedArrayBuffer : public Object {
* Returns true if SharedArrayBuffer is externalized, that is, does not
* own its memory block.
*/
V8_DEPRECATE_SOON(
V8_DEPRECATED(
"With v8::BackingStore externalized SharedArrayBuffers are the same "
"as ordinary SharedArrayBuffers. See http://crbug.com/v8/9908.")
bool IsExternal() const;
@ -5964,8 +5963,7 @@ class V8_EXPORT SharedArrayBuffer : public Object {
* v8::Isolate::CreateParams::array_buffer_allocator.
*
*/
V8_DEPRECATE_SOON(
"Use GetBackingStore or Detach. See http://crbug.com/v8/9908.")
V8_DEPRECATED("Use GetBackingStore or Detach. See http://crbug.com/v8/9908.")
Contents Externalize();
/**
@ -5975,7 +5973,7 @@ class V8_EXPORT SharedArrayBuffer : public Object {
* With the new lifetime management of backing stores there is no need for
* externalizing, so this function exists only to make the transition easier.
*/
V8_DEPRECATE_SOON("This will be removed together with IsExternal.")
V8_DEPRECATED("This will be removed together with IsExternal.")
void Externalize(const std::shared_ptr<BackingStore>& backing_store);
/**
@ -5990,7 +5988,7 @@ class V8_EXPORT SharedArrayBuffer : public Object {
* by the allocator specified in
* v8::Isolate::CreateParams::array_buffer_allocator.
*/
V8_DEPRECATE_SOON("Use GetBackingStore. See http://crbug.com/v8/9908.")
V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.")
Contents GetContents();
/**