Index: runtime/vm/thread.h |
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h |
index 2795e3cb4c4543d7f7e9949fc6cbb9e7cbbb5c7f..65a80c4c9dd288237596c8393d14e3360601f973 100644 |
--- a/runtime/vm/thread.h |
+++ b/runtime/vm/thread.h |
@@ -19,6 +19,8 @@ class RawBool; |
class RawObject; |
class StackResource; |
class Zone; |
+class Heap; |
koda
2015/07/29 19:48:20
Sort.
Florian Schneider
2015/08/03 14:07:32
Done.
|
+ |
// List of VM-global objects/addresses cached in each Thread object. |
#define CACHED_VM_OBJECTS_LIST(V) \ |
@@ -117,6 +119,10 @@ class Thread { |
return OFFSET_OF(Thread, state_) + OFFSET_OF(State, top_resource); |
} |
+ static intptr_t heap_offset() { |
+ return OFFSET_OF(Thread, heap_); |
+ } |
+ |
int32_t no_handle_scope_depth() const { |
#if defined(DEBUG) |
return state_.no_handle_scope_depth; |
@@ -202,6 +208,7 @@ CACHED_CONSTANTS_LIST(DEFINE_OFFSET_METHOD) |
static ThreadLocalKey thread_key_; |
Isolate* isolate_; |
+ Heap* heap_; |
State state_; |
StoreBufferBlock* store_buffer_block_; |
#define DECLARE_MEMBERS(type_name, member_name, expr, default_init_value) \ |