From 1ee15c5ea711eacb832eb685da153f84fc4652e9 Mon Sep 17 00:00:00 2001 From: Luke Wagner Date: Mon, 26 Mar 2012 22:33:28 -0700 Subject: [PATCH] Bug 739685 - rm useless makeAtom calls in BindNameToSlot (r=dvander) --HG-- extra : rebase_source : 9c057d2e9a07738cdc2b6530c3d5aae79f6cb095 --- js/src/frontend/BytecodeEmitter.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index f67155b9168..aad89d1c3aa 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -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;