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

Unified Diff: runtime/vm/thread.h

Issue 1975203003: Cleanup timeline stream enabled flag so that it can be easily tested from an intrinsic (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
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread.h
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h
index 2201f3632ea4c70af121e0d863fdc9df75501b02..cf04d973638edffe1053981505b9d2ef847566b2 100644
--- a/runtime/vm/thread.h
+++ b/runtime/vm/thread.h
@@ -48,6 +48,7 @@ class RuntimeEntry;
class Smi;
class StackResource;
class String;
+class TimelineStream;
class TypeArguments;
class TypeParameter;
class Zone;
@@ -270,6 +271,11 @@ class Thread : public BaseThread {
bool IsMutatorThread() const;
bool CanCollectGarbage() const;
+ // Offset of Dart TimelineStream object.
+ static intptr_t dart_stream_offset() {
+ return OFFSET_OF(Thread, dart_stream_);
+ }
+
// Is |this| executing Dart code?
bool IsExecutingDartCode() const;
@@ -632,6 +638,7 @@ LEAF_RUNTIME_ENTRY_LIST(DEFINE_OFFSET_METHOD)
uword stack_limit_;
uword stack_overflow_flags_;
Isolate* isolate_;
+ TimelineStream* dart_stream_;
Heap* heap_;
uword top_exit_frame_info_;
StoreBufferBlock* store_buffer_block_;
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698