Bug 660734, part 1 - s/ContextAllocPolicy/TempAllocPolicy/ since it doesn't call cx->malloc_ (r=igor)

This commit is contained in:
Luke Wagner
2011-06-17 10:11:33 -07:00
parent b5f6101d5f
commit a2ffa421bf
13 changed files with 27 additions and 28 deletions

View File

@@ -42,13 +42,13 @@
namespace js {
void *
ContextAllocPolicy::onOutOfMemory(void *p, size_t nbytes)
TempAllocPolicy::onOutOfMemory(void *p, size_t nbytes)
{
return cx->runtime->onOutOfMemory(p, nbytes, cx);
}
void
ContextAllocPolicy::reportAllocOverflow() const
TempAllocPolicy::reportAllocOverflow() const
{
js_ReportAllocationOverflow(cx);
}