Bug 1283855 part 25 - Make JS_GC take JSContext instead of JSRuntime. r=terrence

This commit is contained in:
Jan de Mooij
2016-07-06 11:40:20 +02:00
parent cf74d14bbc
commit 90b703628e
28 changed files with 88 additions and 94 deletions

View File

@@ -240,11 +240,8 @@ GC(JSContext *cx,
{
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
JSRuntime *rt = JS_GetRuntime(cx);
JS_GC(rt);
#ifdef JS_GCMETER
js_DumpGCStats(rt, stdout);
#endif
JS_GC(cx);
args.rval().setUndefined();
return true;
}
@@ -470,8 +467,7 @@ XPCShellEnvironment::~XPCShellEnvironment()
}
mGlobalHolder.reset();
JSRuntime *rt = JS_GetRuntime(cx);
JS_GC(rt);
JS_GC(cx);
}
}