Bug 674171: Delete hasDebugModeCodeToDrop, it is scratched^Wunused. r=jorendorff

I had a hard time writing a test case for this, so I gave up.
This commit is contained in:
Jim Blandy 2012-03-02 12:12:13 -08:00
parent cf880062aa
commit ef77be4778
2 changed files with 2 additions and 7 deletions

View File

@ -80,7 +80,6 @@ JSCompartment::JSCompartment(JSRuntime *rt)
typeLifoAlloc(TYPE_LIFO_ALLOC_PRIMARY_CHUNK_SIZE),
data(NULL),
active(false),
hasDebugModeCodeToDrop(false),
#ifdef JS_METHODJIT
jaegerCompartment_(NULL),
#endif
@ -676,12 +675,10 @@ JSCompartment::updateForDebugMode(JSContext *cx)
#ifdef JS_METHODJIT
bool enabled = debugMode();
if (enabled) {
if (enabled)
JS_ASSERT(!hasScriptsOnStack());
} else if (hasScriptsOnStack()) {
hasDebugModeCodeToDrop = true;
else if (hasScriptsOnStack())
return;
}
/*
* Discard JIT code and bytecode analyses for any scripts that change
@ -695,7 +692,6 @@ JSCompartment::updateForDebugMode(JSContext *cx)
script->debugMode = enabled;
}
}
hasDebugModeCodeToDrop = false;
#endif
}

View File

@ -230,7 +230,6 @@ struct JSCompartment
void *data;
bool active; // GC flag, whether there are active frames
bool hasDebugModeCodeToDrop;
js::WrapperMap crossCompartmentWrappers;
#ifdef JS_METHODJIT