Index: runtime/vm/thread.h |
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h |
index 056430cc421571032ada75c86f47bc71b4feecfe..457f1a4ed6c32c3996d1b18286ae85f82902dc67 100644 |
--- a/runtime/vm/thread.h |
+++ b/runtime/vm/thread.h |
@@ -56,6 +56,9 @@ class Thread { |
// The isolate that this thread is operating on, or NULL if none. |
Isolate* isolate() const { return isolate_; } |
+ static intptr_t isolate_offset() { |
+ return OFFSET_OF(Thread, isolate_); |
+ } |
// The (topmost) CHA for the compilation in the isolate of this thread. |
// TODO(23153): Move this out of Isolate/Thread. |