Bug 800568 - Remove spurious use of potentially-nonexistant pushedTypes in callGetter IC code. (r=nbp)

This commit is contained in:
Kannan Vijayan 2012-10-26 21:01:15 -04:00
parent a5df34dfbf
commit fee107739d

View File

@ -273,7 +273,7 @@ struct GetNativePropertyStub
bool generateCallGetter(JSContext *cx, MacroAssembler &masm, JSObject *obj,
PropertyName *propName, JSObject *holder, const Shape *shape,
RegisterSet &liveRegs, Register object, TypedOrValueRegister output,
types::TypeSet *outputTypes, void *returnAddr, jsbytecode *pc,
void *returnAddr, jsbytecode *pc,
RepatchLabel *failures, Label *nonRepatchFailures = NULL)
{
// Initial shape check.
@ -585,13 +585,9 @@ IonCacheGetProperty::attachCallGetter(JSContext *cx, IonScript *ion, JSObject *o
// properly constructed.
masm.setFramePushed(ion->frameSize());
// Generating a call getter may need the pushed typeset.
types::StackTypeSet *outputTypes = script->analysis()->pushedTypes(pc, 0);
GetNativePropertyStub getprop;
if (!getprop.generateCallGetter(cx, masm, obj, name(), holder, shape, liveRegs,
object(), output(), outputTypes, returnAddr, pc,
&failures))
object(), output(), returnAddr, pc, &failures))
{
return false;
}