Don't spillStack as much for CGetM

I forgot to test wantPropSpecializedWarnings for simple
CGetMs that don't have an hphpc-infered type.
Esse commit está contido em:
jdelong
2013-04-13 17:10:48 -07:00
commit de Sara Golemon
commit 17344c4b5a
@@ -371,14 +371,16 @@ void HhbcTranslator::VectorTranslator::checkMIState() {
* told us it can't be KindOfUninit, even if
* wantPropSpecializedWarnings we can't throw.
*/
if (isCGetM && isSingle && simpleProp) {
auto info = getFinalPropertyOffset(m_ni, m_mii);
assert(info.offset != -1);
if (info.hphpcType == KindOfInvalid) {
if (wantPropSpecializedWarnings()) {
if (isCGetM && isSingle && simpleProp) {
auto info = getFinalPropertyOffset(m_ni, m_mii);
assert(info.offset != -1);
if (info.hphpcType == KindOfInvalid) {
m_ht.spillStack();
}
} else {
m_ht.spillStack();
}
} else if (wantPropSpecializedWarnings()) {
m_ht.spillStack();
}
}