Bug 844305 - Check that excluded type are included before generating guards. r=bhackett

This commit is contained in:
Nicolas B. Pierron 2013-02-25 16:27:51 -08:00
Родитель 3bd0bd475d
Коммит 53573c675f
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -3031,9 +3031,7 @@ IonBuilder::addTypeBarrier(uint32_t i, CallInfo &callinfo, types::StackTypeSet *
}
while (excluded) {
if (excluded->target == calleeObs) {
JS_ASSERT(callerObs->hasType(excluded->type));
if (excluded->target == calleeObs && callerObs->hasType(excluded->type)) {
if (excluded->type == types::Type::DoubleType() &&
calleeObs->hasType(types::Type::Int32Type())) {
// The double type also implies int32, so this implies that