Devirtualize nvGetCell()

ArrayData::nvGetCell was only called from one place in vectortranslator.cpp
so hand-inline it there using nvGet(), which is already virtual.
Esse commit está contido em:
Edwin Smith
2013-07-05 22:47:09 -07:00
commit de Sara Golemon
commit 5b512b77b6
11 arquivos alterados com 29 adições e 96 exclusões
-12
Ver Arquivo
@@ -1144,18 +1144,6 @@ ArrayData* HphpArray::copyWithStrongIterators() const {
//=============================================================================
// non-variant interface
TypedValue* HphpArray::nvGetCell(int64_t k) const {
ElmInd pos = find(k);
return LIKELY(pos != ElmIndEmpty) ? tvToCell(&m_data[pos].data) :
nvGetNotFound(k);
}
TypedValue* HphpArray::nvGetCell(const StringData* k) const {
ElmInd pos = find(k, k->hash());
return LIKELY(pos != ElmIndEmpty) ? tvToCell(&m_data[pos].data) :
nvGetNotFound(k);
}
TypedValue* HphpArray::nvGet(int64_t ki) const {
ElmInd pos = find(ki);
if (LIKELY(pos != ElmIndEmpty)) {