diff --git a/js/src/jit/IonBuilder.cpp b/js/src/jit/IonBuilder.cpp index 8d905adb8c8..080b9794d39 100644 --- a/js/src/jit/IonBuilder.cpp +++ b/js/src/jit/IonBuilder.cpp @@ -8937,8 +8937,6 @@ IonBuilder::jsop_typeof() current->add(ins); current->push(ins); - if (ins->isEffectful() && !resumeAfter(ins)) - return false; return true; } diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h index 09c91140e28..0db80ebaac5 100644 --- a/js/src/jit/MIR.h +++ b/js/src/jit/MIR.h @@ -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(); } };