Bug 973950 - Remove sContextList from nsJSEnvironment; r=bholley

This commit is contained in:
Ms2ger 2014-03-27 21:05:15 +01:00
parent 7a2ecd8d4e
commit 125d1cbbd1
2 changed files with 0 additions and 16 deletions

View File

@ -191,7 +191,6 @@ static uint32_t sPreviousSuspectedCount = 0;
static uint32_t sCleanupsSinceLastGC = UINT32_MAX;
static bool sNeedsFullCC = false;
static bool sNeedsGCAfterCC = false;
static nsJSContext *sContextList = nullptr;
static bool sIncrementalCC = false;
static nsScriptNameSpaceManager *gNameSpaceManager;
@ -767,13 +766,6 @@ nsJSContext::nsJSContext(bool aGCOnDestruction,
{
EnsureStatics();
mNext = sContextList;
mPrev = &sContextList;
if (sContextList) {
sContextList->mPrev = &mNext;
}
sContextList = this;
++sContextCount;
mContext = ::JS_NewContext(sRuntime, gStackSize);
@ -795,11 +787,6 @@ nsJSContext::nsJSContext(bool aGCOnDestruction,
nsJSContext::~nsJSContext()
{
*mPrev = mNext;
if (mNext) {
mNext->mPrev = mPrev;
}
mGlobalObjectRef = nullptr;
DestroyJSContext();

View File

@ -160,9 +160,6 @@ private:
PRTime mModalStateTime;
uint32_t mModalStateDepth;
nsJSContext *mNext;
nsJSContext **mPrev;
// mGlobalObjectRef ensures that the outer window stays alive as long as the
// context does. It is eventually collected by the cycle collector.
nsCOMPtr<nsIScriptGlobalObject> mGlobalObjectRef;