author | Andrew McCreight <amccreight@mozilla.com> |
Tue, 10 Sep 2013 08:29:44 -0700 | |
changeset 146427 | 21ffa9b97b6422df01fc6c0a40521bc1c95af298 |
parent 146426 | 69e2cfaac25eb1a174ffa5807eadab976e91d102 |
child 146428 | f4804e82856f82089e9457b61dc3ee305c2ba535 |
push id | 25260 |
push user | ryanvm@gmail.com |
push date | Wed, 11 Sep 2013 00:29:30 +0000 |
treeherder | mozilla-central@f73bed2856a8 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | bholley |
bugs | 909436 |
milestone | 26.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
xpcom/base/CycleCollectedJSRuntime.cpp | file | annotate | diff | comparison | revisions | |
xpcom/base/CycleCollectedJSRuntime.h | file | annotate | diff | comparison | revisions |
--- a/xpcom/base/CycleCollectedJSRuntime.cpp +++ b/xpcom/base/CycleCollectedJSRuntime.cpp @@ -719,17 +719,17 @@ CycleCollectedJSRuntime::GCCallback(JSRu CycleCollectedJSRuntime::ContextCallback(JSContext* aContext, unsigned aOperation, void* aData) { CycleCollectedJSRuntime* self = static_cast<CycleCollectedJSRuntime*>(aData); MOZ_ASSERT(JS_GetRuntime(aContext) == self->Runtime()); - return self->OnContext(aContext, aOperation); + return self->CustomContextCallback(aContext, aOperation); } struct JsGcTracer : public TraceCallbacks { virtual void Trace(JS::Heap<JS::Value> *p, const char *name, void *closure) const MOZ_OVERRIDE { JS_CallHeapValueTracer(static_cast<JSTracer*>(closure), p, name); } virtual void Trace(JS::Heap<jsid> *p, const char *name, void *closure) const MOZ_OVERRIDE { @@ -1128,14 +1128,8 @@ CycleCollectedJSRuntime::OnGC(JSGCStatus break; } default: MOZ_CRASH(); } CustomGCCallback(aStatus); } - -bool -CycleCollectedJSRuntime::OnContext(JSContext* aCx, unsigned aOperation) -{ - return CustomContextCallback(aCx, aOperation); -}
--- a/xpcom/base/CycleCollectedJSRuntime.h +++ b/xpcom/base/CycleCollectedJSRuntime.h @@ -157,17 +157,16 @@ private: enum DeferredFinalizeType { FinalizeIncrementally, FinalizeNow, }; void FinalizeDeferredThings(DeferredFinalizeType aType); void OnGC(JSGCStatus aStatus); - bool OnContext(JSContext* aCx, unsigned aOperation); public: void AddJSHolder(void* aHolder, nsScriptObjectTracer* aTracer); void RemoveJSHolder(void* aHolder); #ifdef DEBUG bool IsJSHolder(void* aHolder); void SetObjectToUnlink(void* aObject) { mObjectToUnlink = aObject; } void AssertNoObjectsToTrace(void* aPossibleJSHolder);