Bug 1898677 - Cache the result of bytecode encoding condition. r=nbp

Differential Revision: https://phabricator.services.mozilla.com/D211517
This commit is contained in:
Tooru Fujisawa
2024-05-27 06:31:16 +00:00
parent 8712348c9d
commit 6e5b7d5d1b
6 changed files with 73 additions and 41 deletions

View File

@@ -686,7 +686,7 @@ class ScriptLoader final : public JS::loader::ScriptLoaderInterface {
// Returns wether we should save the bytecode of this script after the
// execution of the script.
static bool ShouldCacheBytecode(ScriptLoadRequest* aRequest);
static void CalculateBytecodeCacheFlag(ScriptLoadRequest* aRequest);
void RunScriptWhenSafe(ScriptLoadRequest* aRequest);