memset(cg, 0, sizeof *cg); cg->codeMark = PR_ARENA_MARK(&cx->codePool); cg->tempMark = PR_ARENA_MARK(&cx->tempPool); PR_ARENA_ALLOCATE(cg->base, &cx->codePool, CGINCR); if (!cg->base) { JS_ReportOutOfMemory(cx); return JS_FALSE;
PR_ASSERT(SN_TYPE(sn) != SRC_XDELTA); PR_ASSERT(which < js_SrcNoteArity[SN_TYPE(sn)]); for (sn++; which; sn++, which--) { if (*sn & SN_3BYTE_OFFSET_FLAG) sn += 2;
JS_FRIEND_API(JSBool)js_InitCodeGenerator(JSContext *cx, JSCodeGenerator *cg,		     const char *filename, uintN lineno,		     JSPrincipals *principals){    memset(cg, 0, sizeof *cg);    cg->codeMark = PR_ARENA_MARK(&cx->codePool);    cg->tempMark = PR_ARENA_MARK(&cx->tempPool);    PR_ARENA_ALLOCATE(cg->base, &cx->codePool, CGINCR);    if (!cg->base) {	JS_ReportOutOfMemory(cx);	return JS_FALSE;    }    cg->next = cg->base;    cg->limit = CG_CODE(cg, CGINCR);    cg->filename = filename;    cg->firstLine = cg->currentLine = lineno;    cg->principals = principals;    TREE_CONTEXT_INIT(&cg->treeContext);    ATOM_LIST_INIT(&cg->atomList);    return JS_TRUE;}