Backed out changeset 919950c7f0f0

This commit is contained in:
Robert Sayre
2010-05-11 11:52:17 -04:00
parent 5e815d0745
commit 792f019eb8
19 changed files with 657 additions and 638 deletions

View File

@@ -970,7 +970,7 @@ js_alloc_temp_space(void *priv, size_t size)
}
}
parser->context->tempPool.allocate(space, size);
JS_ARENA_ALLOCATE(space, &parser->context->tempPool, size);
if (!space)
js_ReportOutOfScriptQuota(parser->context);
return space;
@@ -1002,7 +1002,7 @@ js_alloc_temp_entry(void *priv, const void *key)
return &ale->entry;
}
parser->context->tempPool.allocateType<JSAtomListElement>(ale);
JS_ARENA_ALLOCATE_TYPE(ale, JSAtomListElement, &parser->context->tempPool);
if (!ale) {
js_ReportOutOfScriptQuota(parser->context);
return NULL;