Commit 0e2f7e3c authored by dslomov@chromium.org's avatar dslomov@chromium.org

Re-enable serialization under harmony-scoping.

R=yangguo@chromium.org
BUG=v8:3689
LOG=N

Review URL: https://codereview.chromium.org/717153002

Cr-Commit-Position: refs/heads/master@{#25294}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25294 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 02709e58
......@@ -1243,9 +1243,7 @@ Handle<SharedFunctionInfo> Compiler::CompileScript(
result = CompileToplevel(&info);
if (extension == NULL && !result.is_null() && !result->dont_cache()) {
compilation_cache->PutScript(source, context, result);
// TODO(dslomov): Issue 3628.
// Reenable when harmony scoping serialization issues are fixed.
if (FLAG_serialize_toplevel && !FLAG_harmony_scoping &&
if (FLAG_serialize_toplevel &&
compile_options == ScriptCompiler::kProduceCodeCache) {
HistogramTimerScope histogram_timer(
isolate->counters()->compile_serialize());
......
......@@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Flags: --harmony-scoping
// TODO(dslomov): Bug 3689. Code caching does not work well with for-of
// Flags: --harmony-scoping --cache=none
'use strict';
......
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