Commit 0018ca5e authored by jochen's avatar jochen Committed by Commit bot

Mark all APIs without callers in Blink as deprecated

R=vogelheim@chromium.org
BUG=none
LOG=y

Review URL: https://codereview.chromium.org/1526643002

Cr-Commit-Position: refs/heads/master@{#32980}
parent 8e60df2a
...@@ -424,11 +424,11 @@ class WeakCallbackInfo { ...@@ -424,11 +424,11 @@ class WeakCallbackInfo {
V8_INLINE T* GetParameter() const { return parameter_; } V8_INLINE T* GetParameter() const { return parameter_; }
V8_INLINE void* GetInternalField(int index) const; V8_INLINE void* GetInternalField(int index) const;
V8_INLINE V8_DEPRECATE_SOON("use indexed version", V8_INLINE V8_DEPRECATED("use indexed version",
void* GetInternalField1() const) { void* GetInternalField1() const) {
return internal_fields_[0]; return internal_fields_[0];
} }
V8_INLINE V8_DEPRECATE_SOON("use indexed version", V8_INLINE V8_DEPRECATED("use indexed version",
void* GetInternalField2() const) { void* GetInternalField2() const) {
return internal_fields_[1]; return internal_fields_[1];
} }
...@@ -555,13 +555,13 @@ template <class T> class PersistentBase { ...@@ -555,13 +555,13 @@ template <class T> class PersistentBase {
* critical form of resource management! * critical form of resource management!
*/ */
template <typename P> template <typename P>
V8_INLINE V8_DEPRECATE_SOON( V8_INLINE V8_DEPRECATED(
"use WeakCallbackInfo version", "use WeakCallbackInfo version",
void SetWeak(P* parameter, void SetWeak(P* parameter,
typename WeakCallbackData<T, P>::Callback callback)); typename WeakCallbackData<T, P>::Callback callback));
template <typename S, typename P> template <typename S, typename P>
V8_INLINE V8_DEPRECATE_SOON( V8_INLINE V8_DEPRECATED(
"use WeakCallbackInfo version", "use WeakCallbackInfo version",
void SetWeak(P* parameter, void SetWeak(P* parameter,
typename WeakCallbackData<S, P>::Callback callback)); typename WeakCallbackData<S, P>::Callback callback));
...@@ -573,7 +573,7 @@ template <class T> class PersistentBase { ...@@ -573,7 +573,7 @@ template <class T> class PersistentBase {
// specify a parameter for the callback or the location of two internal // specify a parameter for the callback or the location of two internal
// fields in the dying object. // fields in the dying object.
template <typename P> template <typename P>
V8_INLINE V8_DEPRECATE_SOON( V8_INLINE V8_DEPRECATED(
"use SetWeak", "use SetWeak",
void SetPhantom(P* parameter, void SetPhantom(P* parameter,
typename WeakCallbackInfo<P>::Callback callback, typename WeakCallbackInfo<P>::Callback callback,
...@@ -1317,7 +1317,7 @@ class V8_EXPORT ScriptCompiler { ...@@ -1317,7 +1317,7 @@ class V8_EXPORT ScriptCompiler {
* \return Compiled script object (context independent; for running it must be * \return Compiled script object (context independent; for running it must be
* bound to a context). * bound to a context).
*/ */
static V8_DEPRECATE_SOON("Use maybe version", static V8_DEPRECATED("Use maybe version",
Local<UnboundScript> CompileUnbound( Local<UnboundScript> CompileUnbound(
Isolate* isolate, Source* source, Isolate* isolate, Source* source,
CompileOptions options = kNoCompileOptions)); CompileOptions options = kNoCompileOptions));
...@@ -1336,7 +1336,7 @@ class V8_EXPORT ScriptCompiler { ...@@ -1336,7 +1336,7 @@ class V8_EXPORT ScriptCompiler {
* when this function was called. When run it will always use this * when this function was called. When run it will always use this
* context. * context.
*/ */
static V8_DEPRECATE_SOON( static V8_DEPRECATED(
"Use maybe version", "Use maybe version",
Local<Script> Compile(Isolate* isolate, Source* source, Local<Script> Compile(Isolate* isolate, Source* source,
CompileOptions options = kNoCompileOptions)); CompileOptions options = kNoCompileOptions));
...@@ -1366,9 +1366,9 @@ class V8_EXPORT ScriptCompiler { ...@@ -1366,9 +1366,9 @@ class V8_EXPORT ScriptCompiler {
* (ScriptStreamingTask has been run). V8 doesn't construct the source string * (ScriptStreamingTask has been run). V8 doesn't construct the source string
* during streaming, so the embedder needs to pass the full source here. * during streaming, so the embedder needs to pass the full source here.
*/ */
static V8_DEPRECATE_SOON( static V8_DEPRECATED("Use maybe version",
"Use maybe version", Local<Script> Compile(Isolate* isolate,
Local<Script> Compile(Isolate* isolate, StreamedSource* source, StreamedSource* source,
Local<String> full_source_string, Local<String> full_source_string,
const ScriptOrigin& origin)); const ScriptOrigin& origin));
static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile( static V8_WARN_UNUSED_RESULT MaybeLocal<Script> Compile(
...@@ -1496,7 +1496,7 @@ class V8_EXPORT Message { ...@@ -1496,7 +1496,7 @@ class V8_EXPORT Message {
* Returns the index within the line of the last character where * Returns the index within the line of the last character where
* the error occurred. * the error occurred.
*/ */
V8_DEPRECATE_SOON("Use maybe version", int GetEndColumn() const); V8_DEPRECATED("Use maybe version", int GetEndColumn() const);
V8_WARN_UNUSED_RESULT Maybe<int> GetEndColumn(Local<Context> context) const; V8_WARN_UNUSED_RESULT Maybe<int> GetEndColumn(Local<Context> context) const;
/** /**
...@@ -1664,7 +1664,7 @@ class V8_EXPORT JSON { ...@@ -1664,7 +1664,7 @@ class V8_EXPORT JSON {
* \param json_string The string to parse. * \param json_string The string to parse.
* \return The corresponding value if successfully parsed. * \return The corresponding value if successfully parsed.
*/ */
static V8_DEPRECATE_SOON("Use maybe version", static V8_DEPRECATED("Use maybe version",
Local<Value> Parse(Local<String> json_string)); Local<Value> Parse(Local<String> json_string));
static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse( static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse(
Isolate* isolate, Local<String> json_string); Isolate* isolate, Local<String> json_string);
...@@ -1977,34 +1977,34 @@ class V8_EXPORT Value : public Data { ...@@ -1977,34 +1977,34 @@ class V8_EXPORT Value : public Data {
Local<Number> ToNumber(Isolate* isolate) const); Local<Number> ToNumber(Isolate* isolate) const);
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATE_SOON("Use maybe version",
Local<String> ToString(Isolate* isolate) const); Local<String> ToString(Isolate* isolate) const);
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Local<String> ToDetailString(Isolate* isolate) const); Local<String> ToDetailString(Isolate* isolate) const);
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATE_SOON("Use maybe version",
Local<Object> ToObject(Isolate* isolate) const); Local<Object> ToObject(Isolate* isolate) const);
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATE_SOON("Use maybe version",
Local<Integer> ToInteger(Isolate* isolate) const); Local<Integer> ToInteger(Isolate* isolate) const);
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Local<Uint32> ToUint32(Isolate* isolate) const); Local<Uint32> ToUint32(Isolate* isolate) const);
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATE_SOON("Use maybe version",
Local<Int32> ToInt32(Isolate* isolate) const); Local<Int32> ToInt32(Isolate* isolate) const);
inline V8_DEPRECATE_SOON("Use maybe version", inline V8_DEPRECATE_SOON("Use maybe version",
Local<Boolean> ToBoolean() const); Local<Boolean> ToBoolean() const);
inline V8_DEPRECATE_SOON("Use maybe version", Local<Number> ToNumber() const); inline V8_DEPRECATED("Use maybe version", Local<Number> ToNumber() const);
inline V8_DEPRECATE_SOON("Use maybe version", Local<String> ToString() const); inline V8_DEPRECATE_SOON("Use maybe version", Local<String> ToString() const);
inline V8_DEPRECATE_SOON("Use maybe version", inline V8_DEPRECATED("Use maybe version",
Local<String> ToDetailString() const); Local<String> ToDetailString() const);
inline V8_DEPRECATE_SOON("Use maybe version", Local<Object> ToObject() const); inline V8_DEPRECATE_SOON("Use maybe version", Local<Object> ToObject() const);
inline V8_DEPRECATE_SOON("Use maybe version", inline V8_DEPRECATE_SOON("Use maybe version",
Local<Integer> ToInteger() const); Local<Integer> ToInteger() const);
inline V8_DEPRECATE_SOON("Use maybe version", Local<Uint32> ToUint32() const); inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
inline V8_DEPRECATE_SOON("Use maybe version", Local<Int32> ToInt32() const); inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
/** /**
* Attempts to convert a string to an array index. * Attempts to convert a string to an array index.
* Returns an empty handle if the conversion fails. * Returns an empty handle if the conversion fails.
*/ */
V8_DEPRECATE_SOON("Use maybe version", Local<Uint32> ToArrayIndex() const); V8_DEPRECATED("Use maybe version", Local<Uint32> ToArrayIndex() const);
V8_WARN_UNUSED_RESULT MaybeLocal<Uint32> ToArrayIndex( V8_WARN_UNUSED_RESULT MaybeLocal<Uint32> ToArrayIndex(
Local<Context> context) const; Local<Context> context) const;
...@@ -2308,7 +2308,7 @@ class V8_EXPORT String : public Name { ...@@ -2308,7 +2308,7 @@ class V8_EXPORT String : public Name {
int length = -1); int length = -1);
/** Allocates a new string from Latin-1 data.*/ /** Allocates a new string from Latin-1 data.*/
static V8_DEPRECATE_SOON( static V8_DEPRECATED(
"Use maybe version", "Use maybe version",
Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data, Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data,
NewStringType type = kNormalString, NewStringType type = kNormalString,
...@@ -2347,10 +2347,9 @@ class V8_EXPORT String : public Name { ...@@ -2347,10 +2347,9 @@ class V8_EXPORT String : public Name {
* should the underlying buffer be deallocated or modified except through the * should the underlying buffer be deallocated or modified except through the
* destructor of the external string resource. * destructor of the external string resource.
*/ */
static V8_DEPRECATE_SOON( static V8_DEPRECATED("Use maybe version",
"Use maybe version", Local<String> NewExternal(
Local<String> NewExternal(Isolate* isolate, Isolate* isolate, ExternalStringResource* resource));
ExternalStringResource* resource));
static V8_WARN_UNUSED_RESULT MaybeLocal<String> NewExternalTwoByte( static V8_WARN_UNUSED_RESULT MaybeLocal<String> NewExternalTwoByte(
Isolate* isolate, ExternalStringResource* resource); Isolate* isolate, ExternalStringResource* resource);
...@@ -2667,12 +2666,12 @@ class V8_EXPORT Object : public Value { ...@@ -2667,12 +2666,12 @@ class V8_EXPORT Object : public Value {
// will only be returned if the interceptor doesn't return a value. // will only be returned if the interceptor doesn't return a value.
// //
// Note also that this only works for named properties. // Note also that this only works for named properties.
V8_DEPRECATE_SOON("Use CreateDataProperty / DefineOwnProperty", V8_DEPRECATED("Use CreateDataProperty / DefineOwnProperty",
bool ForceSet(Local<Value> key, Local<Value> value, bool ForceSet(Local<Value> key, Local<Value> value,
PropertyAttribute attribs = None)); PropertyAttribute attribs = None));
V8_DEPRECATE_SOON("Use CreateDataProperty / DefineOwnProperty", V8_DEPRECATED("Use CreateDataProperty / DefineOwnProperty",
Maybe<bool> ForceSet(Local<Context> context, Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
Local<Value> key, Local<Value> value, Local<Value> value,
PropertyAttribute attribs = None)); PropertyAttribute attribs = None));
V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key)); V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
...@@ -2688,7 +2687,7 @@ class V8_EXPORT Object : public Value { ...@@ -2688,7 +2687,7 @@ class V8_EXPORT Object : public Value {
* any combination of ReadOnly, DontEnum and DontDelete. Returns * any combination of ReadOnly, DontEnum and DontDelete. Returns
* None when the property doesn't exist. * None when the property doesn't exist.
*/ */
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
PropertyAttribute GetPropertyAttributes(Local<Value> key)); PropertyAttribute GetPropertyAttributes(Local<Value> key));
V8_WARN_UNUSED_RESULT Maybe<PropertyAttribute> GetPropertyAttributes( V8_WARN_UNUSED_RESULT Maybe<PropertyAttribute> GetPropertyAttributes(
Local<Context> context, Local<Value> key); Local<Context> context, Local<Value> key);
...@@ -2696,7 +2695,7 @@ class V8_EXPORT Object : public Value { ...@@ -2696,7 +2695,7 @@ class V8_EXPORT Object : public Value {
/** /**
* Returns Object.getOwnPropertyDescriptor as per ES5 section 15.2.3.3. * Returns Object.getOwnPropertyDescriptor as per ES5 section 15.2.3.3.
*/ */
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Local<Value> GetOwnPropertyDescriptor(Local<String> key)); Local<Value> GetOwnPropertyDescriptor(Local<String> key));
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetOwnPropertyDescriptor( V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetOwnPropertyDescriptor(
Local<Context> context, Local<String> key); Local<Context> context, Local<String> key);
...@@ -2709,21 +2708,21 @@ class V8_EXPORT Object : public Value { ...@@ -2709,21 +2708,21 @@ class V8_EXPORT Object : public Value {
// TODO(dcarney): mark V8_WARN_UNUSED_RESULT // TODO(dcarney): mark V8_WARN_UNUSED_RESULT
Maybe<bool> Delete(Local<Context> context, Local<Value> key); Maybe<bool> Delete(Local<Context> context, Local<Value> key);
V8_DEPRECATE_SOON("Use maybe version", bool Has(uint32_t index)); V8_DEPRECATED("Use maybe version", bool Has(uint32_t index));
V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index); V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
V8_DEPRECATE_SOON("Use maybe version", bool Delete(uint32_t index)); V8_DEPRECATED("Use maybe version", bool Delete(uint32_t index));
// TODO(dcarney): mark V8_WARN_UNUSED_RESULT // TODO(dcarney): mark V8_WARN_UNUSED_RESULT
Maybe<bool> Delete(Local<Context> context, uint32_t index); Maybe<bool> Delete(Local<Context> context, uint32_t index);
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
bool SetAccessor(Local<String> name, bool SetAccessor(Local<String> name,
AccessorGetterCallback getter, AccessorGetterCallback getter,
AccessorSetterCallback setter = 0, AccessorSetterCallback setter = 0,
Local<Value> data = Local<Value>(), Local<Value> data = Local<Value>(),
AccessControl settings = DEFAULT, AccessControl settings = DEFAULT,
PropertyAttribute attribute = None)); PropertyAttribute attribute = None));
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
bool SetAccessor(Local<Name> name, bool SetAccessor(Local<Name> name,
AccessorNameGetterCallback getter, AccessorNameGetterCallback getter,
AccessorNameSetterCallback setter = 0, AccessorNameSetterCallback setter = 0,
...@@ -2786,8 +2785,7 @@ class V8_EXPORT Object : public Value { ...@@ -2786,8 +2785,7 @@ class V8_EXPORT Object : public Value {
* be skipped by __proto__ and it does not consult the security * be skipped by __proto__ and it does not consult the security
* handler. * handler.
*/ */
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version", bool SetPrototype(Local<Value> prototype));
bool SetPrototype(Local<Value> prototype));
V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context, V8_WARN_UNUSED_RESULT Maybe<bool> SetPrototype(Local<Context> context,
Local<Value> prototype); Local<Value> prototype);
...@@ -2802,7 +2800,7 @@ class V8_EXPORT Object : public Value { ...@@ -2802,7 +2800,7 @@ class V8_EXPORT Object : public Value {
* This is different from Value::ToString() that may call * This is different from Value::ToString() that may call
* user-defined toString function. This one does not. * user-defined toString function. This one does not.
*/ */
V8_DEPRECATE_SOON("Use maybe version", Local<String> ObjectProtoToString()); V8_DEPRECATED("Use maybe version", Local<String> ObjectProtoToString());
V8_WARN_UNUSED_RESULT MaybeLocal<String> ObjectProtoToString( V8_WARN_UNUSED_RESULT MaybeLocal<String> ObjectProtoToString(
Local<Context> context); Local<Context> context);
...@@ -2847,8 +2845,7 @@ class V8_EXPORT Object : public Value { ...@@ -2847,8 +2845,7 @@ class V8_EXPORT Object : public Value {
void SetAlignedPointerInInternalField(int index, void* value); void SetAlignedPointerInInternalField(int index, void* value);
// Testers for local properties. // Testers for local properties.
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version", bool HasOwnProperty(Local<String> key));
bool HasOwnProperty(Local<String> key));
V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context, V8_WARN_UNUSED_RESULT Maybe<bool> HasOwnProperty(Local<Context> context,
Local<Name> key); Local<Name> key);
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATE_SOON("Use maybe version",
...@@ -2868,7 +2865,7 @@ class V8_EXPORT Object : public Value { ...@@ -2868,7 +2865,7 @@ class V8_EXPORT Object : public Value {
* If result.IsEmpty() no real property was located in the prototype chain. * If result.IsEmpty() no real property was located in the prototype chain.
* This means interceptors in the prototype chain are not called. * This means interceptors in the prototype chain are not called.
*/ */
V8_DEPRECATE_SOON( V8_DEPRECATED(
"Use maybe version", "Use maybe version",
Local<Value> GetRealNamedPropertyInPrototypeChain(Local<String> key)); Local<Value> GetRealNamedPropertyInPrototypeChain(Local<String> key));
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedPropertyInPrototypeChain( V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedPropertyInPrototypeChain(
...@@ -2879,7 +2876,7 @@ class V8_EXPORT Object : public Value { ...@@ -2879,7 +2876,7 @@ class V8_EXPORT Object : public Value {
* which can be None or any combination of ReadOnly, DontEnum and DontDelete. * which can be None or any combination of ReadOnly, DontEnum and DontDelete.
* Interceptors in the prototype chain are not called. * Interceptors in the prototype chain are not called.
*/ */
V8_DEPRECATE_SOON( V8_DEPRECATED(
"Use maybe version", "Use maybe version",
Maybe<PropertyAttribute> GetRealNamedPropertyAttributesInPrototypeChain( Maybe<PropertyAttribute> GetRealNamedPropertyAttributesInPrototypeChain(
Local<String> key)); Local<String> key));
...@@ -2892,7 +2889,7 @@ class V8_EXPORT Object : public Value { ...@@ -2892,7 +2889,7 @@ class V8_EXPORT Object : public Value {
* in the prototype chain. * in the prototype chain.
* This means interceptors in the prototype chain are not called. * This means interceptors in the prototype chain are not called.
*/ */
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Local<Value> GetRealNamedProperty(Local<String> key)); Local<Value> GetRealNamedProperty(Local<String> key));
V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty(
Local<Context> context, Local<Name> key); Local<Context> context, Local<Name> key);
...@@ -2902,7 +2899,7 @@ class V8_EXPORT Object : public Value { ...@@ -2902,7 +2899,7 @@ class V8_EXPORT Object : public Value {
* None or any combination of ReadOnly, DontEnum and DontDelete. * None or any combination of ReadOnly, DontEnum and DontDelete.
* Interceptors in the prototype chain are not called. * Interceptors in the prototype chain are not called.
*/ */
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Maybe<PropertyAttribute> GetRealNamedPropertyAttributes( Maybe<PropertyAttribute> GetRealNamedPropertyAttributes(
Local<String> key)); Local<String> key));
V8_WARN_UNUSED_RESULT Maybe<PropertyAttribute> GetRealNamedPropertyAttributes( V8_WARN_UNUSED_RESULT Maybe<PropertyAttribute> GetRealNamedPropertyAttributes(
...@@ -2953,7 +2950,7 @@ class V8_EXPORT Object : public Value { ...@@ -2953,7 +2950,7 @@ class V8_EXPORT Object : public Value {
* Call an Object as a function if a callback is set by the * Call an Object as a function if a callback is set by the
* ObjectTemplate::SetCallAsFunctionHandler method. * ObjectTemplate::SetCallAsFunctionHandler method.
*/ */
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Local<Value> CallAsFunction(Local<Value> recv, int argc, Local<Value> CallAsFunction(Local<Value> recv, int argc,
Local<Value> argv[])); Local<Value> argv[]));
V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context, V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context,
...@@ -2966,9 +2963,8 @@ class V8_EXPORT Object : public Value { ...@@ -2966,9 +2963,8 @@ class V8_EXPORT Object : public Value {
* ObjectTemplate::SetCallAsFunctionHandler method. * ObjectTemplate::SetCallAsFunctionHandler method.
* Note: This method behaves like the Function::NewInstance method. * Note: This method behaves like the Function::NewInstance method.
*/ */
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Local<Value> CallAsConstructor(int argc, Local<Value> CallAsConstructor(int argc, Local<Value> argv[]));
Local<Value> argv[]));
V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsConstructor( V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsConstructor(
Local<Context> context, int argc, Local<Value> argv[]); Local<Context> context, int argc, Local<Value> argv[]);
...@@ -3226,13 +3222,12 @@ class V8_EXPORT Function : public Object { ...@@ -3226,13 +3222,12 @@ class V8_EXPORT Function : public Object {
Local<Function> New(Isolate* isolate, FunctionCallback callback, Local<Function> New(Isolate* isolate, FunctionCallback callback,
Local<Value> data = Local<Value>(), int length = 0)); Local<Value> data = Local<Value>(), int length = 0));
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Local<Object> NewInstance(int argc, Local<Value> argv[]) Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
const);
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
Local<Context> context, int argc, Local<Value> argv[]) const; Local<Context> context, int argc, Local<Value> argv[]) const;
V8_DEPRECATE_SOON("Use maybe version", Local<Object> NewInstance() const); V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
Local<Context> context) const { Local<Context> context) const {
return NewInstance(context, 0, nullptr); return NewInstance(context, 0, nullptr);
...@@ -3351,18 +3346,18 @@ class V8_EXPORT Promise : public Object { ...@@ -3351,18 +3346,18 @@ class V8_EXPORT Promise : public Object {
* an argument. If the promise is already resolved/rejected, the handler is * an argument. If the promise is already resolved/rejected, the handler is
* invoked at the end of turn. * invoked at the end of turn.
*/ */
V8_DEPRECATE_SOON("Use maybe version of Then", V8_DEPRECATED("Use maybe version of Then",
Local<Promise> Chain(Local<Function> handler)); Local<Promise> Chain(Local<Function> handler));
V8_DEPRECATE_SOON("Use Then", V8_DEPRECATED("Use Then",
V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Chain( V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Chain(
Local<Context> context, Local<Function> handler)); Local<Context> context, Local<Function> handler));
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Local<Promise> Catch(Local<Function> handler)); Local<Promise> Catch(Local<Function> handler));
V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context, V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Catch(Local<Context> context,
Local<Function> handler); Local<Function> handler);
V8_DEPRECATE_SOON("Use maybe version", V8_DEPRECATED("Use maybe version",
Local<Promise> Then(Local<Function> handler)); Local<Promise> Then(Local<Function> handler));
V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context, V8_WARN_UNUSED_RESULT MaybeLocal<Promise> Then(Local<Context> context,
Local<Function> handler); Local<Function> handler);
...@@ -4724,7 +4719,7 @@ class V8_EXPORT ObjectTemplate : public Template { ...@@ -4724,7 +4719,7 @@ class V8_EXPORT ObjectTemplate : public Template {
void SetAccessCheckCallback(AccessCheckCallback callback, void SetAccessCheckCallback(AccessCheckCallback callback,
Local<Value> data = Local<Value>()); Local<Value> data = Local<Value>());
V8_DEPRECATE_SOON( V8_DEPRECATED(
"Use SetAccessCheckCallback instead", "Use SetAccessCheckCallback instead",
void SetAccessCheckCallbacks(NamedSecurityCallback named_handler, void SetAccessCheckCallbacks(NamedSecurityCallback named_handler,
IndexedSecurityCallback indexed_handler, IndexedSecurityCallback indexed_handler,
...@@ -4925,8 +4920,7 @@ class V8_EXPORT Exception { ...@@ -4925,8 +4920,7 @@ class V8_EXPORT Exception {
* or capture the current stack trace if not available. * or capture the current stack trace if not available.
*/ */
static Local<Message> CreateMessage(Isolate* isolate, Local<Value> exception); static Local<Message> CreateMessage(Isolate* isolate, Local<Value> exception);
V8_DEPRECATE_SOON( V8_DEPRECATED("Use version with an Isolate*",
"Use version with an Isolate*",
static Local<Message> CreateMessage(Local<Value> exception)); static Local<Message> CreateMessage(Local<Value> exception));
/** /**
...@@ -5047,12 +5041,6 @@ enum GCCallbackFlags { ...@@ -5047,12 +5041,6 @@ enum GCCallbackFlags {
kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3 kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3
}; };
V8_DEPRECATE_SOON("Use GCCallBack instead",
typedef void (*GCPrologueCallback)(GCType type,
GCCallbackFlags flags));
V8_DEPRECATE_SOON("Use GCCallBack instead",
typedef void (*GCEpilogueCallback)(GCType type,
GCCallbackFlags flags));
typedef void (*GCCallback)(GCType type, GCCallbackFlags flags); typedef void (*GCCallback)(GCType type, GCCallbackFlags flags);
typedef void (*InterruptCallback)(Isolate* isolate, void* data); typedef void (*InterruptCallback)(Isolate* isolate, void* data);
...@@ -5662,14 +5650,6 @@ class V8_EXPORT Isolate { ...@@ -5662,14 +5650,6 @@ class V8_EXPORT Isolate {
template<typename T, typename S> template<typename T, typename S>
void SetReference(const Persistent<T>& parent, const Persistent<S>& child); void SetReference(const Persistent<T>& parent, const Persistent<S>& child);
V8_DEPRECATE_SOON("Use GCCallBack instead",
typedef void (*GCPrologueCallback)(Isolate* isolate,
GCType type,
GCCallbackFlags flags));
V8_DEPRECATE_SOON("Use GCCallBack instead",
typedef void (*GCEpilogueCallback)(Isolate* isolate,
GCType type,
GCCallbackFlags flags));
typedef void (*GCCallback)(Isolate* isolate, GCType type, typedef void (*GCCallback)(Isolate* isolate, GCType type,
GCCallbackFlags flags); GCCallbackFlags flags);
...@@ -5856,7 +5836,7 @@ class V8_EXPORT Isolate { ...@@ -5856,7 +5836,7 @@ class V8_EXPORT Isolate {
*/ */
bool IdleNotificationDeadline(double deadline_in_seconds); bool IdleNotificationDeadline(double deadline_in_seconds);
V8_DEPRECATE_SOON("use IdleNotificationDeadline()", V8_DEPRECATED("use IdleNotificationDeadline()",
bool IdleNotification(int idle_time_in_ms)); bool IdleNotification(int idle_time_in_ms));
/** /**
...@@ -6078,7 +6058,7 @@ typedef uintptr_t (*ReturnAddressLocationResolver)( ...@@ -6078,7 +6058,7 @@ typedef uintptr_t (*ReturnAddressLocationResolver)(
class V8_EXPORT V8 { class V8_EXPORT V8 {
public: public:
/** Set the callback to invoke in case of fatal errors. */ /** Set the callback to invoke in case of fatal errors. */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
void SetFatalErrorHandler(FatalErrorCallback that)); void SetFatalErrorHandler(FatalErrorCallback that));
...@@ -6086,7 +6066,7 @@ class V8_EXPORT V8 { ...@@ -6086,7 +6066,7 @@ class V8_EXPORT V8 {
* Set the callback to invoke to check if code generation from * Set the callback to invoke to check if code generation from
* strings should be allowed. * strings should be allowed.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", void SetAllowCodeGenerationFromStringsCallback( "Use isolate version", void SetAllowCodeGenerationFromStringsCallback(
AllowCodeGenerationFromStringsCallback that)); AllowCodeGenerationFromStringsCallback that));
...@@ -6094,7 +6074,7 @@ class V8_EXPORT V8 { ...@@ -6094,7 +6074,7 @@ class V8_EXPORT V8 {
* Check if V8 is dead and therefore unusable. This is the case after * Check if V8 is dead and therefore unusable. This is the case after
* fatal errors such as out-of-memory situations. * fatal errors such as out-of-memory situations.
*/ */
V8_INLINE static V8_DEPRECATE_SOON("no alternative", bool IsDead()); V8_INLINE static V8_DEPRECATED("Use isolate version", bool IsDead());
/** /**
* Hand startup data to V8, in case the embedder has chosen to build * Hand startup data to V8, in case the embedder has chosen to build
...@@ -6130,7 +6110,7 @@ class V8_EXPORT V8 { ...@@ -6130,7 +6110,7 @@ class V8_EXPORT V8 {
* If data is specified, it will be passed to the callback when it is called. * If data is specified, it will be passed to the callback when it is called.
* Otherwise, the exception object will be passed to the callback instead. * Otherwise, the exception object will be passed to the callback instead.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
bool AddMessageListener(MessageCallback that, bool AddMessageListener(MessageCallback that,
Local<Value> data = Local<Value>())); Local<Value> data = Local<Value>()));
...@@ -6138,14 +6118,14 @@ class V8_EXPORT V8 { ...@@ -6138,14 +6118,14 @@ class V8_EXPORT V8 {
/** /**
* Remove all message listeners from the specified callback function. * Remove all message listeners from the specified callback function.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", void RemoveMessageListeners(MessageCallback that)); "Use isolate version", void RemoveMessageListeners(MessageCallback that));
/** /**
* Tells V8 to capture current stack trace when uncaught exception occurs * Tells V8 to capture current stack trace when uncaught exception occurs
* and report it to the message listeners. The option is off by default. * and report it to the message listeners. The option is off by default.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
void SetCaptureStackTraceForUncaughtExceptions( void SetCaptureStackTraceForUncaughtExceptions(
bool capture, int frame_limit = 10, bool capture, int frame_limit = 10,
...@@ -6167,7 +6147,7 @@ class V8_EXPORT V8 { ...@@ -6167,7 +6147,7 @@ class V8_EXPORT V8 {
static const char* GetVersion(); static const char* GetVersion();
/** Callback function for reporting failed access checks.*/ /** Callback function for reporting failed access checks.*/
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback)); void SetFailedAccessCheckCallbackFunction(FailedAccessCheckCallback));
...@@ -6221,7 +6201,7 @@ class V8_EXPORT V8 { ...@@ -6221,7 +6201,7 @@ class V8_EXPORT V8 {
* Enables the host application to provide a mechanism to be notified * Enables the host application to provide a mechanism to be notified
* and perform custom logging when V8 Allocates Executable Memory. * and perform custom logging when V8 Allocates Executable Memory.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
void AddMemoryAllocationCallback(MemoryAllocationCallback callback, void AddMemoryAllocationCallback(MemoryAllocationCallback callback,
ObjectSpace space, ObjectSpace space,
...@@ -6230,7 +6210,7 @@ class V8_EXPORT V8 { ...@@ -6230,7 +6210,7 @@ class V8_EXPORT V8 {
/** /**
* Removes callback that was installed by AddMemoryAllocationCallback. * Removes callback that was installed by AddMemoryAllocationCallback.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
void RemoveMemoryAllocationCallback(MemoryAllocationCallback callback)); void RemoveMemoryAllocationCallback(MemoryAllocationCallback callback));
...@@ -6262,7 +6242,7 @@ class V8_EXPORT V8 { ...@@ -6262,7 +6242,7 @@ class V8_EXPORT V8 {
* *
* \param isolate The isolate in which to terminate the current JS execution. * \param isolate The isolate in which to terminate the current JS execution.
*/ */
V8_INLINE static V8_DEPRECATE_SOON("Use isolate version", V8_INLINE static V8_DEPRECATED("Use isolate version",
void TerminateExecution(Isolate* isolate)); void TerminateExecution(Isolate* isolate));
/** /**
...@@ -6275,7 +6255,7 @@ class V8_EXPORT V8 { ...@@ -6275,7 +6255,7 @@ class V8_EXPORT V8 {
* *
* \param isolate The isolate in which to check. * \param isolate The isolate in which to check.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
bool IsExecutionTerminating(Isolate* isolate = NULL)); bool IsExecutionTerminating(Isolate* isolate = NULL));
...@@ -6295,7 +6275,7 @@ class V8_EXPORT V8 { ...@@ -6295,7 +6275,7 @@ class V8_EXPORT V8 {
* *
* \param isolate The isolate in which to resume execution capability. * \param isolate The isolate in which to resume execution capability.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", void CancelTerminateExecution(Isolate* isolate)); "Use isolate version", void CancelTerminateExecution(Isolate* isolate));
/** /**
...@@ -6314,7 +6294,7 @@ class V8_EXPORT V8 { ...@@ -6314,7 +6294,7 @@ class V8_EXPORT V8 {
* heap. GC is not invoked prior to iterating, therefore there is no * heap. GC is not invoked prior to iterating, therefore there is no
* guarantee that visited objects are still alive. * guarantee that visited objects are still alive.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
void VisitExternalResources(ExternalResourceVisitor* visitor)); void VisitExternalResources(ExternalResourceVisitor* visitor));
...@@ -6322,7 +6302,7 @@ class V8_EXPORT V8 { ...@@ -6322,7 +6302,7 @@ class V8_EXPORT V8 {
* Iterates through all the persistent handles in the current isolate's heap * Iterates through all the persistent handles in the current isolate's heap
* that have class_ids. * that have class_ids.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
void VisitHandlesWithClassIds(PersistentHandleVisitor* visitor)); void VisitHandlesWithClassIds(PersistentHandleVisitor* visitor));
...@@ -6330,7 +6310,7 @@ class V8_EXPORT V8 { ...@@ -6330,7 +6310,7 @@ class V8_EXPORT V8 {
* Iterates through all the persistent handles in isolate's heap that have * Iterates through all the persistent handles in isolate's heap that have
* class_ids. * class_ids.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
void VisitHandlesWithClassIds(Isolate* isolate, void VisitHandlesWithClassIds(Isolate* isolate,
PersistentHandleVisitor* visitor)); PersistentHandleVisitor* visitor));
...@@ -6342,7 +6322,7 @@ class V8_EXPORT V8 { ...@@ -6342,7 +6322,7 @@ class V8_EXPORT V8 {
* garbage collection but is free to visit an arbitrary superset of these * garbage collection but is free to visit an arbitrary superset of these
* objects. * objects.
*/ */
V8_INLINE static V8_DEPRECATE_SOON( V8_INLINE static V8_DEPRECATED(
"Use isolate version", "Use isolate version",
void VisitHandlesForPartialDependence(Isolate* isolate, void VisitHandlesForPartialDependence(Isolate* isolate,
PersistentHandleVisitor* visitor)); PersistentHandleVisitor* visitor));
......
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