Fix GEP & refactor compiler_llvm::JniCompiler.

Three major changes:

   o Use member offset instead of hard coded constant.
     We use GetElementPtr before, but it needs the ordinal number of
     field. If we reorder the members, we need to correct all the
     constants.

   o Remove the type parameter in the StoreToObjectOffset().
     LLVM IR is strongly typed, we can get the type by the new_value.

   o Add more comments.

(cherry picked from commit de9069a7768bd60bcdbcfb37d9b245f255ba8570)

Change-Id: I833c0be3177f7b7e5a59ddf6d9d6c06ee1e95ce6
2 files changed
tree: 4eedffbb35e7840ee8e3976b216d0758c4655c39
  1. .gitignore
  2. Android.mk
  3. build/
  4. jdwpspy/
  5. src/
  6. test/
  7. tools/