Disable top level serialization under harmony_scoping. It has broken tests.
authordslomov@chromium.org <dslomov@chromium.org>
Wed, 12 Nov 2014 12:23:13 +0000 (12:23 +0000)
committerdslomov@chromium.org <dslomov@chromium.org>
Wed, 12 Nov 2014 12:23:41 +0000 (12:23 +0000)
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

src/compiler.cc

index 5976cf0..06f3dc1 100644 (file)
@@ -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());