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

Unified Diff: runtime/vm/hash_map.h

Issue 2761593002: Reapply "DWARF and unwind support for AOT assembly output." (Closed)
Patch Set: Created 3 years, 9 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/vm/flags.cc ('k') | runtime/vm/native_symbol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/hash_map.h
diff --git a/runtime/vm/hash_map.h b/runtime/vm/hash_map.h
index ff473013f4d643cd115d200dcf0a25fb716b1ce1..3bb99649bf0240f62da05fe71193650fc6115c76 100644
--- a/runtime/vm/hash_map.h
+++ b/runtime/vm/hash_map.h
@@ -39,6 +39,9 @@ class BaseDirectChainedHashMap : public B {
typename KeyValueTrait::Key key) const;
typename KeyValueTrait::Pair* Lookup(typename KeyValueTrait::Key key) const;
+ bool HasKey(typename KeyValueTrait::Key key) const {
+ return Lookup(key) != NULL;
+ }
bool IsEmpty() const { return count_ == 0; }
@@ -378,6 +381,10 @@ class DirectChainedHashMap
DirectChainedHashMap()
: BaseDirectChainedHashMap<KeyValueTrait, ValueObject>(
ASSERT_NOTNULL(Thread::Current()->zone())) {}
+
+ explicit DirectChainedHashMap(Zone* zone)
+ : BaseDirectChainedHashMap<KeyValueTrait, ValueObject>(
+ ASSERT_NOTNULL(zone)) {}
};
« no previous file with comments | « runtime/vm/flags.cc ('k') | runtime/vm/native_symbol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698