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

Unified Diff: runtime/vm/log.cc

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.cc
diff --git a/runtime/vm/log.cc b/runtime/vm/log.cc
index 5bb984222e94a902b5b44d41fe529e9779589f7d..c8e9e61ddcdbe36172a96da9811d0c5aec1cc99a 100644
--- a/runtime/vm/log.cc
+++ b/runtime/vm/log.cc
@@ -117,24 +117,10 @@ void Log::DisableManualFlush() {
}
-LogBlock::LogBlock(Thread* thread, Log* log)
- : StackResource(thread),
- log_(log), cursor_(log->cursor()) {
- CommonConstructor();
-}
-
-
-LogBlock::LogBlock(Isolate* isolate)
- : StackResource(isolate),
- log_(isolate->Log()), cursor_(isolate->Log()->cursor()) {
- CommonConstructor();
-}
-
-
LogBlock::LogBlock(Thread* thread)
: StackResource(thread),
- log_(thread->isolate()->Log()),
- cursor_(thread->isolate()->Log()->cursor()) {
+ log_(thread->Log()),
+ cursor_(thread->Log()->cursor()) {
CommonConstructor();
Ivan Posva 2015/09/08 21:22:21 How about changing CommonConstructor() to Initiali
koda 2015/09/09 00:26:57 Done (although it prevents the cursor_ field from
Ivan Posva 2015/09/09 19:56:24 Actually, I am fine with duplicating the code and
koda 2015/09/09 22:22:57 Done.
}

Powered by Google App Engine
This is Rietveld 408576698