| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 4aca8854565c06b97d33fd11a9783313b3434613..08997c46cdecab25ffdf59b27ad37a0be074662a 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1378,6 +1378,17 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
|
| result->MarkForOptimization();
|
| }
|
|
|
| + if (info->asm_mode() == ASM_FUNCTION) {
|
| + DCHECK(info->num_literals() == 0);
|
| + DCHECK(info->asm_code()->kind() == Code::OPTIMIZED_FUNCTION);
|
| + result->ReplaceCode(info->asm_code());
|
| + if (FLAG_trace_asm) {
|
| + PrintF("[asm: installing function %s]\n",
|
| + info->DebugName()->ToCString().get());
|
| + }
|
| + return result;
|
| + }
|
| +
|
| int index = info->SearchOptimizedCodeMap(context->native_context(),
|
| BailoutId::None());
|
| if (!info->bound() && index < 0) {
|
|
|