| Index: src/log.cc
|
| diff --git a/src/log.cc b/src/log.cc
|
| index df4fcdc7aa4db0d258fa73b30f37a2d2e702c4cb..a44add6cb928f8fe59fc6d8ffff6d595318a6055 100644
|
| --- a/src/log.cc
|
| +++ b/src/log.cc
|
| @@ -1659,15 +1659,15 @@ void Logger::LogExistingFunction(Handle<SharedFunctionInfo> shared,
|
| Handle<String> func_name(shared->DebugName());
|
| if (shared->script()->IsScript()) {
|
| Handle<Script> script(Script::cast(shared->script()));
|
| + int line_num = GetScriptLineNumber(script, shared->start_position()) + 1;
|
| if (script->name()->IsString()) {
|
| Handle<String> script_name(String::cast(script->name()));
|
| - int line_num = GetScriptLineNumber(script, shared->start_position());
|
| if (line_num > 0) {
|
| PROFILE(isolate_,
|
| CodeCreateEvent(
|
| Logger::ToNativeByScript(Logger::LAZY_COMPILE_TAG, *script),
|
| *code, *shared, NULL,
|
| - *script_name, line_num + 1));
|
| + *script_name, line_num));
|
| } else {
|
| // Can't distinguish eval and script here, so always use Script.
|
| PROFILE(isolate_,
|
| @@ -1679,7 +1679,8 @@ void Logger::LogExistingFunction(Handle<SharedFunctionInfo> shared,
|
| PROFILE(isolate_,
|
| CodeCreateEvent(
|
| Logger::ToNativeByScript(Logger::LAZY_COMPILE_TAG, *script),
|
| - *code, *shared, NULL, *func_name));
|
| + *code, *shared, NULL,
|
| + isolate_->heap()->empty_string(), line_num));
|
| }
|
| } else if (shared->IsApiFunction()) {
|
| // API function.
|
|
|