зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1062869 part 4 - Add an invalidate function to IonScript. r=h4writer
This commit is contained in:
Родитель
cc7feabcd9
Коммит
8187debbb6
|
@ -2900,6 +2900,17 @@ jit::Invalidate(JSContext *cx, const Vector<types::RecompileInfo> &invalid, bool
|
|||
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
|
||||
jit::Invalidate(JSContext *cx, JSScript *script, ExecutionMode mode, bool resetUses,
|
||||
bool cancelOffThread)
|
||||
|
|
|
@ -581,6 +581,10 @@ struct IonScript
|
|||
bool invalidated() const {
|
||||
return refcount_ != 0;
|
||||
}
|
||||
|
||||
// Invalidate the current compilation.
|
||||
bool invalidate(JSContext *cx, bool resetUses, const char *reason);
|
||||
|
||||
size_t refcount() const {
|
||||
return refcount_;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче