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

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: remove debug code 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') | test/cctest/test-api.cc » ('J')
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 2613 matching lines...) Expand 10 before | Expand all | Expand 10 after
2624 */ 2624 */
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 enum class KeyCollectionMode { kOwnOnly, kIncludePrototypes };
Igor Sheludko 2016/05/30 13:35:37 This is a public API, we probably need some commen
2635
2636 enum class IndexFilter { kIncludeIndices, kSkipIndices };
2637
2634 /** 2638 /**
2635 * Integrity level for objects. 2639 * Integrity level for objects.
2636 */ 2640 */
2637 enum class IntegrityLevel { kFrozen, kSealed }; 2641 enum class IntegrityLevel { kFrozen, kSealed };
2638 2642
2639 /** 2643 /**
2640 * A JavaScript object (ECMA-262, 4.3.3) 2644 * A JavaScript object (ECMA-262, 4.3.3)
2641 */ 2645 */
2642 class V8_EXPORT Object : public Value { 2646 class V8_EXPORT Object : public Value {
2643 public: 2647 public:
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 2777
2774 /** 2778 /**
2775 * Returns an array containing the names of the enumerable properties 2779 * Returns an array containing the names of the enumerable properties
2776 * of this object, including properties from prototype objects. The 2780 * of this object, including properties from prototype objects. The
2777 * array returned by this method contains the same values as would 2781 * array returned by this method contains the same values as would
2778 * be enumerated by a for-in statement over this object. 2782 * be enumerated by a for-in statement over this object.
2779 */ 2783 */
2780 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames()); 2784 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetPropertyNames());
2781 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames( 2785 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
2782 Local<Context> context); 2786 Local<Context> context);
2787 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
2788 Local<Context> context, KeyCollectionMode mode,
2789 PropertyFilter property_filter, IndexFilter index_filter);
2783 2790
2784 /** 2791 /**
2785 * This function has the same functionality as GetPropertyNames but 2792 * This function has the same functionality as GetPropertyNames but
2786 * the returned array doesn't contain the names of properties from 2793 * the returned array doesn't contain the names of properties from
2787 * prototype objects. 2794 * prototype objects.
2788 */ 2795 */
2789 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames()); 2796 V8_DEPRECATE_SOON("Use maybe version", Local<Array> GetOwnPropertyNames());
2790 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetOwnPropertyNames( 2797 V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetOwnPropertyNames(
2791 Local<Context> context); 2798 Local<Context> context);
2792 2799
(...skipping 5985 matching lines...) Expand 10 before | Expand all | Expand 10 after
8778 */ 8785 */
8779 8786
8780 8787
8781 } // namespace v8 8788 } // namespace v8
8782 8789
8783 8790
8784 #undef TYPE_CHECK 8791 #undef TYPE_CHECK
8785 8792
8786 8793
8787 #endif // INCLUDE_V8_H_ 8794 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698