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

Unified Diff: src/log.h

Issue 5107003: [Isolates] Cleanup of codepaths slowing down Dromaeo in browser. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: tiny fix Created 10 years, 1 month 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
« src/api.cc ('K') | « src/isolate.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log.h
diff --git a/src/log.h b/src/log.h
index 0791fb9e4dbb30e44322fd3ea74580aa235fb195..00e27a7e1329bfa4c2ef3faaade962120d96ed92 100644
--- a/src/log.h
+++ b/src/log.h
@@ -79,14 +79,16 @@ class CompressionHelper;
#undef LOG
// TODO(isolates): pass isolate pointer here.
#ifdef ENABLE_LOGGING_AND_PROFILING
-#define LOG(Call) \
- do { \
- v8::internal::Logger* logger = \
- v8::internal::Isolate::Current()->logger(); \
- if (logger->is_logging()) \
- logger->Call; \
+#define LOG_FOR_ISOLATE(isolate, Call) \
+ do { \
+ v8::internal::Logger* logger = isolate->logger(); \
+ if (logger->is_logging()) \
+ logger->Call; \
} while (false)
+
+#define LOG(Call) LOG_FOR_ISOLATE(v8::internal::Isolate::Current(), Call)
#else
+#define LOG_FOR_ISOLATE(isolate, Call) ((void) 0)
Vitaly Repeshko 2010/12/06 18:18:45 Doing this in two steps will most likely cause too
#define LOG(Call) ((void) 0)
#endif
« src/api.cc ('K') | « src/isolate.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698