[api] Advance deprecation for deprecated apis <= v9.5
As per output of ./tools/release/list_deprecated.py Bug: v8:11165 Change-Id: Ib5ae6fd1ec7209cc89d436d337b97a4c82391da3 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3245118 Commit-Queue: Camillo Bruni <cbruni@chromium.org> Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/main@{#77550}
This commit is contained in:
parent
40b062cefd
commit
1e0567fb60
@ -95,7 +95,7 @@ V8_PLATFORM_EXPORT void RunIdleTasks(v8::Platform* platform,
|
||||
* The |platform| has to be created using |NewDefaultPlatform|.
|
||||
*
|
||||
*/
|
||||
V8_DEPRECATE_SOON("Access the DefaultPlatform directly")
|
||||
V8_DEPRECATED("Access the DefaultPlatform directly")
|
||||
V8_PLATFORM_EXPORT void SetTracingController(
|
||||
v8::Platform* platform,
|
||||
v8::platform::tracing::TracingController* tracing_controller);
|
||||
|
@ -318,7 +318,7 @@ class V8_EXPORT Context : public Data {
|
||||
* stack may be allocated separately from the native stack. See also
|
||||
* |TryCatch::JSStackComparableAddressPrivate| for details.
|
||||
*/
|
||||
V8_DEPRECATE_SOON(
|
||||
V8_DEPRECATED(
|
||||
"This is private V8 information that should not be exposed in the API.")
|
||||
uintptr_t JSStackComparableAddress() const {
|
||||
return JSStackComparableAddressPrivate();
|
||||
|
@ -127,7 +127,7 @@ class V8_EXPORT EmbedderHeapTracer {
|
||||
/**
|
||||
* Called by the embedder to notify V8 of an empty execution stack.
|
||||
*/
|
||||
V8_DEPRECATE_SOON(
|
||||
V8_DEPRECATED(
|
||||
"This call only optimized internal caches which V8 is able to figure out "
|
||||
"on its own now.")
|
||||
void NotifyEmptyEmbedderStack();
|
||||
|
@ -169,7 +169,7 @@ class V8_EXPORT TryCatch {
|
||||
*/
|
||||
void SetCaptureMessage(bool value);
|
||||
|
||||
V8_DEPRECATE_SOON(
|
||||
V8_DEPRECATED(
|
||||
"This is private information that should not be exposed by the API")
|
||||
static void* JSStackComparableAddress(TryCatch* handler) {
|
||||
if (handler == nullptr) return nullptr;
|
||||
|
@ -460,12 +460,6 @@ class V8_EXPORT CFunction {
|
||||
return ArgUnwrap<F*>::Make(func);
|
||||
}
|
||||
|
||||
template <typename F>
|
||||
V8_DEPRECATED("Use CFunctionBuilder instead.")
|
||||
static CFunction MakeWithFallbackSupport(F* func) {
|
||||
return ArgUnwrap<F*>::Make(func);
|
||||
}
|
||||
|
||||
CFunction(const void* address, const CFunctionInfo* type_info);
|
||||
|
||||
private:
|
||||
@ -485,7 +479,7 @@ class V8_EXPORT CFunction {
|
||||
};
|
||||
};
|
||||
|
||||
struct V8_DEPRECATE_SOON("Use v8::Local<v8::Value> instead.") ApiObject {
|
||||
struct V8_DEPRECATED("Use v8::Local<v8::Value> instead.") ApiObject {
|
||||
uintptr_t address;
|
||||
};
|
||||
|
||||
|
@ -114,7 +114,7 @@ class V8_EXPORT V8StackTrace {
|
||||
virtual int topLineNumber() const = 0;
|
||||
virtual int topColumnNumber() const = 0;
|
||||
virtual int topScriptId() const = 0;
|
||||
V8_DEPRECATE_SOON("Use V8::StackTrace::topScriptId() instead.")
|
||||
V8_DEPRECATED("Use V8::StackTrace::topScriptId() instead.")
|
||||
int topScriptIdAsInteger() const { return topScriptId(); }
|
||||
virtual StringView topFunctionName() const = 0;
|
||||
|
||||
|
@ -60,7 +60,7 @@ class ScriptOriginOptions {
|
||||
*/
|
||||
class V8_EXPORT ScriptOrigin {
|
||||
public:
|
||||
V8_DEPRECATE_SOON("Use constructor with primitive C++ types")
|
||||
V8_DEPRECATED("Use constructor with primitive C++ types")
|
||||
ScriptOrigin(
|
||||
Local<Value> resource_name, Local<Integer> resource_line_offset,
|
||||
Local<Integer> resource_column_offset,
|
||||
@ -71,7 +71,7 @@ class V8_EXPORT ScriptOrigin {
|
||||
Local<Boolean> is_wasm = Local<Boolean>(),
|
||||
Local<Boolean> is_module = Local<Boolean>(),
|
||||
Local<PrimitiveArray> host_defined_options = Local<PrimitiveArray>());
|
||||
V8_DEPRECATE_SOON("Use constructor that takes an isolate")
|
||||
V8_DEPRECATED("Use constructor that takes an isolate")
|
||||
explicit ScriptOrigin(
|
||||
Local<Value> resource_name, int resource_line_offset = 0,
|
||||
int resource_column_offset = 0,
|
||||
@ -99,11 +99,11 @@ class V8_EXPORT ScriptOrigin {
|
||||
host_defined_options_(host_defined_options) {}
|
||||
|
||||
V8_INLINE Local<Value> ResourceName() const;
|
||||
V8_DEPRECATE_SOON("Use getter with primitive C++ types.")
|
||||
V8_DEPRECATED("Use getter with primitive C++ types.")
|
||||
V8_INLINE Local<Integer> ResourceLineOffset() const;
|
||||
V8_DEPRECATE_SOON("Use getter with primitive C++ types.")
|
||||
V8_DEPRECATED("Use getter with primitive C++ types.")
|
||||
V8_INLINE Local<Integer> ResourceColumnOffset() const;
|
||||
V8_DEPRECATE_SOON("Use getter with primitive C++ types.")
|
||||
V8_DEPRECATED("Use getter with primitive C++ types.")
|
||||
V8_INLINE Local<Integer> ScriptID() const;
|
||||
V8_INLINE int LineOffset() const;
|
||||
V8_INLINE int ColumnOffset() const;
|
||||
|
@ -575,7 +575,7 @@ class V8_EXPORT Symbol : public Name {
|
||||
/**
|
||||
* Returns the description string of the symbol, or undefined if none.
|
||||
*/
|
||||
V8_DEPRECATE_SOON("Use Symbol::Description(isolate)")
|
||||
V8_DEPRECATED("Use Symbol::Description(isolate)")
|
||||
Local<Value> Description() const;
|
||||
Local<Value> Description(Isolate* isolate) const;
|
||||
|
||||
|
@ -173,14 +173,14 @@ class V8_EXPORT Module : public Data {
|
||||
/**
|
||||
* Returns the number of modules requested by this module.
|
||||
*/
|
||||
V8_DEPRECATE_SOON("Use Module::GetModuleRequests() and FixedArray::Length().")
|
||||
V8_DEPRECATED("Use Module::GetModuleRequests() and FixedArray::Length().")
|
||||
int GetModuleRequestsLength() const;
|
||||
|
||||
/**
|
||||
* Returns the ith module specifier in this module.
|
||||
* i must be < GetModuleRequestsLength() and >= 0.
|
||||
*/
|
||||
V8_DEPRECATE_SOON(
|
||||
V8_DEPRECATED(
|
||||
"Use Module::GetModuleRequests() and ModuleRequest::GetSpecifier().")
|
||||
Local<String> GetModuleRequest(int i) const;
|
||||
|
||||
@ -188,7 +188,7 @@ class V8_EXPORT Module : public Data {
|
||||
* Returns the source location (line number and column number) of the ith
|
||||
* module specifier's first occurrence in this module.
|
||||
*/
|
||||
V8_DEPRECATE_SOON(
|
||||
V8_DEPRECATED(
|
||||
"Use Module::GetModuleRequests(), ModuleRequest::GetSourceOffset(), and "
|
||||
"Module::SourceOffsetToLocation().")
|
||||
Location GetModuleRequestLocation(int i) const;
|
||||
@ -209,7 +209,7 @@ class V8_EXPORT Module : public Data {
|
||||
*/
|
||||
int GetIdentityHash() const;
|
||||
|
||||
using ResolveCallback V8_DEPRECATE_SOON("Use ResolveModuleCallback") =
|
||||
using ResolveCallback V8_DEPRECATED("Use ResolveModuleCallback") =
|
||||
MaybeLocal<Module> (*)(Local<Context> context, Local<String> specifier,
|
||||
Local<Module> referrer);
|
||||
using ResolveModuleCallback = MaybeLocal<Module> (*)(
|
||||
@ -223,7 +223,7 @@ class V8_EXPORT Module : public Data {
|
||||
* instantiation. (In the case where the callback throws an exception, that
|
||||
* exception is propagated.)
|
||||
*/
|
||||
V8_DEPRECATE_SOON(
|
||||
V8_DEPRECATED(
|
||||
"Use the version of InstantiateModule that takes a ResolveModuleCallback "
|
||||
"parameter")
|
||||
V8_WARN_UNUSED_RESULT Maybe<bool> InstantiateModule(Local<Context> context,
|
||||
|
Loading…
Reference in New Issue
Block a user