| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 20c9f844c0bb5c76ac1a7c71d3ea718c84744fdb..a2c35f8415cb2d3a99b440c467be54759bf80934 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -3138,6 +3138,7 @@
|
| public:
|
| V8_INLINE int Length() const;
|
| V8_INLINE Local<Value> operator[](int i) const;
|
| + V8_INLINE Local<Function> Callee() const;
|
| V8_INLINE Local<Object> This() const;
|
| V8_INLINE Local<Object> Holder() const;
|
| V8_INLINE bool IsConstructCall() const;
|
| @@ -3145,7 +3146,7 @@
|
| V8_INLINE Isolate* GetIsolate() const;
|
| V8_INLINE ReturnValue<T> GetReturnValue() const;
|
| // This shouldn't be public, but the arm compiler needs it.
|
| - static const int kArgsLength = 6;
|
| + static const int kArgsLength = 7;
|
|
|
| protected:
|
| friend class internal::FunctionCallbackArguments;
|
| @@ -3155,7 +3156,8 @@
|
| static const int kReturnValueDefaultValueIndex = 2;
|
| static const int kReturnValueIndex = 3;
|
| static const int kDataIndex = 4;
|
| - static const int kContextSaveIndex = 5;
|
| + static const int kCalleeIndex = 5;
|
| + static const int kContextSaveIndex = 6;
|
|
|
| V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args,
|
| internal::Object** values,
|
| @@ -7583,6 +7585,13 @@
|
|
|
|
|
| template<typename T>
|
| +Local<Function> FunctionCallbackInfo<T>::Callee() const {
|
| + return Local<Function>(reinterpret_cast<Function*>(
|
| + &implicit_args_[kCalleeIndex]));
|
| +}
|
| +
|
| +
|
| +template<typename T>
|
| Local<Object> FunctionCallbackInfo<T>::This() const {
|
| return Local<Object>(reinterpret_cast<Object*>(values_ + 1));
|
| }
|
|
|