| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 117b4c6d3178e65db0a87fc4bb1bcdb38384bdfc..79c36cc75b532528c526a23800edcce0ca39062d 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -1132,8 +1132,7 @@ static bool CompileOptimizedPrologue(CompilationInfo* info) {
|
| static bool GetOptimizedCodeNow(CompilationInfo* info) {
|
| if (!CompileOptimizedPrologue(info)) return false;
|
|
|
| - Logger::TimerEventScope timer(
|
| - info->isolate(), Logger::TimerEventScope::v8_recompile_synchronous);
|
| + TimerEventScope<TimerEventRecompileSynchronous> timer(info->isolate());
|
|
|
| OptimizedCompileJob job(info);
|
| if (job.CreateGraph() != OptimizedCompileJob::SUCCEEDED) return false;
|
| @@ -1164,8 +1163,7 @@ static bool GetOptimizedCodeLater(CompilationInfo* info) {
|
| if (!CompileOptimizedPrologue(info)) return false;
|
| info->SaveHandles(); // Copy handles to the compilation handle scope.
|
|
|
| - Logger::TimerEventScope timer(
|
| - isolate, Logger::TimerEventScope::v8_recompile_synchronous);
|
| + TimerEventScope<TimerEventRecompileSynchronous> timer(info->isolate());
|
|
|
| OptimizedCompileJob* job = new(info->zone()) OptimizedCompileJob(info);
|
| OptimizedCompileJob::Status status = job->CreateGraph();
|
| @@ -1237,8 +1235,7 @@ Handle<Code> Compiler::GetConcurrentlyOptimizedCode(OptimizedCompileJob* job) {
|
| Isolate* isolate = info->isolate();
|
|
|
| VMState<COMPILER> state(isolate);
|
| - Logger::TimerEventScope timer(
|
| - isolate, Logger::TimerEventScope::v8_recompile_synchronous);
|
| + TimerEventScope<TimerEventRecompileSynchronous> timer(info->isolate());
|
|
|
| Handle<SharedFunctionInfo> shared = info->shared_info();
|
| shared->code()->set_profiler_ticks(0);
|
|
|