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

Unified Diff: src/factory.cc

Issue 1197713004: Fix terrible interaction with code flushing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Small cleanup. Created 5 years, 6 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 | « src/compiler.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 3827fee5a5b62bb1a342b57ac408fa870f97f416..ba93e6c7ff4753fe4ac111d2cc5426b4f948b455 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1391,6 +1391,7 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
if (literals != NULL) result->set_literals(literals);
Code* code = info->GetCodeFromOptimizedCodeMap(index);
DCHECK(!code->marked_for_deoptimization());
+ DCHECK(result->shared()->is_compiled());
result->ReplaceCode(code);
}
« no previous file with comments | « src/compiler.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698