Bug 1283855 part 10 - Make some GC callback APIs take JSContext instead of JSRuntime. r=jonco

This commit is contained in:
Jan de Mooij
2016-07-05 14:35:16 +02:00
parent 2c3e8d241a
commit 7db749e17a
7 changed files with 44 additions and 43 deletions

View File

@@ -532,8 +532,8 @@ CycleCollectedJSRuntime::Initialize(JSRuntime* aParentRuntime,
mJSRuntime, GCNurseryCollectionCallback);
}
JS_SetObjectsTenuredCallback(mJSRuntime, JSObjectsTenuredCb, this);
JS::SetOutOfMemoryCallback(mJSRuntime, OutOfMemoryCallback, this);
JS_SetObjectsTenuredCallback(mJSContext, JSObjectsTenuredCb, this);
JS::SetOutOfMemoryCallback(mJSContext, OutOfMemoryCallback, this);
JS::SetLargeAllocationFailureCallback(mJSRuntime,
LargeAllocationFailureCallback, this);
JS_SetDestroyZoneCallback(mJSContext, XPCStringConvert::FreeZoneCache);