| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
| 6 * | 6 * |
| 7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
| 8 * | 8 * |
| 9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
| 10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
| (...skipping 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3139 * The argument information given to function call callbacks. This | 3139 * The argument information given to function call callbacks. This |
| 3140 * class provides access to information about the context of the call, | 3140 * class provides access to information about the context of the call, |
| 3141 * including the receiver, the number and values of arguments, and | 3141 * including the receiver, the number and values of arguments, and |
| 3142 * the holder of the function. | 3142 * the holder of the function. |
| 3143 */ | 3143 */ |
| 3144 template<typename T> | 3144 template<typename T> |
| 3145 class FunctionCallbackInfo { | 3145 class FunctionCallbackInfo { |
| 3146 public: | 3146 public: |
| 3147 V8_INLINE int Length() const; | 3147 V8_INLINE int Length() const; |
| 3148 V8_INLINE Local<Value> operator[](int i) const; | 3148 V8_INLINE Local<Value> operator[](int i) const; |
| 3149 V8_INLINE Local<Function> Callee() const; | 3149 V8_INLINE V8_DEPRECATED("Use Data() to explicitly pass Callee instead", |
| 3150 Local<Function> Callee() const); |
| 3150 V8_INLINE Local<Object> This() const; | 3151 V8_INLINE Local<Object> This() const; |
| 3151 V8_INLINE Local<Object> Holder() const; | 3152 V8_INLINE Local<Object> Holder() const; |
| 3152 V8_INLINE bool IsConstructCall() const; | 3153 V8_INLINE bool IsConstructCall() const; |
| 3153 V8_INLINE Local<Value> Data() const; | 3154 V8_INLINE Local<Value> Data() const; |
| 3154 V8_INLINE Isolate* GetIsolate() const; | 3155 V8_INLINE Isolate* GetIsolate() const; |
| 3155 V8_INLINE ReturnValue<T> GetReturnValue() const; | 3156 V8_INLINE ReturnValue<T> GetReturnValue() const; |
| 3156 // This shouldn't be public, but the arm compiler needs it. | 3157 // This shouldn't be public, but the arm compiler needs it. |
| 3157 static const int kArgsLength = 7; | 3158 static const int kArgsLength = 7; |
| 3158 | 3159 |
| 3159 protected: | 3160 protected: |
| (...skipping 5354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8514 */ | 8515 */ |
| 8515 | 8516 |
| 8516 | 8517 |
| 8517 } // namespace v8 | 8518 } // namespace v8 |
| 8518 | 8519 |
| 8519 | 8520 |
| 8520 #undef TYPE_CHECK | 8521 #undef TYPE_CHECK |
| 8521 | 8522 |
| 8522 | 8523 |
| 8523 #endif // INCLUDE_V8_H_ | 8524 #endif // INCLUDE_V8_H_ |
| OLD | NEW |