Commit 25b21167 authored by Adam Klein's avatar Adam Klein Committed by Commit Bot

[api] Advance deprecation for several APIs not called by Chromium

Bug: v8:7269, v8:7276, v8:7291, v8:7297, v8:7298
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
Change-Id: I20770e049171db158973fab7bc58eb819fe2371c
Reviewed-on: https://chromium-review.googlesource.com/865797Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50631}
parent bf4b5b9f
...@@ -3876,8 +3876,8 @@ class V8_EXPORT Promise : public Object { ...@@ -3876,8 +3876,8 @@ class V8_EXPORT Promise : public Object {
/** /**
* Create a new resolver, along with an associated promise in pending state. * Create a new resolver, along with an associated promise in pending state.
*/ */
static V8_DEPRECATE_SOON("Use maybe version", static V8_DEPRECATED("Use maybe version",
Local<Resolver> New(Isolate* isolate)); Local<Resolver> New(Isolate* isolate));
static V8_WARN_UNUSED_RESULT MaybeLocal<Resolver> New( static V8_WARN_UNUSED_RESULT MaybeLocal<Resolver> New(
Local<Context> context); Local<Context> context);
...@@ -3890,11 +3890,11 @@ class V8_EXPORT Promise : public Object { ...@@ -3890,11 +3890,11 @@ class V8_EXPORT Promise : public Object {
* Resolve/reject the associated promise with a given value. * Resolve/reject the associated promise with a given value.
* Ignored if the promise is no longer pending. * Ignored if the promise is no longer pending.
*/ */
V8_DEPRECATE_SOON("Use maybe version", void Resolve(Local<Value> value)); V8_DEPRECATED("Use maybe version", void Resolve(Local<Value> value));
V8_WARN_UNUSED_RESULT Maybe<bool> Resolve(Local<Context> context, V8_WARN_UNUSED_RESULT Maybe<bool> Resolve(Local<Context> context,
Local<Value> value); Local<Value> value);
V8_DEPRECATE_SOON("Use maybe version", void Reject(Local<Value> value)); V8_DEPRECATED("Use maybe version", void Reject(Local<Value> value));
V8_WARN_UNUSED_RESULT Maybe<bool> Reject(Local<Context> context, V8_WARN_UNUSED_RESULT Maybe<bool> Reject(Local<Context> context,
Local<Value> value); Local<Value> value);
...@@ -7224,7 +7224,7 @@ class V8_EXPORT Isolate { ...@@ -7224,7 +7224,7 @@ class V8_EXPORT Isolate {
* context of the top-most JavaScript frame. If there are no * context of the top-most JavaScript frame. If there are no
* JavaScript frames an empty handle is returned. * JavaScript frames an empty handle is returned.
*/ */
V8_DEPRECATE_SOON( V8_DEPRECATED(
"Calling context concept is not compatible with tail calls, and will be " "Calling context concept is not compatible with tail calls, and will be "
"removed.", "removed.",
Local<Context> GetCallingContext()); Local<Context> GetCallingContext());
...@@ -7401,7 +7401,7 @@ class V8_EXPORT Isolate { ...@@ -7401,7 +7401,7 @@ class V8_EXPORT Isolate {
* further callbacks. * further callbacks.
*/ */
void AddCallCompletedCallback(CallCompletedCallback callback); void AddCallCompletedCallback(CallCompletedCallback callback);
V8_DEPRECATE_SOON( V8_DEPRECATED(
"Use callback with parameter", "Use callback with parameter",
void AddCallCompletedCallback(DeprecatedCallCompletedCallback callback)); void AddCallCompletedCallback(DeprecatedCallCompletedCallback callback));
...@@ -7409,10 +7409,9 @@ class V8_EXPORT Isolate { ...@@ -7409,10 +7409,9 @@ class V8_EXPORT Isolate {
* Removes callback that was installed by AddCallCompletedCallback. * Removes callback that was installed by AddCallCompletedCallback.
*/ */
void RemoveCallCompletedCallback(CallCompletedCallback callback); void RemoveCallCompletedCallback(CallCompletedCallback callback);
V8_DEPRECATE_SOON( V8_DEPRECATED("Use callback with parameter",
"Use callback with parameter", void RemoveCallCompletedCallback(
void RemoveCallCompletedCallback( DeprecatedCallCompletedCallback callback));
DeprecatedCallCompletedCallback callback));
/** /**
* Set the PromiseHook callback for various promise lifecycle * Set the PromiseHook callback for various promise lifecycle
...@@ -7446,15 +7445,14 @@ class V8_EXPORT Isolate { ...@@ -7446,15 +7445,14 @@ class V8_EXPORT Isolate {
* Controls how Microtasks are invoked. See MicrotasksPolicy for details. * Controls how Microtasks are invoked. See MicrotasksPolicy for details.
*/ */
void SetMicrotasksPolicy(MicrotasksPolicy policy); void SetMicrotasksPolicy(MicrotasksPolicy policy);
V8_DEPRECATE_SOON("Use SetMicrotasksPolicy", V8_DEPRECATED("Use SetMicrotasksPolicy",
void SetAutorunMicrotasks(bool autorun)); void SetAutorunMicrotasks(bool autorun));
/** /**
* Returns the policy controlling how Microtasks are invoked. * Returns the policy controlling how Microtasks are invoked.
*/ */
MicrotasksPolicy GetMicrotasksPolicy() const; MicrotasksPolicy GetMicrotasksPolicy() const;
V8_DEPRECATE_SOON("Use GetMicrotasksPolicy", V8_DEPRECATED("Use GetMicrotasksPolicy", bool WillAutorunMicrotasks() const);
bool WillAutorunMicrotasks() const);
/** /**
* Adds a callback to notify the host application after * Adds a callback to notify the host application after
...@@ -8264,7 +8262,7 @@ class V8_EXPORT TryCatch { ...@@ -8264,7 +8262,7 @@ class V8_EXPORT TryCatch {
* Returns the .stack property of the thrown object. If no .stack * Returns the .stack property of the thrown object. If no .stack
* property is present an empty handle is returned. * property is present an empty handle is returned.
*/ */
V8_DEPRECATE_SOON("Use maybe version.", Local<Value> StackTrace() const); V8_DEPRECATED("Use maybe version.", Local<Value> StackTrace() const);
V8_WARN_UNUSED_RESULT MaybeLocal<Value> StackTrace( V8_WARN_UNUSED_RESULT MaybeLocal<Value> StackTrace(
Local<Context> context) const; Local<Context> context) const;
......
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