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
This commit is contained in:
dslomov@chromium.org 2014-11-12 12:23:13 +00:00
parent 2c811498a2
commit 02709e5891

View 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());