Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 8edb41d7240d6378ad8818f5222ac54dfe1f7286..d2d1cee50ca4e0add91ca0a0bef4ef66865605e8 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1199,9 +1199,9 @@ void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
Handle<Code> code = info->code(); |
if (*code == info->isolate()->builtins()->builtin(Builtins::kLazyCompile)) |
return; |
+ int line_num = GetScriptLineNumber(script, shared->start_position()) + 1; |
+ USE(line_num); |
if (script->name()->IsString()) { |
- int line_num = GetScriptLineNumber(script, shared->start_position()) + 1; |
- USE(line_num); |
PROFILE(info->isolate(), |
CodeCreateEvent(Logger::ToNativeByScript(tag, *script), |
*code, |
@@ -1215,7 +1215,8 @@ void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
*code, |
*shared, |
info, |
- shared->DebugName())); |
+ info->isolate()->heap()->empty_string(), |
+ line_num)); |
} |
} |