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

Unified Diff: src/objects.h

Issue 1510083003: [cleanup] Introduce HasEnumerableElements() helper (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: added TODO as discussed Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index d30b2043d239202298d3e627e845bb2e3eee09bc..76690de86bf0c888ec157d0504c6f9f4dfc0275b 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2270,12 +2270,13 @@ class JSObject: public JSReceiver {
// Returns the number of properties on this object filtering out properties
// with the specified attributes (ignoring interceptors).
+ // TODO(jkummerow): Deprecated, only used by Object.observe.
int NumberOfOwnElements(PropertyFilter filter);
- // Returns the number of enumerable elements (ignoring interceptors).
- int NumberOfEnumElements();
// Returns the number of elements on this object filtering out elements
// with the specified attributes (ignoring interceptors).
+ // TODO(jkummerow): Deprecated, only used by Object.observe.
int GetOwnElementKeys(FixedArray* storage, PropertyFilter filter);
+
static void CollectOwnElementKeys(Handle<JSObject> object,
KeyAccumulator* keys,
PropertyFilter filter);
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698