| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 7fbbfb17ff5daf7b809e94144a3b35a3f45ba633..030d0b293e6e390ee4eeca59fda6373e5fbc3d13 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> optimize_code_timer(isolate);
|
|
|
| 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> optimize_code_timer(isolate);
|
|
|
| if (!isolate->optimizing_compile_dispatcher()->IsQueueAvailable()) {
|
| if (FLAG_trace_concurrent_recompilation) {
|
| @@ -985,6 +987,7 @@ MaybeHandle<Code> Compiler::GetLazyCode(Handle<JSFunction> function) {
|
| Isolate* isolate = function->GetIsolate();
|
| DCHECK(!isolate->has_pending_exception());
|
| DCHECK(!function->is_compiled());
|
| + TimerEventScope<TimerEventCompileCode> timer(isolate);
|
| AggregatedHistogramTimerScope timer(isolate->counters()->compile_lazy());
|
| // If the debugger is active, do not compile with turbofan unless we can
|
| // deopt from turbofan code.
|
| @@ -1192,6 +1195,7 @@ void Compiler::CompileForLiveEdit(Handle<Script> script) {
|
|
|
| static Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
|
| Isolate* isolate = info->isolate();
|
| + TimerEventScope<TimerEventCompileCode> timer(isolate);
|
| PostponeInterruptsScope postpone(isolate);
|
| DCHECK(!isolate->native_context().is_null());
|
| ParseInfo* parse_info = info->parse_info();
|
| @@ -1586,6 +1590,7 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo(
|
| bool lazy = FLAG_lazy && allow_lazy && !literal->should_eager_compile();
|
|
|
| // Generate code
|
| + TimerEventScope<TimerEventCompileCode> timer(info->isolate());
|
| Handle<ScopeInfo> scope_info;
|
| if (lazy) {
|
| Handle<Code> code = isolate->builtins()->CompileLazy();
|
|
|