mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1062869 part 4 - Add an invalidate function to IonScript. r=h4writer
This commit is contained in:
parent
af0dca85b8
commit
b671207b7c
@ -2900,6 +2900,17 @@ jit::Invalidate(JSContext *cx, const Vector<types::RecompileInfo> &invalid, bool
|
|||||||
cancelOffThread);
|
cancelOffThread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
jit::IonScript::invalidate(JSContext *cx, bool resetUses, const char *reason)
|
||||||
|
{
|
||||||
|
JitSpew(JitSpew_IonInvalidate, " Invalidate IonScript %p: %s", this, reason);
|
||||||
|
Vector<types::RecompileInfo> list(cx);
|
||||||
|
if (!list.append(recompileInfo()))
|
||||||
|
return false;
|
||||||
|
Invalidate(cx, list, resetUses, true);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
jit::Invalidate(JSContext *cx, JSScript *script, ExecutionMode mode, bool resetUses,
|
jit::Invalidate(JSContext *cx, JSScript *script, ExecutionMode mode, bool resetUses,
|
||||||
bool cancelOffThread)
|
bool cancelOffThread)
|
||||||
|
@ -581,6 +581,10 @@ struct IonScript
|
|||||||
bool invalidated() const {
|
bool invalidated() const {
|
||||||
return refcount_ != 0;
|
return refcount_ != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Invalidate the current compilation.
|
||||||
|
bool invalidate(JSContext *cx, bool resetUses, const char *reason);
|
||||||
|
|
||||||
size_t refcount() const {
|
size_t refcount() const {
|
||||||
return refcount_;
|
return refcount_;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user