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;
if (*sn & SN_3BYTE_OFFSET_FLAG) { return (ptrdiff_t)((((uint32)(sn[0] & SN_3BYTE_OFFSET_MASK)) << 16) | (sn[1] << 8) | sn[2]); } return (ptrdiff_t)*sn;
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;}