Chromium Code Reviews| 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; | 
| } |