Bug 914132 part 1 - MTypeOf should never be effectful. r=evilpie

This commit is contained in:
Jan de Mooij 2013-09-10 16:16:59 +02:00
parent 2dbe63d2e2
commit 712a357915
2 changed files with 1 additions and 7 deletions

View File

@ -8937,8 +8937,6 @@ IonBuilder::jsop_typeof()
current->add(ins);
current->push(ins);
if (ins->isEffectful() && !resumeAfter(ins))
return false;
return true;
}

View File

@ -2919,11 +2919,7 @@ class MTypeOf
MDefinition *foldsTo(bool useValueNumbers);
AliasSet getAliasSet() const {
if (inputType_ <= MIRType_String)
return AliasSet::None();
// For objects, typeof may invoke an effectful typeof hook.
return AliasSet::Store(AliasSet::Any);
return AliasSet::None();
}
};