Commit a17fd22a authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

No longer pass JS source when creating service worker code cache.

The old V8 API is being deprecated.

R=haraken@chromium.org

Change-Id: Iaa5af927df5522ad78ce2b3db2b663568855193e
Reviewed-on: https://chromium-review.googlesource.com/1026676Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553498}
parent da1cbcd1
...@@ -783,8 +783,7 @@ scoped_refptr<CachedMetadata> V8ScriptRunner::GenerateFullCodeCache( ...@@ -783,8 +783,7 @@ scoped_refptr<CachedMetadata> V8ScriptRunner::GenerateFullCodeCache(
if (v8::ScriptCompiler::CompileUnboundScript( if (v8::ScriptCompiler::CompileUnboundScript(
isolate, &source, v8::ScriptCompiler::kEagerCompile) isolate, &source, v8::ScriptCompiler::kEagerCompile)
.ToLocal(&unbound_script)) { .ToLocal(&unbound_script)) {
cached_data.reset( cached_data.reset(v8::ScriptCompiler::CreateCodeCache(unbound_script));
v8::ScriptCompiler::CreateCodeCache(unbound_script, code));
if (cached_data && cached_data->length) { if (cached_data && cached_data->length) {
cached_metadata = CachedMetadata::Create( cached_metadata = CachedMetadata::Create(
CacheTag(kCacheTagCode, encoding.GetName()), CacheTag(kCacheTagCode, encoding.GetName()),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment