Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 266ecff1d3f16ce00ebcc500f23f8cb5d72b6f29..fc170d2e1cb49dc4cb832f86b3c3a34b67730dd5 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2071,7 +2071,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
code = handle(isolate()->builtins()->builtin(Builtins::kIllegal)); |
} |
share->set_code(*code); |
- share->set_optimized_code_map(Smi::FromInt(0)); |
+ share->set_optimized_code_map(*cleared_optimized_code_map()); |
share->set_scope_info(ScopeInfo::Empty(isolate())); |
Code* construct_stub = |
isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric); |