Bug 739685 - rm useless makeAtom calls in BindNameToSlot (r=dvander)

--HG--
extra : rebase_source : 9c057d2e9a07738cdc2b6530c3d5aae79f6cb095
This commit is contained in:
Luke Wagner 2012-03-26 22:33:28 -07:00
parent f23d473933
commit 1ee15c5ea7

View File

@ -1315,10 +1315,6 @@ BindNameToSlot(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn)
* must be globals, so try to use GNAME ops.
*/
if (caller->isGlobalFrame() && TryConvertToGname(bce, pn, &op)) {
jsatomid _;
if (!bce->makeAtomIndex(atom, &_))
return JS_FALSE;
pn->setOp(op);
pn->pn_dflags |= PND_BOUND;
return JS_TRUE;
@ -1335,10 +1331,6 @@ BindNameToSlot(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn)
if (!TryConvertToGname(bce, pn, &op))
return JS_TRUE;
jsatomid _;
if (!bce->makeAtomIndex(atom, &_))
return JS_FALSE;
pn->setOp(op);
pn->pn_dflags |= PND_BOUND;