Index: src/cpu-profiler.h |
diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h |
index e04cf855f61e4b28ad79e4abe95e584e4fd17f67..4e395271b4f952f22b3fb7ec65d51cebe78151e6 100644 |
--- a/src/cpu-profiler.h |
+++ b/src/cpu-profiler.h |
@@ -197,12 +197,12 @@ class ProfilerEventsProcessor : public Thread { |
} } // namespace v8::internal |
-#define PROFILE(isolate, Call) \ |
- LOG(isolate, Call); \ |
- do { \ |
- if (v8::internal::CpuProfiler::is_profiling()) { \ |
- v8::internal::CpuProfiler::Call; \ |
- } \ |
+#define PROFILE(isolate, Call) \ |
+ LOG(isolate, Call); \ |
+ do { \ |
+ if (v8::internal::CpuProfiler::is_profiling(isolate)) { \ |
+ v8::internal::CpuProfiler::Call; \ |
+ } \ |
} while (false) |
#else |
#define PROFILE(isolate, Call) LOG(isolate, Call) |
@@ -261,10 +261,6 @@ class CpuProfiler { |
// TODO(isolates): this doesn't have to use atomics anymore. |
- static INLINE(bool is_profiling()) { |
- return is_profiling(Isolate::Current()); |
- } |
- |
static INLINE(bool is_profiling(Isolate* isolate)) { |
CpuProfiler* profiler = isolate->cpu_profiler(); |
return profiler != NULL && NoBarrier_Load(&profiler->is_profiling_); |
@@ -292,7 +288,7 @@ class CpuProfiler { |
Atomic32 is_profiling_; |
#else |
- static INLINE(bool is_profiling()) { return false; } |
+ static INLINE(bool is_profiling(Isolate* isolate)) { return false; } |
#endif // ENABLE_LOGGING_AND_PROFILING |
private: |