diff --git a/src/compiler.cc b/src/compiler.cc index 5de9d960c7..7b0b921529 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -1181,16 +1181,7 @@ void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, Handle code = info->code(); if (*code == info->isolate()->builtins()->builtin(Builtins::kLazyCompile)) return; - Handle script_name; if (script->name()->IsString()) { - script_name = Handle(String::cast(script->name())); - } else { - Handle name = GetScriptNameOrSourceURL(script); - if (!name.is_null() && name->IsString()) { - script_name = Handle::cast(name); - } - } - if (!script_name.is_null()) { int line_num = GetScriptLineNumber(script, shared->start_position()) + 1; USE(line_num); PROFILE(info->isolate(), @@ -1198,7 +1189,7 @@ void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, *code, *shared, info, - String::cast(*script_name), + String::cast(script->name()), line_num)); } else { PROFILE(info->isolate(), diff --git a/src/handles.cc b/src/handles.cc index 152f8c2531..6859cd423f 100644 --- a/src/handles.cc +++ b/src/handles.cc @@ -599,9 +599,6 @@ v8::Handle GetKeysForIndexedInterceptor(Handle receiver, Handle GetScriptNameOrSourceURL(Handle