mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
cf880062aa
commit
ef77be4778
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user