Bug 860531 - Change AliasSet of MCallGetIntrinsicValue to None. (r=dvander)

This commit is contained in:
Shu-yu Guo 2013-04-18 17:43:26 -07:00
Родитель 2d54e77b8d
Коммит 57c72db790
3 изменённых файлов: 14 добавлений и 2 удалений

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

@ -5737,7 +5737,6 @@ IonBuilder::jsop_intrinsic(HandlePropertyName name)
RootedScript scriptRoot(cx, script());
types::StackTypeSet *barrier = oracle->propertyReadBarrier(scriptRoot, pc);
monitorResult(ins, barrier, types);
return pushTypeBarrier(ins, types, barrier);
}

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

@ -5908,6 +5908,9 @@ class MCallGetIntrinsicValue : public MNullaryInstruction
PropertyName *name() const {
return name_;
}
AliasSet getAliasSet() const {
return AliasSet::None();
}
};
class MCallsiteCloneCache

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

@ -517,7 +517,17 @@ OperatorInI(JSContext *cx, uint32_t index, HandleObject obj, JSBool *out)
bool
GetIntrinsicValue(JSContext *cx, HandlePropertyName name, MutableHandleValue rval)
{
return cx->global()->getIntrinsicValue(cx, name, rval);
if (!cx->global()->getIntrinsicValue(cx, name, rval))
return false;
// This function is called when we try to compile a cold getintrinsic
// op. MCallGetIntrinsicValue has an AliasSet of None for optimization
// purposes, as its side effect is not observable from JS. We are
// guaranteed to bail out after this function, but because of its AliasSet,
// type info will not be reflowed. Manually monitor here.
types::TypeScript::Monitor(cx, rval);
return true;
}
bool