Chromium Code Reviews| Index: src/factory.cc |
| =================================================================== |
| --- src/factory.cc (revision 11394) |
| +++ src/factory.cc (working copy) |
| @@ -562,6 +562,17 @@ |
| } |
| result->set_literals(*literals); |
|
fschneider
2012/04/20 14:05:43
Instead of always allocating a new literals array,
|
| } |
| + |
| + if (FLAG_cache_optimized_code) { |
| + Code* code = |
| + function_info->SearchOptimizedCodeMap(context->global_context()); |
| + if (code != NULL) { |
| + result->ReplaceCode(code); |
| + return result; |
| + } |
| + } |
| + result->set_next_function_link(isolate()->heap()->undefined_value()); |
|
fschneider
2012/04/20 14:05:43
Not needed since next_function_link is already ini
|
| + |
| if (V8::UseCrankshaft() && |
| FLAG_always_opt && |
| result->is_compiled() && |