Bug 845519 - Spot-fix Unrooted-related problems. r=terrence

--HG--
extra : rebase_source : d725080582e51c4d6385b0adbb188933641988bd
This commit is contained in:
Steve Fink 2013-02-28 13:24:47 -08:00
parent 7ed8fd38e9
commit d7df2816c1
2 changed files with 2 additions and 2 deletions

View File

@ -502,7 +502,7 @@ class IonBuilder : public MIRGenerator
void clearForBackEnd();
UnrootedScript script() const { return script_.get(); }
JSScript *script() const { return script_.get(); }
CodeGenerator *backgroundCodegen() const { return backgroundCodegen_; }
void setBackgroundCodegen(CodeGenerator *codegen) { backgroundCodegen_ = codegen; }

View File

@ -310,7 +310,7 @@ TypeInferenceOracle::elementReadIsTypedArray(RawScript script, jsbytecode *pc, i
{
// Check whether the object is a typed array and index is int32 or double.
StackTypeSet *obj = script->analysis()->poppedTypes(pc, 1);
StackTypeSet *id = DropUnrooted(script)->analysis()->poppedTypes(pc, 0);
StackTypeSet *id = script->analysis()->poppedTypes(pc, 0);
JSValueType idType = id->getKnownTypeTag();
if (idType != JSVAL_TYPE_INT32 && idType != JSVAL_TYPE_DOUBLE)