| Index: src/log.cc
|
| diff --git a/src/log.cc b/src/log.cc
|
| index 789e12dfe03b5c54e3dca8ecba5d76740d5c0406..ceddabb9d6462e32152a5206fcedae830b504ab3 100644
|
| --- a/src/log.cc
|
| +++ b/src/log.cc
|
| @@ -1025,6 +1025,7 @@ static const char* ComputeMarker(Code* code) {
|
| void Logger::CodeCreateEvent(LogEventsAndTags tag,
|
| Code* code,
|
| SharedFunctionInfo* shared,
|
| + CompilationInfo* info,
|
| Name* name) {
|
| if (!is_logging_code_events()) return;
|
| if (FLAG_ll_prof || Serializer::enabled() || code_event_handler_ != NULL) {
|
| @@ -1102,6 +1103,7 @@ void Logger::CodeCreateEvent(LogEventsAndTags tag,
|
| void Logger::CodeCreateEvent(LogEventsAndTags tag,
|
| Code* code,
|
| SharedFunctionInfo* shared,
|
| + CompilationInfo* info,
|
| Name* source, int line) {
|
| if (!is_logging_code_events()) return;
|
| if (FLAG_ll_prof || Serializer::enabled() || code_event_handler_ != NULL) {
|
| @@ -1744,20 +1746,20 @@ void Logger::LogExistingFunction(Handle<SharedFunctionInfo> shared,
|
| PROFILE(isolate_,
|
| CodeCreateEvent(
|
| Logger::ToNativeByScript(Logger::LAZY_COMPILE_TAG, *script),
|
| - *code, *shared,
|
| + *code, *shared, NULL,
|
| *script_name, line_num + 1));
|
| } else {
|
| // Can't distinguish eval and script here, so always use Script.
|
| PROFILE(isolate_,
|
| CodeCreateEvent(
|
| Logger::ToNativeByScript(Logger::SCRIPT_TAG, *script),
|
| - *code, *shared, *script_name));
|
| + *code, *shared, NULL, *script_name));
|
| }
|
| } else {
|
| PROFILE(isolate_,
|
| CodeCreateEvent(
|
| Logger::ToNativeByScript(Logger::LAZY_COMPILE_TAG, *script),
|
| - *code, *shared, *func_name));
|
| + *code, *shared, NULL, *func_name));
|
| }
|
| } else if (shared->IsApiFunction()) {
|
| // API function.
|
| @@ -1772,7 +1774,7 @@ void Logger::LogExistingFunction(Handle<SharedFunctionInfo> shared,
|
| } else {
|
| PROFILE(isolate_,
|
| CodeCreateEvent(
|
| - Logger::LAZY_COMPILE_TAG, *code, *shared, *func_name));
|
| + Logger::LAZY_COMPILE_TAG, *code, *shared, NULL, *func_name));
|
| }
|
| }
|
|
|
|
|