Chromium Code Reviews| Index: runtime/vm/thread.h |
| diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h |
| index 2b2d343e94f419e3a95eae2745efe4f669e25254..a0b3c609617a94d3641e985bc33f03a9a95f2717 100644 |
| --- a/runtime/vm/thread.h |
| +++ b/runtime/vm/thread.h |
| @@ -19,6 +19,7 @@ class Object; |
| class RawBool; |
| class RawObject; |
| class StackResource; |
| +class TimelineEventBlock; |
| class Zone; |
| @@ -187,6 +188,7 @@ class Thread { |
| Zone* zone; |
| uword top_exit_frame_info; |
| StackResource* top_resource; |
| + TimelineEventBlock* current_block; |
|
koda
2015/08/07 01:09:54
Name is a bit too general; consider adding "_timel
Cutch
2015/08/07 16:47:42
Done.
|
| #if defined(DEBUG) |
| HandleScope* top_handle_scope; |
| intptr_t no_handle_scope_depth; |
| @@ -204,6 +206,14 @@ CACHED_CONSTANTS_LIST(DEFINE_OFFSET_METHOD) |
| static bool CanLoadFromThread(const Object& object); |
| static intptr_t OffsetFromThread(const Object& object); |
| + TimelineEventBlock* current_block() const { |
| + return state_.current_block; |
| + } |
| + |
| + void set_current_block(TimelineEventBlock* block) { |
| + state_.current_block = block; |
| + } |
| + |
| private: |
| static ThreadLocalKey thread_key_; |
| @@ -235,6 +245,7 @@ CACHED_CONSTANTS_LIST(DECLARE_MEMBERS) |
| static void SetCurrent(Thread* current); |
| void Schedule(Isolate* isolate); |
| + void PostSchedule(); |
| void Unschedule(); |
| friend class ApiZone; |