| Index: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
|
| index 6eb2f137f27a4ac94ec4d790f2321ec1fce2df7e..e81ab233954bd9c8295382944f2587e51db05998 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp
|
| @@ -248,6 +248,9 @@ v8::MaybeLocal<v8::Script> postStreamCompile(V8CacheOptions cacheOptions, Cached
|
| V8ScriptRunner::setCacheTimeStamp(cacheHandler);
|
| break;
|
|
|
| + case V8CacheOptionsAlways:
|
| + // Currently V8CacheOptionsAlways doesn't support streaming.
|
| + ASSERT_NOT_REACHED();
|
| case V8CacheOptionsNone:
|
| break;
|
| }
|
| @@ -295,14 +298,15 @@ PassOwnPtr<CompileFn> selectCompileFunction(V8CacheOptions cacheOptions, CachedM
|
| break;
|
|
|
| case V8CacheOptionsDefault:
|
| - case V8CacheOptionsCode: {
|
| + case V8CacheOptionsCode:
|
| + case V8CacheOptionsAlways: {
|
| // Use code caching for recently seen resources.
|
| // Use compression depending on the cache option.
|
| unsigned codeCacheTag = cacheTag(CacheTagCode, cacheHandler);
|
| CachedMetadata* codeCache = cacheHandler->cachedMetadata(codeCacheTag);
|
| if (codeCache)
|
| return bind(compileAndConsumeCache, cacheHandler, codeCacheTag, v8::ScriptCompiler::kConsumeCodeCache);
|
| - if (!isResourceHotForCaching(cacheHandler, hotHours)) {
|
| + if (cacheOptions != V8CacheOptionsAlways && !isResourceHotForCaching(cacheHandler, hotHours)) {
|
| V8ScriptRunner::setCacheTimeStamp(cacheHandler);
|
| return bind(compileWithoutOptions, V8CompileHistogram::Cacheable);
|
| }
|
|
|