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

Unified Diff: src/modules.cc

Issue 1069423003: Remove comparison operator and helper function from AstRawString interface (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « src/ast-value-factory.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/modules.cc
diff --git a/src/modules.cc b/src/modules.cc
index 267c398c472c74ac035c7880fa04d9773762a5dd..863443e627fbb670694d3a3c67415ad4a1ac8393 100644
--- a/src/modules.cc
+++ b/src/modules.cc
@@ -20,8 +20,9 @@ void ModuleDescriptor::AddLocalExport(const AstRawString* export_name,
ZoneAllocationPolicy allocator(zone);
if (exports_ == nullptr) {
- exports_ = new (zone->New(sizeof(ZoneHashMap))) ZoneHashMap(
- AstRawString::Compare, ZoneHashMap::kDefaultHashMapCapacity, allocator);
+ exports_ = new (zone->New(sizeof(ZoneHashMap)))
+ ZoneHashMap(ZoneHashMap::PointersMatch,
+ ZoneHashMap::kDefaultHashMapCapacity, allocator);
}
ZoneHashMap::Entry* p =
« no previous file with comments | « src/ast-value-factory.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698