Index: src/keys.h |
diff --git a/src/keys.h b/src/keys.h |
index 63b8b26ce25e386be5c12befa8873be1228ffd1a..c5ac93c098e63b8eab1985cbf7dda48224e06e1b 100644 |
--- a/src/keys.h |
+++ b/src/keys.h |
@@ -53,9 +53,10 @@ class KeyAccumulator final BASE_EMBEDDED { |
Handle<AccessCheckInfo> access_check_info, Handle<JSReceiver> receiver, |
Handle<JSObject> object); |
+ // Might return directly the object's enum_cache, copy the result before using |
+ // as an elements backing store for a JSObject. |
static Handle<FixedArray> GetOwnEnumPropertyKeys(Isolate* isolate, |
Handle<JSObject> object); |
- |
void AddKey(Object* key, AddKeyConversion convert = DO_NOT_CONVERT); |
void AddKey(Handle<Object> key, AddKeyConversion convert = DO_NOT_CONVERT); |
void AddKeys(Handle<FixedArray> array, AddKeyConversion convert); |
@@ -140,6 +141,8 @@ class FastKeyAccumulator { |
MaybeHandle<FixedArray> GetKeysFast(GetKeysConversion convert); |
MaybeHandle<FixedArray> GetKeysSlow(GetKeysConversion convert); |
+ MaybeHandle<FixedArray> GetOwnKeysWithUninitializedEnumCache(); |
+ |
Isolate* isolate_; |
Handle<JSReceiver> receiver_; |
Handle<JSReceiver> last_non_empty_prototype_; |