@@ -1233,7 +1233,7 @@ void Logger::CodeCreateEvent(LogEventsAndTags tag,
1233
1233
Code* code,
1234
1234
SharedFunctionInfo* shared,
1235
1235
CompilationInfo* info,
1236
- Name* source, int line) {
1236
+ Name* source, int line, int column ) {
1237
1237
PROFILER_LOG (CodeCreateEvent (tag, code, shared, info, source, line));
1238
1238
1239
1239
if (!is_logging_code_events ()) return ;
@@ -1252,7 +1252,7 @@ void Logger::CodeCreateEvent(LogEventsAndTags tag,
1252
1252
} else {
1253
1253
msg.AppendSymbolName (Symbol::cast (source));
1254
1254
}
1255
- msg.Append (" :%d\" ," , line);
1255
+ msg.Append (" :%d:%d \" ," , line, column );
1256
1256
msg.AppendAddress (shared->address ());
1257
1257
msg.Append (" ,%s" , ComputeMarker (code));
1258
1258
msg.Append (' \n ' );
@@ -1712,14 +1712,16 @@ void Logger::LogExistingFunction(Handle<SharedFunctionInfo> shared,
1712
1712
if (shared->script ()->IsScript ()) {
1713
1713
Handle <Script> script (Script::cast (shared->script ()));
1714
1714
int line_num = GetScriptLineNumber (script, shared->start_position ()) + 1 ;
1715
+ int column_num =
1716
+ GetScriptColumnNumber (script, shared->start_position ()) + 1 ;
1715
1717
if (script->name ()->IsString ()) {
1716
1718
Handle <String> script_name (String::cast (script->name ()));
1717
1719
if (line_num > 0 ) {
1718
1720
PROFILE (isolate_,
1719
1721
CodeCreateEvent (
1720
1722
Logger::ToNativeByScript (Logger::LAZY_COMPILE_TAG, *script),
1721
1723
*code, *shared, NULL ,
1722
- *script_name, line_num));
1724
+ *script_name, line_num, column_num ));
1723
1725
} else {
1724
1726
// Can't distinguish eval and script here, so always use Script.
1725
1727
PROFILE (isolate_,
@@ -1732,7 +1734,7 @@ void Logger::LogExistingFunction(Handle<SharedFunctionInfo> shared,
1732
1734
CodeCreateEvent (
1733
1735
Logger::ToNativeByScript (Logger::LAZY_COMPILE_TAG, *script),
1734
1736
*code, *shared, NULL ,
1735
- isolate_->heap ()->empty_string (), line_num));
1737
+ isolate_->heap ()->empty_string (), line_num, column_num ));
1736
1738
}
1737
1739
} else if (shared->IsApiFunction ()) {
1738
1740
// API function.
0 commit comments