| 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 2929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2940 * to the same values as the original object. | 2940 * to the same values as the original object. |
| 2941 */ | 2941 */ |
| 2942 // TODO(dcarney): take an isolate and optionally bail out? | 2942 // TODO(dcarney): take an isolate and optionally bail out? |
| 2943 Local<Object> Clone(); | 2943 Local<Object> Clone(); |
| 2944 | 2944 |
| 2945 /** | 2945 /** |
| 2946 * Returns the context in which the object was created. | 2946 * Returns the context in which the object was created. |
| 2947 */ | 2947 */ |
| 2948 Local<Context> CreationContext(); | 2948 Local<Context> CreationContext(); |
| 2949 | 2949 |
| 2950 /** Same as above, but works for Persistents */ |
| 2951 V8_INLINE static Local<Context> CreationContext( |
| 2952 const PersistentBase<Object>& object) { |
| 2953 return object.val_->CreationContext(); |
| 2954 } |
| 2955 |
| 2950 /** | 2956 /** |
| 2951 * Checks whether a callback is set by the | 2957 * Checks whether a callback is set by the |
| 2952 * ObjectTemplate::SetCallAsFunctionHandler method. | 2958 * ObjectTemplate::SetCallAsFunctionHandler method. |
| 2953 * When an Object is callable this method returns true. | 2959 * When an Object is callable this method returns true. |
| 2954 */ | 2960 */ |
| 2955 bool IsCallable(); | 2961 bool IsCallable(); |
| 2956 | 2962 |
| 2957 /** | 2963 /** |
| 2958 * Call an Object as a function if a callback is set by the | 2964 * Call an Object as a function if a callback is set by the |
| 2959 * ObjectTemplate::SetCallAsFunctionHandler method. | 2965 * ObjectTemplate::SetCallAsFunctionHandler method. |
| (...skipping 5563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8523 */ | 8529 */ |
| 8524 | 8530 |
| 8525 | 8531 |
| 8526 } // namespace v8 | 8532 } // namespace v8 |
| 8527 | 8533 |
| 8528 | 8534 |
| 8529 #undef TYPE_CHECK | 8535 #undef TYPE_CHECK |
| 8530 | 8536 |
| 8531 | 8537 |
| 8532 #endif // INCLUDE_V8_H_ | 8538 #endif // INCLUDE_V8_H_ |
| OLD | NEW |