Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index 310aeacfb9a1f40e293c89a15f435c8521f7639d..47d21bac15e8a253829eeddc5a582258618ecd7e 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -1557,7 +1557,7 @@ int DuplicateFinder::AddSymbol(i::Vector<const byte> key, |
int value) { |
uint32_t hash = Hash(key, is_ascii); |
byte* encoding = BackupKey(key, is_ascii); |
- i::HashMap::Entry* entry = map_->Lookup(encoding, hash, true); |
+ i::HashMap::Entry* entry = map_.Lookup(encoding, hash, true); |
int old_value = static_cast<int>(reinterpret_cast<intptr_t>(entry->value)); |
entry->value = |
reinterpret_cast<void*>(static_cast<intptr_t>(value | old_value)); |
@@ -1584,7 +1584,8 @@ int DuplicateFinder::AddNumber(i::Vector<const char> key, int value) { |
i::Vector<char>(number_buffer_, kBufferSize)); |
length = i::StrLength(string); |
} |
- return AddAsciiSymbol(i::Vector<const char>(string, length), value); |
+ return AddSymbol(i::Vector<const byte>(reinterpret_cast<const byte*>(string), |
+ length), true, value); |
} |