Commit 359fdff0 authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

[d8] do not serialize again when consuming code cache

R=leszeks@chromium.org

Change-Id: Iebf284d3ac041eecb8cfb832c7331febb1ccf089
Reviewed-on: https://chromium-review.googlesource.com/c/1346069Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57672}
parent e8a22a70
......@@ -3496,6 +3496,8 @@ int Shell::Main(int argc, char* argv[]) {
DCHECK(options.compile_options == v8::ScriptCompiler::kEagerCompile ||
options.compile_options == v8::ScriptCompiler::kNoCompileOptions);
options.compile_options = v8::ScriptCompiler::kConsumeCodeCache;
options.code_cache_options =
ShellOptions::CodeCacheOptions::kNoProduceCache;
printf("============ Run: Consume code cache ============\n");
// Second run to consume the cache in current isolate
......
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