Bug 477048 - Assertion failure: cg->stackDepth == loopDepth, at ../jsemit.cpp. r=brendan.

This commit is contained in:
Jason Orendorff 2009-02-06 11:04:49 -06:00
parent dcbe94da52
commit 8a3b35c57e

View File

@ -2352,9 +2352,10 @@ EmitPropOp(JSContext *cx, JSParseNode *pn, JSOp op, JSCodeGenerator *cg,
{
JSParseNode *pn2, *pndot, *pnup, *pndown;
ptrdiff_t top;
/* Special case deoptimization on __proto__, __count__ and __parent__. */
if (pn->pn_arity == PN_NAME &&
if (pn->pn_arity == PN_NAME &&
(op == JSOP_GETPROP || op == JSOP_CALLPROP) &&
(pn->pn_atom == cx->runtime->atomState.protoAtom ||
pn->pn_atom == cx->runtime->atomState.countAtom ||
pn->pn_atom == cx->runtime->atomState.parentAtom)) {