Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: src/compiler.cc

Issue 1404553003: Serializer: remove unused --serialize-inner flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 53e2fd3a7bf2e2c95ed30d1afeda0a5d6c1d63f2..2fb5bf443f7007477c9e656cbc5ce2c7b20a25d1 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1570,13 +1570,6 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo(
!LiveEditFunctionTracker::IsActive(isolate) &&
(!info.is_debug() || allow_lazy_without_ctx);
- if (outer_info->parse_info()->is_toplevel() && outer_info->will_serialize()) {
- // Make sure that if the toplevel code (possibly to be serialized),
- // the inner function must be allowed to be compiled lazily.
- // This is necessary to serialize toplevel code without inner functions.
- DCHECK(allow_lazy);
- }
-
bool lazy = FLAG_lazy && allow_lazy && !literal->should_eager_compile();
// Generate code
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698