Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index b81ba0867dfac75b30f2513017dd17a9b85fe2a9..e334fca4d790208d8c0ea3fc6fd1991b0786c97e 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -41,13 +41,11 @@ for (int i = 0; i < listeners_.length(); ++i) { \ |
listeners_[i]->Call; \ |
} |
-#define PROFILER_LOG(Call) \ |
- do { \ |
- CpuProfiler* cpu_profiler = isolate_->cpu_profiler(); \ |
- if (cpu_profiler->is_profiling()) { \ |
- cpu_profiler->Call; \ |
- } \ |
- } while (false); |
+#define PROFILER_LOG(Call) \ |
+ if (isolate_->is_profiling()) { \ |
+ isolate_->cpu_profiler()->Call; \ |
+ } else { \ |
+ } |
static const char* ComputeMarker(SharedFunctionInfo* shared, |
AbstractCode* code) { |