Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: include/v8.h

Issue 1627233002: Add v8::Object::CreationContext that works for a persistent handle (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698