Bug 1283855 part 10 - Make some GC callback APIs take JSContext instead of JSRuntime. r=jonco
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user