From 1debacf6aa62489d12eeaa1979b384e2eca5f0fe Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Thu, 18 Sep 2014 09:41:45 +0000 Subject: [PATCH] Remove Compiler::RecordFunctionCompilation from interface. R=sigurds@chromium.org Review URL: https://codereview.chromium.org/582593003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24025 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/compiler.cc | 78 ++++++++++++++++++++++++------------------------- src/compiler.h | 4 --- 2 files changed, 38 insertions(+), 44 deletions(-) diff --git a/src/compiler.cc b/src/compiler.cc index 6cad14446..1f98e30e2 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -638,6 +638,40 @@ static void SetFunctionInfo(Handle function_info, } +static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, + CompilationInfo* info, + Handle shared) { + // SharedFunctionInfo is passed separately, because if CompilationInfo + // was created using Script object, it will not have it. + + // Log the code generation. If source information is available include + // script name and line number. Check explicitly whether logging is + // enabled as finding the line number is not free. + if (info->isolate()->logger()->is_logging_code_events() || + info->isolate()->cpu_profiler()->is_profiling()) { + Handle