Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Unified Diff: src/log.cc

Issue 2040683002: Remove dependencies of V8 on cpu-profiler is_profiling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use macro for declaring is_profiling Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.h ('k') | src/profiler/cpu-profiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/isolate.h ('k') | src/profiler/cpu-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698