Bug 967031 - Rename DumpHeapComplete to DumpHeap; r=terrence

This commit is contained in:
Yanis Sellami 2015-05-22 11:22:56 +02:00
Родитель 274f4c6cb1
Коммит 4562d9ef59
5 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -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);
}