OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_THREAD_H_ | 5 #ifndef VM_THREAD_H_ |
6 #define VM_THREAD_H_ | 6 #define VM_THREAD_H_ |
7 | 7 |
8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
9 #include "vm/os_thread.h" | 9 #include "vm/os_thread.h" |
10 #include "vm/store_buffer.h" | 10 #include "vm/store_buffer.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 static intptr_t OffsetFromThread(const RuntimeEntry* runtime_entry); | 250 static intptr_t OffsetFromThread(const RuntimeEntry* runtime_entry); |
251 | 251 |
252 TimelineEventBlock* timeline_block() const { | 252 TimelineEventBlock* timeline_block() const { |
253 return state_.timeline_block; | 253 return state_.timeline_block; |
254 } | 254 } |
255 | 255 |
256 void set_timeline_block(TimelineEventBlock* block) { | 256 void set_timeline_block(TimelineEventBlock* block) { |
257 state_.timeline_block = block; | 257 state_.timeline_block = block; |
258 } | 258 } |
259 | 259 |
| 260 void CloseTimelineBlock(); |
260 class Log* log() const; | 261 class Log* log() const; |
261 | 262 |
262 LongJumpScope* long_jump_base() const { return state_.long_jump_base; } | 263 LongJumpScope* long_jump_base() const { return state_.long_jump_base; } |
263 void set_long_jump_base(LongJumpScope* value) { | 264 void set_long_jump_base(LongJumpScope* value) { |
264 state_.long_jump_base = value; | 265 state_.long_jump_base = value; |
265 } | 266 } |
266 | 267 |
267 ThreadId id() const { | 268 ThreadId id() const { |
268 ASSERT(id_ != OSThread::kInvalidThreadId); | 269 ASSERT(id_ != OSThread::kInvalidThreadId); |
269 return id_; | 270 return id_; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 friend class ApiZone; | 328 friend class ApiZone; |
328 friend class Isolate; | 329 friend class Isolate; |
329 friend class StackZone; | 330 friend class StackZone; |
330 friend class ThreadRegistry; | 331 friend class ThreadRegistry; |
331 DISALLOW_COPY_AND_ASSIGN(Thread); | 332 DISALLOW_COPY_AND_ASSIGN(Thread); |
332 }; | 333 }; |
333 | 334 |
334 } // namespace dart | 335 } // namespace dart |
335 | 336 |
336 #endif // VM_THREAD_H_ | 337 #endif // VM_THREAD_H_ |
OLD | NEW |