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

Unified Diff: runtime/vm/thread.h

Issue 1263513002: VM: Load allocation-top and -end via Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed cc tests Created 5 years, 4 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.h
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h
index 2795e3cb4c4543d7f7e9949fc6cbb9e7cbbb5c7f..02bd5ffb41f06827c3c6631bd61e21e82385c529 100644
--- a/runtime/vm/thread.h
+++ b/runtime/vm/thread.h
@@ -13,6 +13,7 @@ namespace dart {
class CHA;
class HandleScope;
+class Heap;
class Isolate;
class Object;
class RawBool;
@@ -20,6 +21,7 @@ class RawObject;
class StackResource;
class Zone;
+
// List of VM-global objects/addresses cached in each Thread object.
#define CACHED_VM_OBJECTS_LIST(V) \
V(RawObject*, object_null_, Object::null(), NULL) \
@@ -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) \
« runtime/vm/isolate.h ('K') | « runtime/vm/stub_code_x64.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698