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.

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