| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index d170f439af3b978ec4c3a5121b1ad58bc359d0ab..5babef6733306be9c5c986f863650ef2a95e9bde 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1373,9 +1373,11 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
|
| result->set_literals(*literals);
|
|
|
| // Cache context-specific literals.
|
| + MaybeHandle<Code> code;
|
| + if (cached.code != nullptr) code = handle(cached.code);
|
| Handle<Context> native_context(context->native_context());
|
| - SharedFunctionInfo::AddLiteralsToOptimizedCodeMap(info, native_context,
|
| - literals);
|
| + SharedFunctionInfo::AddToOptimizedCodeMap(info, native_context, code,
|
| + literals, BailoutId::None());
|
| }
|
|
|
| return result;
|
|
|