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

Unified Diff: runtime/vm/log.h

Issue 1314673008: Migrate logging infrastructure Isolate->Thread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Finalize marking tasks in parallel, now that it's safe. Created 5 years, 3 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
Index: runtime/vm/log.h
diff --git a/runtime/vm/log.h b/runtime/vm/log.h
index f4c58e964cffb4b30c51dbf1a0186b8ab32d4d82..61c56969363b797910c42ecd4e1665f7371c410f 100644
--- a/runtime/vm/log.h
+++ b/runtime/vm/log.h
@@ -11,20 +11,20 @@
namespace dart {
-class Isolate;
class LogBlock;
class Thread;
+// TODO(koda): Rename ISL_* -> THR_*.
Ivan Posva 2015/09/08 21:22:22 Why not do the rename right now?
koda 2015/09/09 00:26:57 Done.
#if defined(_MSC_VER)
#define ISL_Print(format, ...) \
- Isolate::Current()->Log()->Print(format, __VA_ARGS__)
+ Thread::Current()->Log()->Print(format, __VA_ARGS__)
#else
#define ISL_Print(format, ...) \
- Isolate::Current()->Log()->Print(format, ##__VA_ARGS__)
+ Thread::Current()->Log()->Print(format, ##__VA_ARGS__)
#endif
#define ISL_VPrint(format, args) \
- Isolate::Current()->Log()->VPrint(format, args)
+ Thread::Current()->Log()->VPrint(format, args)
typedef void (*LogPrinter)(const char* str, ...);
@@ -70,17 +70,14 @@ class Log {
// Can be nested.
class LogBlock : public StackResource {
public:
- LogBlock(Isolate* isolate, Log* log)
- : StackResource(isolate),
+ LogBlock(Thread* thread, Log* log)
+ : StackResource(thread),
log_(log), cursor_(log->cursor()) {
CommonConstructor();
}
- explicit LogBlock(Isolate* isolate);
explicit LogBlock(Thread* thread);
Ivan Posva 2015/09/08 21:22:22 Is there a particular reason to have this construc
koda 2015/09/09 00:26:57 Done.
- LogBlock(Thread* thread, Log* log);
-
~LogBlock() {
CommonDestructor();
Ivan Posva 2015/09/08 21:22:22 ditto. Please move to .cc file and remove the unn
koda 2015/09/09 00:26:57 Done.
}

Powered by Google App Engine
This is Rietveld 408576698