Bug 1029830 - IonMonkey: GVN: Rename "insert" to "add" for consistency with the HashSet API r=nbp

This commit is contained in:
Dan Gohman 2014-09-17 10:27:24 -07:00
parent 9bcda3e23a
commit 3c27b74805
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ ValueNumberer::VisibleValues::findLeaderForAdd(MDefinition *def)
// Insert a value into the set.
bool
ValueNumberer::VisibleValues::insert(AddPtr p, MDefinition *def)
ValueNumberer::VisibleValues::add(AddPtr p, MDefinition *def)
{
return set_.add(p, def);
}
@ -421,7 +421,7 @@ ValueNumberer::leader(MDefinition *def)
values_.overwrite(p, def);
} else {
// No match. Add a new entry.
if (!values_.insert(p, def))
if (!values_.add(p, def))
return nullptr;
}
}

View File

@ -48,7 +48,7 @@ class ValueNumberer
Ptr findLeader(const MDefinition *def) const;
AddPtr findLeaderForAdd(MDefinition *def);
bool insert(AddPtr p, MDefinition *def);
bool add(AddPtr p, MDefinition *def);
void overwrite(AddPtr p, MDefinition *def);
void forget(const MDefinition *def);
void clear();