| Index: src/log.h
|
| diff --git a/src/log.h b/src/log.h
|
| index a1ebd79ccae6ca843fbf18cf69cba9cf999c2796..c8f81bc57547bed3b710494cd6075e8e5f31cec8 100644
|
| --- a/src/log.h
|
| +++ b/src/log.h
|
| @@ -76,6 +76,7 @@ class Profiler;
|
| class Semaphore;
|
| class SlidingStateWindow;
|
| class Ticker;
|
| +class Isolate;
|
|
|
| #undef LOG
|
| #define LOG(isolate, Call) \
|
| @@ -278,24 +279,24 @@ class Logger {
|
|
|
| class TimerEventScope {
|
| public:
|
| - TimerEventScope(Logger* logger, const char* name)
|
| - : logger_(logger), name_(name), start_(0) {
|
| + TimerEventScope(Isolate* isolate, const char* name)
|
| + : isolate_(isolate), name_(name), start_(0) {
|
| if (FLAG_log_timer_events) start_ = OS::Ticks();
|
| }
|
|
|
| ~TimerEventScope() {
|
| - if (FLAG_log_timer_events) {
|
| - logger_->TimerEvent(name_, start_, OS::Ticks());
|
| - }
|
| + if (FLAG_log_timer_events) LogTimerEvent();
|
| }
|
|
|
| + void LogTimerEvent();
|
| +
|
| static const char* v8_recompile_synchronous;
|
| static const char* v8_recompile_parallel;
|
| static const char* v8_compile_full_code;
|
| static const char* v8_execute;
|
|
|
| private:
|
| - Logger* logger_;
|
| + Isolate* isolate_;
|
| const char* name_;
|
| int64_t start_;
|
| };
|
|
|