Bug 1734098 - Part 11: Add JS::DecodeStencilOffThread. r=tcampbell

Also make JS::CanDecodeOffThread to receive JS::DecodeOptions.

Differential Revision: https://phabricator.services.mozilla.com/D133052
This commit is contained in:
Tooru Fujisawa
2021-12-10 04:28:29 +00:00
parent df2429f5cd
commit 69c348d423
12 changed files with 536 additions and 18 deletions

View File

@@ -176,7 +176,7 @@ void ScriptLoadRequest::MaybeCancelOffThreadScript() {
JS::CancelCompileToStencilOffThread(cx, mOffThreadToken);
} else {
MOZ_ASSERT(IsBytecode());
JS::CancelOffThreadScriptDecoder(cx, mOffThreadToken);
JS::CancelDecodeStencilOffThread(cx, mOffThreadToken);
}
// Cancellation request above should guarantee removal of the parse task, so