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

Unified Diff: src/objects.h

Issue 1608523002: [runtime] Do not use the enum-cache for non-prototype objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: signed unsigned missmatch Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/messages.cc ('k') | 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 429bd49c3399ec2d8bb620d1d46501ad840a1cf2..b244c0e6a94e6b464d943874423653503103c525 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2284,9 +2284,6 @@ class JSObject: public JSReceiver {
inline void SetInternalField(int index, Object* value);
inline void SetInternalField(int index, Smi* value);
- void CollectOwnPropertyNames(KeyAccumulator* keys,
- PropertyFilter filter = ALL_PROPERTIES);
-
// 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.
@@ -2296,12 +2293,15 @@ class JSObject: public JSReceiver {
// TODO(jkummerow): Deprecated, only used by Object.observe.
int GetOwnElementKeys(FixedArray* storage, PropertyFilter filter);
+ void CollectOwnPropertyKeys(
+ KeyAccumulator* keys, PropertyFilter filter = ALL_PROPERTIES,
+ JSReceiver::KeyCollectionType type = JSReceiver::OWN_ONLY);
+
static void CollectOwnElementKeys(Handle<JSObject> object,
KeyAccumulator* keys,
PropertyFilter filter);
-
- static Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object,
- bool cache_result);
+ static Handle<FixedArray> GetOwnEnumPropertyKeys(Handle<JSObject> object,
+ bool cache_result);
// Returns a new map with all transitions dropped from the object's current
// map and the ElementsKind set.
@@ -2555,6 +2555,9 @@ class JSObject: public JSReceiver {
Handle<JSObject> object, Handle<Object> value, bool from_javascript,
ShouldThrow should_throw);
+ void CollectFastPropertyKeysTo(KeyAccumulator* keys, PropertyFilter filter,
+ JSReceiver::KeyCollectionType type);
+
DISALLOW_IMPLICIT_CONSTRUCTORS(JSObject);
};
« no previous file with comments | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698