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

Unified Diff: test/cctest/test-hashmap.cc

Issue 2369963002: [base] Remove PointersMatch, making a separate std::equals hashmap (Closed)
Patch Set: Fix the other simulators Created 4 years, 3 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 | « test/cctest/test-api.cc ('k') | test/cctest/test-heap-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-hashmap.cc
diff --git a/test/cctest/test-hashmap.cc b/test/cctest/test-hashmap.cc
index 2d423b454369a24f609718cdbe793e6c208265fe..b1adc7b0051a4349cbece57729b17f1f88801911 100644
--- a/test/cctest/test-hashmap.cc
+++ b/test/cctest/test-hashmap.cc
@@ -34,17 +34,13 @@
using namespace v8::internal;
-static bool DefaultMatchFun(void* a, void* b) {
- return a == b;
-}
-
typedef uint32_t (*IntKeyHash)(uint32_t key);
class IntSet {
public:
- explicit IntSet(IntKeyHash hash) : hash_(hash), map_(DefaultMatchFun) {}
+ explicit IntSet(IntKeyHash hash) : hash_(hash) {}
void Insert(int x) {
CHECK_NE(0, x); // 0 corresponds to (void*)NULL - illegal key value
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698