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

Unified Diff: runtime/vm/thread.h

Issue 1261923008: Begin migration of InterruptableThreadState into Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Parentheses. 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
« no previous file with comments | « runtime/vm/isolate.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 02bd5ffb41f06827c3c6631bd61e21e82385c529..98e7a87069485c3dc5e5262d360fa8d7445b300b 100644
--- a/runtime/vm/thread.h
+++ b/runtime/vm/thread.h
@@ -14,6 +14,7 @@ namespace dart {
class CHA;
class HandleScope;
class Heap;
+class InterruptableThreadState;
class Isolate;
class Object;
class RawBool;
@@ -119,6 +120,15 @@ class Thread {
return OFFSET_OF(Thread, state_) + OFFSET_OF(State, top_resource);
}
+ void set_thread_state(InterruptableThreadState* state) {
+ ASSERT((thread_state() == NULL) || (state == NULL));
+ state_.thread_state = state;
+ }
+
+ InterruptableThreadState* thread_state() const {
+ return state_.thread_state;
+ }
+
static intptr_t heap_offset() {
return OFFSET_OF(Thread, heap_);
}
@@ -187,6 +197,8 @@ class Thread {
Zone* zone;
uword top_exit_frame_info;
StackResource* top_resource;
+ // TODO(koda): Migrate individual fields of InterruptableThreadState.
+ InterruptableThreadState* thread_state;
#if defined(DEBUG)
HandleScope* top_handle_scope;
intptr_t no_handle_scope_depth;
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698