size = (cg->treeContext.tryCount + 1) * sizeof(JSTryNote); PR_ARENA_ALLOCATE(cg->tryBase, &cx->tempPool, size); if (!cg->tryBase) return JS_FALSE; cg->tryNext = cg->tryBase;
if (!cg->tryBase) { size = PR_ROUNDUP(size, TNINCR); PR_ARENA_ALLOCATE(cg->tryBase, &cx->tempPool, size); if (!cg->tryBase) return JS_FALSE; cg->tryNoteSpace = size; cg->tryNext = cg->tryBase; } else { delta = (char *)cg->tryNext - (char *)cg->tryBase; incr = size - cg->tryNoteSpace; incr = PR_ROUNDUP(incr, TNINCR); size = cg->tryNoteSpace; PR_ARENA_GROW(cg->tryBase, &cx->tempPool, size, incr); if (!cg->tryBase) return JS_FALSE; cg->tryNoteSpace = size + incr; cg->tryNext = (JSTryNote *)((char *)cg->tryBase + delta); }
js_AllocTryNotes(JSContext *cx, JSCodeGenerator *cg){    size_t size;    if (!cg->treeContext.tryCount)	return JS_TRUE;    size = (cg->treeContext.tryCount + 1) * sizeof(JSTryNote);    PR_ARENA_ALLOCATE(cg->tryBase, &cx->tempPool, size);    if (!cg->tryBase)	return JS_FALSE;    cg->tryNext = cg->tryBase;    return JS_TRUE;}