JS_FRIEND_API(JSBool) js_InitCodeGenerator(JSContext *cx, JSCodeGenerator *cg, const char *filename, uintN lineno, JSPrincipals *principals)
JS_FRIEND_API(ptrdiff_t) js_GetSrcNoteOffset(jssrcnote *sn, uintN which)
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;}