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

Unified Diff: src/hashmap.h

Issue 8586025: Removing exit time destructors by leaking static members. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Macro-fied the elements accessor list. Created 9 years, 1 month 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
Index: src/hashmap.h
diff --git a/src/hashmap.h b/src/hashmap.h
index 4e6a454a3c9622cebb3e9dc1c609e4c39c31397d..d2d1fafa32480630622c6d831fac06d34a64f430 100644
--- a/src/hashmap.h
+++ b/src/hashmap.h
@@ -46,14 +46,14 @@ class Allocator BASE_EMBEDDED {
class HashMap {
public:
- static Allocator DefaultAllocator;
+ static Allocator* DefaultAllocator;
typedef bool (*MatchFun) (void* key1, void* key2);
// initial_capacity is the size of the initial hash map;
// it must be a power of 2 (and thus must not be 0).
explicit HashMap(MatchFun match,
- Allocator* allocator = &DefaultAllocator,
+ Allocator* allocator = DefaultAllocator,
uint32_t initial_capacity = 8);
~HashMap();
« src/elements.cc ('K') | « src/extensions/gc-extension.cc ('k') | src/hashmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698