From 0aeae8a79493a393e94d1f5c65cb7af21fc5e0e7 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Mon, 10 Jul 2006 21:11:47 +0000 Subject: [PATCH] Comment update for last patch (344139, r=mrbkap). --- js/src/jsemit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/src/jsemit.c b/js/src/jsemit.c index 6adf392aa66c..7a1c30773b8a 100644 --- a/js/src/jsemit.c +++ b/js/src/jsemit.c @@ -1831,6 +1831,10 @@ EmitAtomOp(JSContext *cx, JSParseNode *pn, JSOp op, JSCodeGenerator *cg) * or not pn->pn_op was modified, if this function finds an argument or local * variable name, pn->pn_attrs will contain the property's attributes after a * successful return. + * + * NB: if you add more opcodes specialized from JSOP_NAME, etc., don't forget + * to update the TOK_FOR (for-in) and TOK_ASSIGN (op=, e.g. +=) special cases + * in js_EmitTree. */ static JSBool BindNameToSlot(JSContext *cx, JSTreeContext *tc, JSParseNode *pn)