Bug 644241, part 1 - Remove script stack quota. r=igor

This commit is contained in:
Alon Zakai
2011-06-03 17:54:26 -07:00
parent 8502dd4d2f
commit 61ffc8f8bc
43 changed files with 145 additions and 299 deletions

View File

@@ -675,7 +675,7 @@ js_alloc_temp_space(void *priv, size_t size)
JS_ARENA_ALLOCATE(space, &parser->context->tempPool, size);
if (!space)
js_ReportOutOfScriptQuota(parser->context);
js_ReportOutOfMemory(parser->context);
return space;
}
@@ -707,7 +707,7 @@ js_alloc_temp_entry(void *priv, const void *key)
JS_ARENA_ALLOCATE_TYPE(ale, JSAtomListElement, &parser->context->tempPool);
if (!ale) {
js_ReportOutOfScriptQuota(parser->context);
js_ReportOutOfMemory(parser->context);
return NULL;
}
return &ale->entry;