Bug 1368675 - Add multiple heuristics to trigger the JS bytecode cache encoding. r=mrbkap

This commit is contained in:
Nicolas B. Pierron
2017-06-05 12:06:20 +00:00
parent 536d4e8ea3
commit 8d54146905
7 changed files with 197 additions and 48 deletions

View File

@@ -363,7 +363,7 @@ ScriptLoadHandler::OnStreamComplete(nsIIncrementalStreamLoader* aLoader,
// Everything went well, keep the CacheInfoChannel alive such that we can
// later save the bytecode on the cache entry.
if (NS_SUCCEEDED(rv) && mRequest->IsSource() &&
ScriptLoader::IsBytecodeCacheEnabled()) {
nsContentUtils::IsBytecodeCacheEnabled()) {
mRequest->mCacheInfo = do_QueryInterface(channelRequest);
LOG(("ScriptLoadRequest (%p): nsICacheInfoChannel = %p",
mRequest.get(), mRequest->mCacheInfo.get()));