Add dex cache codegen helper function.
Change-Id: I02b0d3538dbbee03fb8837761b00ae1220d6902e
diff --git a/src/compiler_llvm/method_compiler.h b/src/compiler_llvm/method_compiler.h
index f86d740..6a6768b 100644
--- a/src/compiler_llvm/method_compiler.h
+++ b/src/compiler_llvm/method_compiler.h
@@ -264,6 +264,21 @@
#undef GEN_INSN_ARGS
+ // Dex cache code generation helper function
+ llvm::Value* EmitLoadDexCacheAddr(MemberOffset dex_cache_offset);
+
+ void EmitLoadDexCacheCodeAndDirectMethodFieldAddr(
+ llvm::Value*& code_addr_field_addr,
+ llvm::Value*& method_field_addr,
+ uint32_t method_idx);
+
+ llvm::Value* EmitLoadDexCacheStaticStorageFieldAddr(uint32_t type_idx);
+
+ llvm::Value* EmitLoadDexCacheResolvedTypeFieldAddr(uint32_t type_idx);
+
+ llvm::Value* EmitLoadDexCacheStringFieldAddr(uint32_t string_idx);
+
+
// Code generation helper function
llvm::Value* EmitLoadMethodObjectAddr();