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 2636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2647 * | 2647 * |
2648 * TODO(dcarney): Remove PROHIBITS_OVERWRITING as it is now unused. | 2648 * TODO(dcarney): Remove PROHIBITS_OVERWRITING as it is now unused. |
2649 */ | 2649 */ |
2650 enum AccessControl { | 2650 enum AccessControl { |
2651 DEFAULT = 0, | 2651 DEFAULT = 0, |
2652 ALL_CAN_READ = 1, | 2652 ALL_CAN_READ = 1, |
2653 ALL_CAN_WRITE = 1 << 1, | 2653 ALL_CAN_WRITE = 1 << 1, |
2654 PROHIBITS_OVERWRITING = 1 << 2 | 2654 PROHIBITS_OVERWRITING = 1 << 2 |
2655 }; | 2655 }; |
2656 | 2656 |
2657 enum PropertyFilter { | |
2658 ALL_PROPERTIES = 0, | |
2659 ONLY_WRITABLE = 1, | |
Yang
2016/05/03 13:50:20
"ONLY" is a bit misleading. When you use 3 as filt
jochen (gone - plz use gerrit)
2016/05/03 14:44:39
would be nice to have a comment that says that thi
kozy
2016/05/03 17:37:46
Acknowledged.
kozy
2016/05/03 17:37:46
Done.
| |
2660 ONLY_ENUMERABLE = 2, | |
2661 ONLY_CONFIGURABLE = 4, | |
2662 SKIP_STRINGS = 8, | |
2663 SKIP_SYMBOLS = 16 | |
2664 }; | |
2665 | |
2657 /** | 2666 /** |
2658 * Integrity level for objects. | 2667 * Integrity level for objects. |
2659 */ | 2668 */ |
2660 enum class IntegrityLevel { kFrozen, kSealed }; | 2669 enum class IntegrityLevel { kFrozen, kSealed }; |
2661 | 2670 |
2662 /** | 2671 /** |
2663 * A JavaScript object (ECMA-262, 4.3.3) | 2672 * A JavaScript object (ECMA-262, 4.3.3) |
2664 */ | 2673 */ |
2665 class V8_EXPORT Object : public Value { | 2674 class V8_EXPORT Object : public Value { |
2666 public: | 2675 public: |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2807 /** | 2816 /** |
2808 * This function has the same functionality as GetPropertyNames but | 2817 * This function has the same functionality as GetPropertyNames but |
2809 * the returned array doesn't contain the names of properties from | 2818 * the returned array doesn't contain the names of properties from |
2810 * prototype objects. | 2819 * prototype objects. |
2811 */ | 2820 */ |
2812 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames()); | 2821 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames()); |
2813 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetOwnPropertyNames( | 2822 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetOwnPropertyNames( |
2814 Local<Context> context); | 2823 Local<Context> context); |
2815 | 2824 |
2816 /** | 2825 /** |
2826 * Returns an array containing the names of the filtered properties | |
2827 * of this object, including properties from prototype objects. The | |
2828 * array returned by this method contains the same values as would | |
2829 * be enumerated by a for-in statement over this object. | |
2830 */ | |
2831 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetOwnPropertyNames( | |
2832 Local<Context> context, PropertyFilter filter); | |
2833 | |
2834 /** | |
2817 * Get the prototype object. This does not skip objects marked to | 2835 * Get the prototype object. This does not skip objects marked to |
2818 * be skipped by __proto__ and it does not consult the security | 2836 * be skipped by __proto__ and it does not consult the security |
2819 * handler. | 2837 * handler. |
2820 */ | 2838 */ |
2821 Local<Value> GetPrototype(); | 2839 Local<Value> GetPrototype(); |
2822 | 2840 |
2823 /** | 2841 /** |
2824 * Set the prototype object. This does not skip objects marked to | 2842 * Set the prototype object. This does not skip objects marked to |
2825 * be skipped by __proto__ and it does not consult the security | 2843 * be skipped by __proto__ and it does not consult the security |
2826 * handler. | 2844 * handler. |
(...skipping 5947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8774 */ | 8792 */ |
8775 | 8793 |
8776 | 8794 |
8777 } // namespace v8 | 8795 } // namespace v8 |
8778 | 8796 |
8779 | 8797 |
8780 #undef TYPE_CHECK | 8798 #undef TYPE_CHECK |
8781 | 8799 |
8782 | 8800 |
8783 #endif // INCLUDE_V8_H_ | 8801 #endif // INCLUDE_V8_H_ |
OLD | NEW |