Bug 1158257 - Gecko should always provide SpiderMonkey with a debuggerMallocSizeOf; r=mccr8

This commit is contained in:
Nick Fitzgerald
2015-04-27 10:58:24 -07:00
parent 64880ff3d6
commit 1bff429b82
3 changed files with 38 additions and 0 deletions

View File

@@ -64,6 +64,7 @@
#include "mozilla/dom/DOMJSClass.h"
#include "mozilla/dom/ScriptSettings.h"
#include "jsprf.h"
#include "js/Debug.h"
#include "nsCycleCollectionNoteRootCallback.h"
#include "nsCycleCollectionParticipant.h"
#include "nsCycleCollector.h"
@@ -503,6 +504,8 @@ CycleCollectedJSRuntime::CycleCollectedJSRuntime(JSRuntime* aParentRuntime,
};
SetDOMCallbacks(mJSRuntime, &DOMcallbacks);
JS::dbg::SetDebuggerMallocSizeOf(mJSRuntime, moz_malloc_size_of);
nsCycleCollector_registerJSRuntime(this);
}