Commit 02709e58 authored by dslomov@chromium.org's avatar dslomov@chromium.org

Disable top level serialization under harmony_scoping. It has broken tests.

TBR=yangguo@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25293}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25293 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2c811498
......@@ -1243,7 +1243,9 @@ Handle<SharedFunctionInfo> Compiler::CompileScript(
result = CompileToplevel(&info);
if (extension == NULL && !result.is_null() && !result->dont_cache()) {
compilation_cache->PutScript(source, context, result);
if (FLAG_serialize_toplevel &&
// TODO(dslomov): Issue 3628.
// Reenable when harmony scoping serialization issues are fixed.
if (FLAG_serialize_toplevel && !FLAG_harmony_scoping &&
compile_options == ScriptCompiler::kProduceCodeCache) {
HistogramTimerScope histogram_timer(
isolate->counters()->compile_serialize());
......
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