| Index: src/interface.cc
|
| diff --git a/src/interface.cc b/src/interface.cc
|
| index bd50c61ea73c90455ce94b5784a3deed9cdd554e..88bfcc22c0de78488fa3f733ebe3d5d7181dfbfa 100644
|
| --- a/src/interface.cc
|
| +++ b/src/interface.cc
|
| @@ -9,15 +9,6 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -static bool Match(void* key1, void* key2) {
|
| - String* name1 = *static_cast<String**>(key1);
|
| - String* name2 = *static_cast<String**>(key2);
|
| - ASSERT(name1->IsInternalizedString());
|
| - ASSERT(name2->IsInternalizedString());
|
| - return name1 == name2;
|
| -}
|
| -
|
| -
|
| Interface* Interface::Lookup(Handle<String> name, Zone* zone) {
|
| ASSERT(IsModule());
|
| ZoneHashMap* map = Chase()->exports_;
|
| @@ -57,8 +48,10 @@ void Interface::DoAdd(
|
| PrintF("%*s# Adding...\n", Nesting::current(), "");
|
| PrintF("%*sthis = ", Nesting::current(), "");
|
| this->Print(Nesting::current());
|
| - PrintF("%*s%s : ", Nesting::current(), "",
|
| - (*static_cast<String**>(name))->ToAsciiArray());
|
| + ParserSymbolTable::Symbol* symbol =
|
| + static_cast<ParserSymbolTable::Symbol*>(name);
|
| + PrintF("%*s%.*s : ", Nesting::current(), "", symbol->literal_bytes.length(),
|
| + symbol->literal_bytes.start());
|
| interface->Print(Nesting::current());
|
| }
|
| #endif
|
| @@ -68,7 +61,8 @@ void Interface::DoAdd(
|
|
|
| if (*map == NULL) {
|
| *map = new(zone->New(sizeof(ZoneHashMap)))
|
| - ZoneHashMap(Match, ZoneHashMap::kDefaultHashMapCapacity, allocator);
|
| + ZoneHashMap(ZoneHashMap::PointersMatch,
|
| + ZoneHashMap::kDefaultHashMapCapacity, allocator);
|
| }
|
|
|
| ZoneHashMap::Entry* p = (*map)->Lookup(name, hash, !IsFrozen(), allocator);
|
|
|