Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 54ebf85da6eb5899ab02507a72ccc0f77423e623..0b131de1485795bcebbbca3a8f06d212f5400388 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -968,6 +968,7 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( |
function_info->GetLiteralsFromOptimizedCodeMap(index); |
if (literals != NULL) result->set_literals(literals); |
Code* code = function_info->GetCodeFromOptimizedCodeMap(index); |
+ ASSERT(!code->marked_for_deoptimization()); |
result->ReplaceCode(code); |
return result; |
} |