Decoding references. Otherwise, buggy code works only on stack refs.

Now, we handle not only SIRT (stack stuff), but because now we call
DecodeJObject(), we can also handle Globals, Global Weak, and Local.

Change-Id: Ibaf2f6ff81765bda6c14491b35ea088a5bf2bb27
diff --git a/src/thread.h b/src/thread.h
index 0a94151..8a297d6 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -313,6 +313,9 @@
                                      void* throw_pc,
                                      const DexFile& dex_file,
                                      ClassLinker* class_linker);
+  static ThreadOffset SelfOffset() {
+    return ThreadOffset(OFFSETOF_MEMBER(Thread, self_));
+  }
 
   // Offset of exception within Thread, used by generated code
   static ThreadOffset ExceptionOffset() {