mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 739685 - rm useless makeAtom calls in BindNameToSlot (r=dvander)
--HG-- extra : rebase_source : 9c057d2e9a07738cdc2b6530c3d5aae79f6cb095
This commit is contained in:
parent
f23d473933
commit
1ee15c5ea7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user