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

Unified Diff: src/objects.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 print Created 4 years, 7 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
« include/v8.h ('K') | « src/keys.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 7d7d233e6c2e0b0938dae7fbe1af041ed6ceaee4..7b31b7a7fdc4aae0b35dcefe683e7abda42b0757 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1798,10 +1798,14 @@ enum AccessorComponent {
ACCESSOR_SETTER
};
-
-enum GetKeysConversion { KEEP_NUMBERS, CONVERT_TO_STRING };
-
-enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS };
+enum class GetKeysConversion { kKeepNumbers, kConvertToString };
+
+enum class KeyCollectionMode { kOwnOnly, kIncludePrototypes };
+STATIC_ASSERT(KeyCollectionMode::kOwnOnly ==
+ static_cast<KeyCollectionMode>(v8::KeyCollectionMode::kOwnOnly));
+STATIC_ASSERT(
+ KeyCollectionMode::kIncludePrototypes ==
+ static_cast<KeyCollectionMode>(v8::KeyCollectionMode::kIncludePrototypes));
// JSReceiver includes types on which properties can be defined, i.e.,
// JSObject and JSProxy.
« include/v8.h ('K') | « src/keys.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698