Add DexCache table of <Method*, Method::GetCode()>
Change-Id: I69d46e61ff40456ff76888ad90b00e2036250d40
diff --git a/src/dex_cache.cc b/src/dex_cache.cc
index a012c71..88fbd2f 100644
--- a/src/dex_cache.cc
+++ b/src/dex_cache.cc
@@ -13,12 +13,20 @@
ObjectArray<String>* strings,
ObjectArray<Class>* types,
ObjectArray<Method>* methods,
- ObjectArray<Field>* fields) {
- Set(kLocation, location);
- Set(kStrings, strings);
- Set(kTypes, types);
- Set(kMethods, methods);
- Set(kFields, fields);
+ ObjectArray<Field>* fields,
+ CodeAndMethods* code_and_methods) {
+ CHECK(location != NULL);
+ CHECK(strings != NULL);
+ CHECK(types != NULL);
+ CHECK(methods != NULL);
+ CHECK(fields != NULL);
+ CHECK(code_and_methods != NULL);
+ Set(kLocation, location);
+ Set(kStrings, strings);
+ Set(kTypes, types);
+ Set(kMethods, methods);
+ Set(kFields, fields);
+ Set(kCodeAndMethods, code_and_methods);
}
} // namespace art