зеркало из https://github.com/mozilla/gecko-dev.git
Bug 967031 - Rename DumpHeapComplete to DumpHeap; r=terrence
This commit is contained in:
Родитель
274f4c6cb1
Коммит
4562d9ef59
|
@ -1209,7 +1209,7 @@ FinalizeCount(JSContext* cx, unsigned argc, jsval* vp)
|
|||
}
|
||||
|
||||
static bool
|
||||
DumpHeapComplete(JSContext* cx, unsigned argc, jsval* vp)
|
||||
DumpHeap(JSContext* cx, unsigned argc, Value* vp)
|
||||
{
|
||||
CallArgs args = CallArgsFromVp(argc, vp);
|
||||
|
||||
|
@ -1251,11 +1251,11 @@ DumpHeapComplete(JSContext* cx, unsigned argc, jsval* vp)
|
|||
}
|
||||
|
||||
if (i != args.length()) {
|
||||
JS_ReportError(cx, "bad arguments passed to dumpHeapComplete");
|
||||
JS_ReportError(cx, "bad arguments passed to dumpHeap");
|
||||
return false;
|
||||
}
|
||||
|
||||
js::DumpHeapComplete(JS_GetRuntime(cx), dumpFile ? dumpFile : stdout, nurseryBehaviour);
|
||||
js::DumpHeap(JS_GetRuntime(cx), dumpFile ? dumpFile : stdout, nurseryBehaviour);
|
||||
|
||||
if (dumpFile)
|
||||
fclose(dumpFile);
|
||||
|
@ -2788,8 +2788,8 @@ gc::ZealModeHelpText),
|
|||
"isProxy(obj)",
|
||||
" If true, obj is a proxy of some sort"),
|
||||
|
||||
JS_FN_HELP("dumpHeapComplete", DumpHeapComplete, 1, 0,
|
||||
"dumpHeapComplete(['collectNurseryBeforeDump'], [filename])",
|
||||
JS_FN_HELP("dumpHeap", DumpHeap, 1, 0,
|
||||
"dumpHeap(['collectNurseryBeforeDump'], [filename])",
|
||||
" Dump reachable and unreachable objects to the named file, or to stdout. If\n"
|
||||
" 'collectNurseryBeforeDump' is specified, a minor GC is performed first,\n"
|
||||
" otherwise objects in the nursery are ignored."),
|
||||
|
|
|
@ -1 +1 @@
|
|||
dumpHeapComplete();
|
||||
dumpHeap();
|
||||
|
|
|
@ -994,7 +994,7 @@ DumpHeapVisitRoot(JS::CallbackTracer* trc, void** thingp, JS::TraceKind kind)
|
|||
}
|
||||
|
||||
void
|
||||
js::DumpHeapComplete(JSRuntime* rt, FILE* fp, js::DumpHeapNurseryBehaviour nurseryBehaviour)
|
||||
js::DumpHeap(JSRuntime* rt, FILE* fp, js::DumpHeapNurseryBehaviour nurseryBehaviour)
|
||||
{
|
||||
if (nurseryBehaviour == js::CollectNurseryBeforeDump)
|
||||
rt->gc.evictNursery(JS::gcreason::API);
|
||||
|
|
|
@ -462,7 +462,7 @@ typedef enum {
|
|||
* fp is the file for the dump output.
|
||||
*/
|
||||
extern JS_FRIEND_API(void)
|
||||
DumpHeapComplete(JSRuntime* rt, FILE* fp, DumpHeapNurseryBehaviour nurseryBehaviour);
|
||||
DumpHeap(JSRuntime* rt, FILE* fp, DumpHeapNurseryBehaviour nurseryBehaviour);
|
||||
|
||||
#ifdef JS_OLD_GETTER_SETTER_METHODS
|
||||
JS_FRIEND_API(bool) obj_defineGetter(JSContext* cx, unsigned argc, JS::Value* vp);
|
||||
|
|
|
@ -1073,7 +1073,7 @@ CycleCollectedJSRuntime::DeferredFinalize(nsISupports* aSupports)
|
|||
void
|
||||
CycleCollectedJSRuntime::DumpJSHeap(FILE* aFile)
|
||||
{
|
||||
js::DumpHeapComplete(Runtime(), aFile, js::CollectNurseryBeforeDump);
|
||||
js::DumpHeap(Runtime(), aFile, js::CollectNurseryBeforeDump);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче