зеркало из https://github.com/mozilla/gecko-dev.git
Use int for shift type consistently; optimize primary hash match (NOT PART OF BUILD).
This commit is contained in:
Родитель
408e469b4b
Коммит
e1b56a4ce1
|
@ -162,7 +162,7 @@ static JSDHashEntryHdr *
|
|||
SearchTable(JSDHashTable *table, const void *key, JSDHashNumber keyHash)
|
||||
{
|
||||
JSDHashNumber hash1, hash2;
|
||||
uint32 hashShift;
|
||||
int hashShift;
|
||||
JSDHashEntryHdr *entry;
|
||||
JSDHashMatchEntry matchEntry;
|
||||
|
||||
|
@ -181,7 +181,7 @@ SearchTable(JSDHashTable *table, const void *key, JSDHashNumber keyHash)
|
|||
|
||||
/* Hit: return entry. */
|
||||
matchEntry = table->ops->matchEntry;
|
||||
if (matchEntry(table, entry, key)) {
|
||||
if (entry->keyHash == keyHash && matchEntry(table, entry, key)) {
|
||||
METER(table->stats.hits++);
|
||||
return entry;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче