Chromium Code Reviews| Index: src/compiler.cc |
| diff --git a/src/compiler.cc b/src/compiler.cc |
| index ad8325e9cff46119f69a69e4425e33608755debf..74ab1b0646fdf32d7ee8c9e53663df84725bded5 100644 |
| --- a/src/compiler.cc |
| +++ b/src/compiler.cc |
| @@ -741,7 +741,10 @@ static void InsertCodeIntoOptimizedCodeMap(CompilationInfo* info) { |
| static bool Renumber(CompilationInfo* info) { |
| if (!AstNumbering::Renumber(info->function(), info->zone())) return false; |
| if (!info->shared_info().is_null()) { |
| - info->shared_info()->set_ast_node_count(info->function()->ast_node_count()); |
| + FunctionLiteral* lit = info->function(); |
| + info->shared_info()->set_ast_node_count(lit->ast_node_count()); |
| + info->shared_info()->set_bailout_reason(lit->dont_optimize_reason()); |
|
wingo
2014/10/27 15:08:20
As mstarzinger points out, this should probably be
|
| + info->shared_info()->set_dont_cache(lit->flags()->Contains(kDontCache)); |
| } |
| return true; |
| } |