Commit ea5a1ac8 authored by epertoso's avatar epertoso Committed by Commit bot

Marks FunctionCallbackInfo's Callee as deprecated.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#33319}
parent 489e7e39
...@@ -3146,7 +3146,8 @@ class FunctionCallbackInfo { ...@@ -3146,7 +3146,8 @@ class FunctionCallbackInfo {
public: public:
V8_INLINE int Length() const; V8_INLINE int Length() const;
V8_INLINE Local<Value> operator[](int i) const; V8_INLINE Local<Value> operator[](int i) const;
V8_INLINE Local<Function> Callee() const; V8_INLINE V8_DEPRECATED("Use Data() to explicitly pass Callee instead",
Local<Function> Callee() const);
V8_INLINE Local<Object> This() const; V8_INLINE Local<Object> This() const;
V8_INLINE Local<Object> Holder() const; V8_INLINE Local<Object> Holder() const;
V8_INLINE bool IsConstructCall() const; V8_INLINE bool IsConstructCall() const;
......
...@@ -7679,7 +7679,6 @@ static void ArgumentsTestCallback( ...@@ -7679,7 +7679,6 @@ static void ArgumentsTestCallback(
ApiTestFuzzer::Fuzz(); ApiTestFuzzer::Fuzz();
v8::Isolate* isolate = args.GetIsolate(); v8::Isolate* isolate = args.GetIsolate();
Local<Context> context = isolate->GetCurrentContext(); Local<Context> context = isolate->GetCurrentContext();
CHECK(args_fun->Equals(context, args.Callee()).FromJust());
CHECK_EQ(3, args.Length()); CHECK_EQ(3, args.Length());
CHECK(v8::Integer::New(isolate, 1)->Equals(context, args[0]).FromJust()); CHECK(v8::Integer::New(isolate, 1)->Equals(context, args[0]).FromJust());
CHECK(v8::Integer::New(isolate, 2)->Equals(context, args[1]).FromJust()); CHECK(v8::Integer::New(isolate, 2)->Equals(context, args[1]).FromJust());
...@@ -21928,7 +21927,6 @@ class ApiCallOptimizationChecker { ...@@ -21928,7 +21927,6 @@ class ApiCallOptimizationChecker {
static void OptimizationCallback( static void OptimizationCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) { const v8::FunctionCallbackInfo<v8::Value>& info) {
CHECK(callee == info.Callee());
CHECK(data == info.Data()); CHECK(data == info.Data());
CHECK(receiver == info.This()); CHECK(receiver == info.This());
if (info.Length() == 1) { if (info.Length() == 1) {
......
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