Add DexCache table of <Method*, Method::GetCode()>
Change-Id: I69d46e61ff40456ff76888ad90b00e2036250d40
diff --git a/src/object.h b/src/object.h
index e306d74..9db0704 100644
--- a/src/object.h
+++ b/src/object.h
@@ -18,6 +18,7 @@
class Array;
class Class;
+class CodeAndMethods;
class DexCache;
class Field;
class InterfaceEntry;
@@ -586,6 +587,10 @@
return code_ != NULL;
}
+ const void* GetCode() {
+ return code_;
+ }
+
void SetCode(const byte* compiled_code,
size_t byte_count,
InstructionSet set) {
@@ -714,12 +719,13 @@
ObjectArray<Class>* dex_cache_types_;
ObjectArray<Method>* dex_cache_methods_;
ObjectArray<Field>* dex_cache_fields_;
+ CodeAndMethods* dex_cache_code_and_methods_;
private:
// Compiled code associated with this method
scoped_ptr<MemMap> code_area_;
- void* code_;
- // Instruction set of the coompiled code
+ const void* code_;
+ // Instruction set of the compiled code
InstructionSet code_instruction_set_;
// Size in bytes of compiled code associated with this method