зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1129875 - Remove unused AssertOnScriptEntryHook. r=luke
--HG-- extra : rebase_source : f97e83175753796c1f6865591e3696e180119041
This commit is contained in:
Родитель
1a7abb0ab0
Коммит
63b022725c
|
@ -64,14 +64,6 @@ js::ForgetSourceHook(JSRuntime *rt)
|
|||
return Move(rt->sourceHook);
|
||||
}
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
JS_FRIEND_API(void)
|
||||
js::SetAssertOnScriptEntryHook(JSRuntime *rt, AssertOnScriptEntryHook hook)
|
||||
{
|
||||
rt->assertOnScriptEntryHook_ = hook;
|
||||
}
|
||||
#endif
|
||||
|
||||
JS_FRIEND_API(void)
|
||||
JS_SetGrayGCRootsTracer(JSRuntime *rt, JSTraceDataOp traceOp, void *data)
|
||||
{
|
||||
|
|
|
@ -409,13 +409,6 @@ SetSourceHook(JSRuntime *rt, mozilla::UniquePtr<SourceHook> hook);
|
|||
extern JS_FRIEND_API(mozilla::UniquePtr<SourceHook>)
|
||||
ForgetSourceHook(JSRuntime *rt);
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
typedef void (*AssertOnScriptEntryHook)(JSContext *cx, JS::HandleScript script);
|
||||
|
||||
extern JS_FRIEND_API(void)
|
||||
SetAssertOnScriptEntryHook(JSRuntime *rt, AssertOnScriptEntryHook hook);
|
||||
#endif
|
||||
|
||||
extern JS_FRIEND_API(JS::Zone *)
|
||||
GetCompartmentZone(JSCompartment *comp);
|
||||
|
||||
|
|
|
@ -411,11 +411,6 @@ js::RunScript(JSContext *cx, RunState &state)
|
|||
{
|
||||
JS_CHECK_RECURSION(cx, return false);
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
if (AssertOnScriptEntryHook hook = cx->runtime()->assertOnScriptEntryHook_)
|
||||
(*hook)(cx, state.script());
|
||||
#endif
|
||||
|
||||
SPSEntryMarker marker(cx->runtime(), state.script());
|
||||
|
||||
state.script()->ensureNonLazyCanonicalFunction(cx);
|
||||
|
|
|
@ -164,9 +164,6 @@ JSRuntime::JSRuntime(JSRuntime *parentRuntime)
|
|||
negativeInfinityValue(DoubleValue(NegativeInfinity<double>())),
|
||||
positiveInfinityValue(DoubleValue(PositiveInfinity<double>())),
|
||||
emptyString(nullptr),
|
||||
#ifdef NIGHTLY_BUILD
|
||||
assertOnScriptEntryHook_(nullptr),
|
||||
#endif
|
||||
spsProfiler(thisFromCtor()),
|
||||
profilingScripts(false),
|
||||
suppressProfilerSampling(false),
|
||||
|
|
|
@ -987,10 +987,6 @@ struct JSRuntime : public JS::shadow::Runtime,
|
|||
|
||||
mozilla::UniquePtr<js::SourceHook> sourceHook;
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
js::AssertOnScriptEntryHook assertOnScriptEntryHook_;
|
||||
#endif
|
||||
|
||||
/* SPS profiling metadata */
|
||||
js::SPSProfiler spsProfiler;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче