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 2574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2585 V8_DEPRECATE_SOON("Use maybe version", | 2585 V8_DEPRECATE_SOON("Use maybe version", |
2586 bool Set(Handle<Value> key, Handle<Value> value)); | 2586 bool Set(Handle<Value> key, Handle<Value> value)); |
2587 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, | 2587 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, |
2588 Local<Value> key, Local<Value> value); | 2588 Local<Value> key, Local<Value> value); |
2589 | 2589 |
2590 V8_DEPRECATE_SOON("Use maybe version", | 2590 V8_DEPRECATE_SOON("Use maybe version", |
2591 bool Set(uint32_t index, Handle<Value> value)); | 2591 bool Set(uint32_t index, Handle<Value> value)); |
2592 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, | 2592 V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, |
2593 Local<Value> value); | 2593 Local<Value> value); |
2594 | 2594 |
2595 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context, | |
adamk
2015/05/26 18:55:56
Please add a comment explaining what this does, ho
jochen (gone - plz use gerrit)
2015/05/27 07:28:29
done
| |
2596 Local<Name> key, | |
2597 Local<Value> value); | |
2598 V8_WARN_UNUSED_RESULT Maybe<bool> CreateDataProperty(Local<Context> context, | |
2599 uint32_t index, | |
2600 Local<Value> value); | |
2601 | |
2595 // Sets an own property on this object bypassing interceptors and | 2602 // Sets an own property on this object bypassing interceptors and |
2596 // overriding accessors or read-only properties. | 2603 // overriding accessors or read-only properties. |
2597 // | 2604 // |
2598 // Note that if the object has an interceptor the property will be set | 2605 // Note that if the object has an interceptor the property will be set |
2599 // locally, but since the interceptor takes precedence the local property | 2606 // locally, but since the interceptor takes precedence the local property |
2600 // will only be returned if the interceptor doesn't return a value. | 2607 // will only be returned if the interceptor doesn't return a value. |
2601 // | 2608 // |
2602 // Note also that this only works for named properties. | 2609 // Note also that this only works for named properties. |
2603 V8_DEPRECATE_SOON("Use maybe version", | 2610 V8_DEPRECATE_SOON("Use CreateDataProperty", |
2604 bool ForceSet(Handle<Value> key, Handle<Value> value, | 2611 bool ForceSet(Handle<Value> key, Handle<Value> value, |
2605 PropertyAttribute attribs = None)); | 2612 PropertyAttribute attribs = None)); |
2606 // TODO(dcarney): mark V8_WARN_UNUSED_RESULT | 2613 V8_DEPRECATE_SOON("Use CreateDataProperty", |
2607 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key, | 2614 Maybe<bool> ForceSet(Local<Context> context, |
2608 Local<Value> value, PropertyAttribute attribs = None); | 2615 Local<Value> key, Local<Value> value, |
2616 PropertyAttribute attribs = None)); | |
2609 | 2617 |
2610 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Handle<Value> key)); | 2618 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Handle<Value> key)); |
2611 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, | 2619 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, |
2612 Local<Value> key); | 2620 Local<Value> key); |
2613 | 2621 |
2614 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index)); | 2622 V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index)); |
2615 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, | 2623 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, |
2616 uint32_t index); | 2624 uint32_t index); |
2617 | 2625 |
2618 /** | 2626 /** |
(...skipping 5589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8208 */ | 8216 */ |
8209 | 8217 |
8210 | 8218 |
8211 } // namespace v8 | 8219 } // namespace v8 |
8212 | 8220 |
8213 | 8221 |
8214 #undef TYPE_CHECK | 8222 #undef TYPE_CHECK |
8215 | 8223 |
8216 | 8224 |
8217 #endif // V8_H_ | 8225 #endif // V8_H_ |
OLD | NEW |