Bug 1118107 - Convert ThreadSafeContext -> ExclusiveContext and remove PJS paths in error reporting functions. (r=lth)

This commit is contained in:
Shu-yu Guo
2015-01-09 00:06:03 -08:00
parent 8cab3220a3
commit 8557e0da5c
5 changed files with 13 additions and 32 deletions

View File

@@ -13,11 +13,11 @@ using namespace js;
void *
TempAllocPolicy::onOutOfMemory(void *p, size_t nbytes)
{
return static_cast<ThreadSafeContext *>(cx_)->onOutOfMemory(p, nbytes);
return static_cast<ExclusiveContext *>(cx_)->onOutOfMemory(p, nbytes);
}
void
TempAllocPolicy::reportAllocOverflow() const
{
js_ReportAllocationOverflow(static_cast<ThreadSafeContext *>(cx_));
js_ReportAllocationOverflow(static_cast<ExclusiveContext *>(cx_));
}