Chromium Code Reviews

Side by Side Diff: include/v8.h

Issue 1473783003: Clarify how to replace ForceSet (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« 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 2644 matching lines...)
2655 PropertyAttribute attributes = None); 2655 PropertyAttribute attributes = None);
2656 2656
2657 // Sets an own property on this object bypassing interceptors and 2657 // Sets an own property on this object bypassing interceptors and
2658 // overriding accessors or read-only properties. 2658 // overriding accessors or read-only properties.
2659 // 2659 //
2660 // Note that if the object has an interceptor the property will be set 2660 // Note that if the object has an interceptor the property will be set
2661 // locally, but since the interceptor takes precedence the local property 2661 // locally, but since the interceptor takes precedence the local property
2662 // will only be returned if the interceptor doesn't return a value. 2662 // will only be returned if the interceptor doesn't return a value.
2663 // 2663 //
2664 // Note also that this only works for named properties. 2664 // Note also that this only works for named properties.
2665 V8_DEPRECATE_SOON("Use CreateDataProperty", 2665 V8_DEPRECATE_SOON("Use CreateDataProperty / DefineOwnProperty",
2666 bool ForceSet(Local<Value> key, Local<Value> value, 2666 bool ForceSet(Local<Value> key, Local<Value> value,
2667 PropertyAttribute attribs = None)); 2667 PropertyAttribute attribs = None));
2668 V8_DEPRECATE_SOON("Use CreateDataProperty", 2668 V8_DEPRECATE_SOON("Use CreateDataProperty / DefineOwnProperty",
2669 Maybe<bool> ForceSet(Local<Context> context, 2669 Maybe<bool> ForceSet(Local<Context> context,
2670 Local<Value> key, Local<Value> value, 2670 Local<Value> key, Local<Value> value,
2671 PropertyAttribute attribs = None)); 2671 PropertyAttribute attribs = None));
2672 2672
2673 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key)); 2673 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
2674 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, 2674 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2675 Local<Value> key); 2675 Local<Value> key);
2676 2676
2677 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index)); 2677 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
2678 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, 2678 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
(...skipping 234 matching lines...)
2913 * Returns the identity hash for this object. The current implementation 2913 * Returns the identity hash for this object. The current implementation
2914 * uses a hidden property on the object to store the identity hash. 2914 * uses a hidden property on the object to store the identity hash.
2915 * 2915 *
2916 * The return value will never be 0. Also, it is not guaranteed to be 2916 * The return value will never be 0. Also, it is not guaranteed to be
2917 * unique. 2917 * unique.
2918 */ 2918 */
2919 int GetIdentityHash(); 2919 int GetIdentityHash();
2920 2920
2921 V8_DEPRECATE_SOON("Use v8::Object::SetPrivate instead.", 2921 V8_DEPRECATE_SOON("Use v8::Object::SetPrivate instead.",
2922 bool SetHiddenValue(Local<String> key, Local<Value> value)); 2922 bool SetHiddenValue(Local<String> key, Local<Value> value));
2923 V8_DEPRECATE_SOON("Use v8::Object::GetHidden instead.", 2923 V8_DEPRECATE_SOON("Use v8::Object::GetHidden instead.",
vogelheim 2015/11/25 10:06:57 GetHidden -> GetPrivate [Sorry for drive-by comme
2924 Local<Value> GetHiddenValue(Local<String> key)); 2924 Local<Value> GetHiddenValue(Local<String> key));
2925 V8_DEPRECATE_SOON("Use v8::Object::DeletePrivate instead.", 2925 V8_DEPRECATE_SOON("Use v8::Object::DeletePrivate instead.",
2926 bool DeleteHiddenValue(Local<String> key)); 2926 bool DeleteHiddenValue(Local<String> key));
2927 2927
2928 /** 2928 /**
2929 * Clone this object with a fast but shallow copy. Values will point 2929 * Clone this object with a fast but shallow copy. Values will point
2930 * to the same values as the original object. 2930 * to the same values as the original object.
2931 */ 2931 */
2932 // TODO(dcarney): take an isolate and optionally bail out? 2932 // TODO(dcarney): take an isolate and optionally bail out?
2933 Local<Object> Clone(); 2933 Local<Object> Clone();
(...skipping 5541 matching lines...)
8475 */ 8475 */
8476 8476
8477 8477
8478 } // namespace v8 8478 } // namespace v8
8479 8479
8480 8480
8481 #undef TYPE_CHECK 8481 #undef TYPE_CHECK
8482 8482
8483 8483
8484 #endif // V8_H_ 8484 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine