Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 588d34549937418e5508b62790a06956320465bd..4441875507adac8c0212927a700dd71b83261d07 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -1346,10 +1346,9 @@ void Logger::LogCompiledFunctions() { |
LOG(CodeCreateEvent( |
Logger::LAZY_COMPILE_TAG, shared->code(), *func_name)); |
} |
- } else if (shared->function_data()->IsFunctionTemplateInfo()) { |
+ } else if (shared->IsApiFunction()) { |
// API function. |
- FunctionTemplateInfo* fun_data = |
- FunctionTemplateInfo::cast(shared->function_data()); |
+ FunctionTemplateInfo* fun_data = shared->get_api_func_data(); |
Object* raw_call_data = fun_data->call_code(); |
if (!raw_call_data->IsUndefined()) { |
CallHandlerInfo* call_data = CallHandlerInfo::cast(raw_call_data); |