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

Unified Diff: runtime/lib/linked_hash_map.cc

Issue 915323002: Compact LinkedHashMap/Set implementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | « runtime/lib/compact_hash.dart ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/linked_hash_map.cc
===================================================================
--- runtime/lib/linked_hash_map.cc (revision 43834)
+++ runtime/lib/linked_hash_map.cc (working copy)
@@ -14,6 +14,7 @@
namespace dart {
DEFINE_FLAG(bool, use_internal_hash_map, false, "Use internal hash map.");
+DEFINE_FLAG(bool, use_compact_hash, false, "Use compact hash map and set.");
DEFINE_NATIVE_ENTRY(LinkedHashMap_allocate, 1) {
const TypeArguments& type_arguments =
@@ -90,7 +91,14 @@
DEFINE_NATIVE_ENTRY(LinkedHashMap_useInternal, 0) {
+ ASSERT(!(FLAG_use_internal_hash_map && FLAG_use_compact_hash));
return Bool::Get(FLAG_use_internal_hash_map).raw();
}
+
+DEFINE_NATIVE_ENTRY(LinkedHashMap_useCompact, 0) {
+ ASSERT(!(FLAG_use_internal_hash_map && FLAG_use_compact_hash));
+ return Bool::Get(FLAG_use_compact_hash).raw();
+}
+
} // namespace dart
« no previous file with comments | « runtime/lib/compact_hash.dart ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698