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

Side by Side Diff: include/v8.h

Issue 2002203002: [api] Add more parameters to Object::GetPropertyNames (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2016-05-06_keys_fast_path_1995263002
Patch Set: addressing nits Created 4 years, 6 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 | src/api.cc » ('j') | 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 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 enum PropertyFilter { 2625 enum PropertyFilter {
2626 ALL_PROPERTIES = 0, 2626 ALL_PROPERTIES = 0,
2627 ONLY_WRITABLE = 1, 2627 ONLY_WRITABLE = 1,
2628 ONLY_ENUMERABLE = 2, 2628 ONLY_ENUMERABLE = 2,
2629 ONLY_CONFIGURABLE = 4, 2629 ONLY_CONFIGURABLE = 4,
2630 SKIP_STRINGS = 8, 2630 SKIP_STRINGS = 8,
2631 SKIP_SYMBOLS = 16 2631 SKIP_SYMBOLS = 16
2632 }; 2632 };
2633 2633
2634 /** 2634 /**
2635 * Keys/Properties filter enums:
2636 *
2637 * KeyCollectionMode limits the range of collected properties. kOwnOnly limits
2638 * the collected properties to the given Object only. kIncludesPrototypes will
2639 * include all keys of the objects's prototype chain as well.
2640 */
2641 enum class KeyCollectionMode { kOwnOnly, kIncludePrototypes };
2642
2643 /**
2644 * kIncludesIndices allows for integer indices to be collected, while
2645 * kSkipIndices will exclude integer indicies from being collected.
2646 */
2647 enum class IndexFilter { kIncludeIndices, kSkipIndices };
2648
2649 /**
2635 * Integrity level for objects. 2650 * Integrity level for objects.
2636 */ 2651 */
2637 enum class IntegrityLevel { kFrozen, kSealed }; 2652 enum class IntegrityLevel { kFrozen, kSealed };
2638 2653
2639 /** 2654 /**
2640 * A JavaScript object (ECMA-262, 4.3.3) 2655 * A JavaScript object (ECMA-262, 4.3.3)
2641 */ 2656 */
2642 class V8_EXPORT Object : public Value { 2657 class V8_EXPORT Object : public Value {
2643 public: 2658 public:
2644 V8_DEPRECATE_SOON("Use maybe version", 2659 V8_DEPRECATE_SOON("Use maybe version",
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 2788
2774 /** 2789 /**
2775 * Returns an array containing the names of the enumerable properties 2790 * Returns an array containing the names of the enumerable properties
2776 * of this object, including properties from prototype objects. The 2791 * of this object, including properties from prototype objects. The
2777 * array returned by this method contains the same values as would 2792 * array returned by this method contains the same values as would
2778 * be enumerated by a for-in statement over this object. 2793 * be enumerated by a for-in statement over this object.
2779 */ 2794 */
2780 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames()); 2795 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames());
2781 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames( 2796 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
2782 Local<Context> context); 2797 Local<Context> context);
2798 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
2799 Local<Context> context, KeyCollectionMode mode,
2800 PropertyFilter property_filter, IndexFilter index_filter);
2783 2801
2784 /** 2802 /**
2785 * This function has the same functionality as GetPropertyNames but 2803 * This function has the same functionality as GetPropertyNames but
2786 * the returned array doesn't contain the names of properties from 2804 * the returned array doesn't contain the names of properties from
2787 * prototype objects. 2805 * prototype objects.
2788 */ 2806 */
2789 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames()); 2807 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames());
2790 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetOwnPropertyNames( 2808 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetOwnPropertyNames(
2791 Local<Context> context); 2809 Local<Context> context);
2792 2810
(...skipping 5985 matching lines...) Expand 10 before | Expand all | Expand 10 after
8778 */ 8796 */
8779 8797
8780 8798
8781 } // namespace v8 8799 } // namespace v8
8782 8800
8783 8801
8784 #undef TYPE_CHECK 8802 #undef TYPE_CHECK
8785 8803
8786 8804
8787 #endif // INCLUDE_V8_H_ 8805 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698