Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 3fed0bcc0c5c20bc9da6d9c147e49f98dab633ad..e59238d02dc38f43412810b9ecf5f49577ffdca6 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -788,6 +788,7 @@ bool CompileLazy(Handle<JSFunction> function, |
ClearExceptionFlag flag) { |
if (function->shared()->is_compiled()) { |
function->set_code(function->shared()->code()); |
+ PROFILE(FunctionCreateEvent(*function)); |
function->shared()->set_code_age(0); |
return true; |
} else { |
@@ -803,6 +804,7 @@ bool CompileLazyInLoop(Handle<JSFunction> function, |
ClearExceptionFlag flag) { |
if (function->shared()->is_compiled()) { |
function->set_code(function->shared()->code()); |
+ PROFILE(FunctionCreateEvent(*function)); |
function->shared()->set_code_age(0); |
return true; |
} else { |