Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: src/handles.cc

Issue 6551011: Fix CPU profiling for Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/handles.cc
diff --git a/src/handles.cc b/src/handles.cc
index c5921c7302da26f9d95493d33dfa90e229bb3cf0..50987284bbc9568c1d383245a6a041cf6ec35798 100644
--- a/src/handles.cc
+++ b/src/handles.cc
@@ -847,9 +847,6 @@ static bool CompileLazyFunction(Handle<JSFunction> function,
result = CompileLazyHelper(&info, flag);
ASSERT(!result || function->is_compiled());
}
- if (result && function->is_compiled()) {
- PROFILE(FunctionCreateEvent(*function));
- }
return result;
}
@@ -870,7 +867,6 @@ bool CompileOptimized(Handle<JSFunction> function, int osr_ast_id) {
CompilationInfo info(function);
info.SetOptimizing(osr_ast_id);
bool result = CompileLazyHelper(&info, KEEP_EXCEPTION);
Vitaly Repeshko 2011/02/22 15:11:19 Temporary "result" variable is now unnecessary.
mnaganov (inactive) 2011/02/22 16:18:22 Done.
- if (result) PROFILE(FunctionCreateEvent(*function));
return result;
}

Powered by Google App Engine
This is Rietveld 408576698