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 2941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2952 Local<Context> CreationContext(); | 2952 Local<Context> CreationContext(); |
2953 | 2953 |
2954 /** | 2954 /** |
2955 * Checks whether a callback is set by the | 2955 * Checks whether a callback is set by the |
2956 * ObjectTemplate::SetCallAsFunctionHandler method. | 2956 * ObjectTemplate::SetCallAsFunctionHandler method. |
2957 * When an Object is callable this method returns true. | 2957 * When an Object is callable this method returns true. |
2958 */ | 2958 */ |
2959 bool IsCallable(); | 2959 bool IsCallable(); |
2960 | 2960 |
2961 /** | 2961 /** |
| 2962 * True if this object is a constructor. |
| 2963 */ |
| 2964 bool IsConstructor(); |
| 2965 |
| 2966 /** |
2962 * Call an Object as a function if a callback is set by the | 2967 * Call an Object as a function if a callback is set by the |
2963 * ObjectTemplate::SetCallAsFunctionHandler method. | 2968 * ObjectTemplate::SetCallAsFunctionHandler method. |
2964 */ | 2969 */ |
2965 V8_DEPRECATED("Use maybe version", | 2970 V8_DEPRECATED("Use maybe version", |
2966 Local<Value> CallAsFunction(Local<Value> recv, int argc, | 2971 Local<Value> CallAsFunction(Local<Value> recv, int argc, |
2967 Local<Value> argv[])); | 2972 Local<Value> argv[])); |
2968 V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context, | 2973 V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context, |
2969 Local<Value> recv, | 2974 Local<Value> recv, |
2970 int argc, | 2975 int argc, |
2971 Local<Value> argv[]); | 2976 Local<Value> argv[]); |
(...skipping 5733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8705 */ | 8710 */ |
8706 | 8711 |
8707 | 8712 |
8708 } // namespace v8 | 8713 } // namespace v8 |
8709 | 8714 |
8710 | 8715 |
8711 #undef TYPE_CHECK | 8716 #undef TYPE_CHECK |
8712 | 8717 |
8713 | 8718 |
8714 #endif // INCLUDE_V8_H_ | 8719 #endif // INCLUDE_V8_H_ |
OLD | NEW |