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

Unified Diff: src/identity-map.h

Issue 1696363002: Use a better hash function in IdentityMap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « no previous file | src/identity-map.cc » ('j') | src/identity-map.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/identity-map.h
diff --git a/src/identity-map.h b/src/identity-map.h
index de0aef5bd4524202f80fbed324c254528fd7dda1..ad2a2607693d34724c7417535eb5939088303f3f 100644
--- a/src/identity-map.h
+++ b/src/identity-map.h
@@ -5,6 +5,7 @@
#ifndef V8_IDENTITY_MAP_H_
#define V8_IDENTITY_MAP_H_
+#include "src/base/functional.h"
#include "src/handles.h"
namespace v8 {
@@ -48,6 +49,7 @@ class IdentityMapBase {
RawEntry Insert(Object* key);
int Hash(Object* address);
+ base::hash<uintptr_t> hasher_;
Heap* heap_;
Zone* zone_;
int gc_counter_;
« no previous file with comments | « no previous file | src/identity-map.cc » ('j') | src/identity-map.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698