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

Unified Diff: runtime/vm/thread.cc

Issue 1985813002: Add an intrinsified early out path for Dart timeline calls (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/thread.cc
diff --git a/runtime/vm/thread.cc b/runtime/vm/thread.cc
index 7307751eaf94e5ccbfc2e98ef770854a5db75d6b..0ea6207ecfede6b4a24a83ceb363f37f43a2479f 100644
--- a/runtime/vm/thread.cc
+++ b/runtime/vm/thread.cc
@@ -98,8 +98,10 @@ Thread::Thread(Isolate* isolate)
safepoint_state_(0),
execution_state_(kThreadInVM),
next_(NULL) {
+NOT_IN_PRODUCT(
dart_stream_ = Timeline::GetDartStream();
ASSERT(dart_stream_ != NULL);
+)
#define DEFAULT_INIT(type_name, member_name, init_expr, default_init_value) \
member_name = default_init_value;
CACHED_CONSTANTS_LIST(DEFAULT_INIT)

Powered by Google App Engine
This is Rietveld 408576698