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); |
} |