Bug 932530 - Handle getType failure in DenseAdd IC; r=djvj

--HG--
extra : rebase_source : 3629f728c46c2674c3c51ca90f9e328d1b837499
This commit is contained in:
Terrence Cole 2013-11-01 13:38:45 -07:00
parent 9a0310c37c
commit 992e9b35b6

View File

@ -9236,6 +9236,8 @@ ICUpdatedStub *
ICSetElemDenseAddCompiler::getStubSpecific(ICStubSpace *space, const AutoShapeVector *shapes) ICSetElemDenseAddCompiler::getStubSpecific(ICStubSpace *space, const AutoShapeVector *shapes)
{ {
RootedTypeObject objType(cx, obj_->getType(cx)); RootedTypeObject objType(cx, obj_->getType(cx));
if (!objType)
return nullptr;
Rooted<IonCode *> stubCode(cx, getStubCode()); Rooted<IonCode *> stubCode(cx, getStubCode());
return ICSetElem_DenseAddImpl<ProtoChainDepth>::New(space, stubCode, objType, shapes); return ICSetElem_DenseAddImpl<ProtoChainDepth>::New(space, stubCode, objType, shapes);
} }