Chromium Code Reviews| Index: src/compiler.cc |
| diff --git a/src/compiler.cc b/src/compiler.cc |
| index 7fbbfb17ff5daf7b809e94144a3b35a3f45ba633..615c9a38dd4c8c826f5ce0928cb5586a90873583 100644 |
| --- a/src/compiler.cc |
| +++ b/src/compiler.cc |
| @@ -899,6 +899,7 @@ bool Compiler::ParseAndAnalyze(ParseInfo* info) { |
| static bool GetOptimizedCodeNow(CompilationInfo* info) { |
| Isolate* isolate = info->isolate(); |
| CanonicalHandleScope canonical(isolate); |
| + TimerEventScope<TimerEventOptimizeCode> optimizeCodeTimer(isolate); |
|
Michael Starzinger
2016/02/03 15:36:26
nit: s/optimizeCodeTimer/optimize_code_timer/
Camillo Bruni
2016/02/04 17:48:33
arg, I fall back to easily to camelCase when progr
|
| if (!Compiler::ParseAndAnalyze(info->parse_info())) return false; |
| @@ -928,6 +929,7 @@ static bool GetOptimizedCodeNow(CompilationInfo* info) { |
| static bool GetOptimizedCodeLater(CompilationInfo* info) { |
| Isolate* isolate = info->isolate(); |
| CanonicalHandleScope canonical(isolate); |
| + TimerEventScope<TimerEventOptimizeCode> optimizeCodeTimer(isolate); |
|
Michael Starzinger
2016/02/03 15:36:26
nit: s/optimizeCodeTimer/optimize_code_timer/
|
| if (!isolate->optimizing_compile_dispatcher()->IsQueueAvailable()) { |
| if (FLAG_trace_concurrent_recompilation) { |
| @@ -1192,6 +1194,7 @@ void Compiler::CompileForLiveEdit(Handle<Script> script) { |
| static Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) { |
| Isolate* isolate = info->isolate(); |
| + TimerEventScope<TimerEventCompileCode> timer(isolate); |
|
Michael Starzinger
2016/02/03 15:36:26
This does not cover lazily compiled functions, and
|
| PostponeInterruptsScope postpone(isolate); |
| DCHECK(!isolate->native_context().is_null()); |
| ParseInfo* parse_info = info->parse_info(); |