blob: e143fd8c6aac29cdd3380dd13deaa66136357444 [file] [log] [blame]
Carl Shapiro0e5d75d2011-07-06 18:28:37 -07001// Copyright 2011 Google Inc. All Rights Reserved.
2
3#ifndef ART_SRC_CLASS_LINKER_H_
4#define ART_SRC_CLASS_LINKER_H_
5
6#include <map>
7#include <utility>
8#include <vector>
9
Brian Carlstrom7e49dca2011-07-22 18:07:34 -070010#include "dex_file.h"
Brian Carlstrom7e93b502011-08-04 14:16:22 -070011#include "heap.h"
Brian Carlstrom7e93b502011-08-04 14:16:22 -070012#include "macros.h"
Elliott Hughes8daa0922011-09-11 13:46:25 -070013#include "mutex.h"
Brian Carlstrom578bbdc2011-07-21 14:07:47 -070014#include "object.h"
Brian Carlstrom7e93b502011-08-04 14:16:22 -070015#include "unordered_map.h"
Brian Carlstroma663ea52011-08-19 23:33:41 -070016#include "unordered_set.h"
Brian Carlstrom7e93b502011-08-04 14:16:22 -070017
Brian Carlstrom578bbdc2011-07-21 14:07:47 -070018#include "gtest/gtest.h"
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070019
20namespace art {
21
Elliott Hughescf4c6c42011-09-01 15:16:42 -070022class ClassLoader;
23class InternTable;
24
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070025class ClassLinker {
26 public:
Brian Carlstromc74255f2011-09-11 22:47:39 -070027 // Initializes the class linker using DexFiles and an optional an image.
Elliott Hughescf4c6c42011-09-01 15:16:42 -070028 static ClassLinker* Create(const std::vector<const DexFile*>& boot_class_path,
Brian Carlstrom69b15fb2011-09-03 12:25:21 -070029 const std::vector<const DexFile*>& class_path,
Brian Carlstromc74255f2011-09-11 22:47:39 -070030 InternTable* intern_table, bool image);
Carl Shapiro61e019d2011-07-14 16:53:09 -070031
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -070032 ~ClassLinker();
Carl Shapiro565f5072011-07-10 13:39:43 -070033
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070034 // Finds a class by its descriptor name.
Brian Carlstrom74eb46a2011-08-02 20:10:14 -070035 // If class_loader is null, searches boot_class_path_.
Brian Carlstrom6cc18452011-07-18 15:10:33 -070036 Class* FindClass(const StringPiece& descriptor,
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -070037 const ClassLoader* class_loader);
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070038
Elliott Hughesd8ddfd52011-08-15 14:32:53 -070039 Class* FindPrimitiveClass(char type);
40
Brian Carlstrom6cc18452011-07-18 15:10:33 -070041 Class* FindSystemClass(const StringPiece& descriptor) {
Brian Carlstrom74eb46a2011-08-02 20:10:14 -070042 return FindClass(descriptor, NULL);
Carl Shapiro565f5072011-07-10 13:39:43 -070043 }
44
Elliott Hughese27955c2011-08-26 15:21:24 -070045 size_t NumLoadedClasses() const;
46
Brian Carlstromb63ec392011-08-27 17:38:27 -070047 // Resolve a String with the given index from the DexFile, storing the
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -070048 // result in the DexCache.
Ian Rogers0cfe1fb2011-08-26 03:29:44 -070049 String* ResolveString(const DexFile& dex_file, uint32_t string_idx, DexCache* dex_cache);
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -070050
Brian Carlstromb63ec392011-08-27 17:38:27 -070051 // Resolve a Type with the given index from the DexFile, storing the
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -070052 // result in the DexCache. The referrer is used to identity the
53 // target DexCache and ClassLoader to use for resolution.
54 Class* ResolveType(const DexFile& dex_file,
55 uint32_t type_idx,
56 const Class* referrer) {
57 return ResolveType(dex_file,
58 type_idx,
59 referrer->GetDexCache(),
60 referrer->GetClassLoader());
61 }
62
Brian Carlstromb63ec392011-08-27 17:38:27 -070063 // Resolve a Type with the given index from the DexFile, storing the
Ian Rogers0cfe1fb2011-08-26 03:29:44 -070064 // result in the DexCache. The referrer is used to identify the
Brian Carlstromb63ec392011-08-27 17:38:27 -070065 // target DexCache and ClassLoader to use for resolution.
Brian Carlstromb9edb842011-08-28 16:31:06 -070066 Class* ResolveType(uint32_t type_idx, const Method* referrer) {
Brian Carlstromb63ec392011-08-27 17:38:27 -070067 Class* declaring_class = referrer->GetDeclaringClass();
68 DexCache* dex_cache = declaring_class->GetDexCache();
Ian Rogers0cfe1fb2011-08-26 03:29:44 -070069 // TODO: we could check for a dex cache hit here
70 const ClassLoader* class_loader = declaring_class->GetClassLoader();
71 const DexFile& dex_file = FindDexFile(dex_cache);
72 return ResolveType(dex_file, type_idx, dex_cache, class_loader);
73 }
74
75 Class* ResolveType(uint32_t type_idx, const Field* referrer) {
76 Class* declaring_class = referrer->GetDeclaringClass();
77 DexCache* dex_cache = declaring_class->GetDexCache();
78 // TODO: we could check for a dex cache hit here
Brian Carlstromb63ec392011-08-27 17:38:27 -070079 const ClassLoader* class_loader = declaring_class->GetClassLoader();
80 const DexFile& dex_file = FindDexFile(dex_cache);
81 return ResolveType(dex_file, type_idx, dex_cache, class_loader);
82 }
83
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -070084 // Resolve a type with the given ID from the DexFile, storing the
85 // result in DexCache. The ClassLoader is used to search for the
86 // type, since it may be referenced from but not contained within
87 // the given DexFile.
88 Class* ResolveType(const DexFile& dex_file,
89 uint32_t type_idx,
90 DexCache* dex_cache,
91 const ClassLoader* class_loader);
92
Brian Carlstromb9edb842011-08-28 16:31:06 -070093 static StaticStorageBase* InitializeStaticStorageFromCode(uint32_t type_idx,
94 const Method* referrer);
Brian Carlstrom1caa2c22011-08-28 13:02:33 -070095
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -070096 // Resolve a method with a given ID from the DexFile, storing the
97 // result in DexCache. The ClassLinker and ClassLoader are used as
98 // in ResolveType. What is unique is the method type argument which
99 // is used to determine if this method is a direct, static, or
100 // virtual method.
101 Method* ResolveMethod(const DexFile& dex_file,
102 uint32_t method_idx,
103 DexCache* dex_cache,
104 const ClassLoader* class_loader,
Brian Carlstrom20cfffa2011-08-26 02:31:27 -0700105 bool is_direct);
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700106
Brian Carlstrom16192862011-09-12 17:50:06 -0700107 Method* ResolveMethod(uint32_t method_idx, const Method* referrer, bool is_direct) {
108 Class* declaring_class = referrer->GetDeclaringClass();
109 DexCache* dex_cache = declaring_class->GetDexCache();
110 // TODO: we could check for a dex cache hit here
111 const ClassLoader* class_loader = declaring_class->GetClassLoader();
112 const DexFile& dex_file = FindDexFile(dex_cache);
113 return ResolveMethod(dex_file, method_idx, dex_cache, class_loader, is_direct);
114 }
115
Brian Carlstromb9edb842011-08-28 16:31:06 -0700116 Field* ResolveField(uint32_t field_idx, const Method* referrer) {
117 Class* declaring_class = referrer->GetDeclaringClass();
118 DexCache* dex_cache = declaring_class->GetDexCache();
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700119 // TODO: we could check for a dex cache hit here
Brian Carlstromb9edb842011-08-28 16:31:06 -0700120 const ClassLoader* class_loader = declaring_class->GetClassLoader();
121 const DexFile& dex_file = FindDexFile(dex_cache);
122 return ResolveField(dex_file, field_idx, dex_cache, class_loader, true);
123 }
124
Brian Carlstrom16192862011-09-12 17:50:06 -0700125 // Resolve a field with a given ID from the DexFile, storing the
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700126 // result in DexCache. The ClassLinker and ClassLoader are used as
127 // in ResolveType. What is unique is the is_static argument which is
128 // used to determine if we are resolving a static or non-static
129 // field.
130 Field* ResolveField(const DexFile& dex_file,
131 uint32_t field_idx,
132 DexCache* dex_cache,
133 const ClassLoader* class_loader,
134 bool is_static);
135
Elliott Hughesf4c21c92011-08-19 17:31:31 -0700136 // Returns true on success, false if there's an exception pending.
137 bool EnsureInitialized(Class* c);
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700138
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700139 void RegisterDexFile(const DexFile& dex_file);
140 void RegisterDexFile(const DexFile& dex_file, DexCache* dex_cache);
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700141
Brian Carlstrom8a487412011-08-29 20:08:52 -0700142 const std::vector<const DexFile*>& GetBootClassPath() {
143 return boot_class_path_;
144 }
145
Elliott Hughes410c0c82011-09-01 17:58:25 -0700146 void VisitRoots(Heap::RootVisitor* visitor, void* arg) const;
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700147
buzbeec143c552011-08-20 17:38:58 -0700148 const DexFile& FindDexFile(const DexCache* dex_cache) const;
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700149 DexCache* FindDexCache(const DexFile& dex_file) const;
buzbeec143c552011-08-20 17:38:58 -0700150
Shih-wei Liao44175362011-08-28 16:59:17 -0700151 template <class T>
152 ObjectArray<T>* AllocObjectArray(size_t length) {
153 return ObjectArray<T>::Alloc(GetClassRoot(kObjectArrayClass), length);
154 }
155
Shih-wei Liao55df06b2011-08-26 14:39:27 -0700156 ObjectArray<StackTraceElement>* AllocStackTraceElementArray(size_t length);
157
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700158 private:
Elliott Hughescf4c6c42011-09-01 15:16:42 -0700159 ClassLinker(InternTable*);
Carl Shapiro61e019d2011-07-14 16:53:09 -0700160
Brian Carlstroma663ea52011-08-19 23:33:41 -0700161 // Initialize class linker from DexFile instances.
Brian Carlstrom69b15fb2011-09-03 12:25:21 -0700162 void Init(const std::vector<const DexFile*>& boot_class_path_,
163 const std::vector<const DexFile*>& class_path_);
Carl Shapiro61e019d2011-07-14 16:53:09 -0700164
Brian Carlstromc74255f2011-09-11 22:47:39 -0700165 // Initialize class linker from pre-initialized image.
166 void InitFromImage(const std::vector<const DexFile*>& boot_class_path_,
167 const std::vector<const DexFile*>& class_path_);
168 static void InitFromImageCallback(Object* obj, void *arg);
169 struct InitFromImageCallbackState;
Brian Carlstroma663ea52011-08-19 23:33:41 -0700170
171 void FinishInit();
172
Elliott Hughesf4c21c92011-08-19 17:31:31 -0700173 bool InitializeClass(Class* klass);
174
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700175 // For early bootstrapping by Init
Brian Carlstrom4873d462011-08-21 15:23:39 -0700176 Class* AllocClass(Class* java_lang_Class, size_t class_size);
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700177
178 // Alloc* convenience functions to avoid needing to pass in Class*
179 // values that are known to the ClassLinker such as
180 // kObjectArrayClass and kJavaLangString etc.
Brian Carlstrom4873d462011-08-21 15:23:39 -0700181 Class* AllocClass(size_t class_size);
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700182 DexCache* AllocDexCache(const DexFile& dex_file);
Jesse Wilson35baaab2011-08-10 16:18:03 -0400183 Field* AllocField();
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700184 Method* AllocMethod();
Brian Carlstrom9cc262e2011-08-28 12:45:30 -0700185 CodeAndDirectMethods* AllocCodeAndDirectMethods(size_t length);
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700186 InterfaceEntry* AllocInterfaceEntry(Class* interface);
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700187
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700188 Class* CreatePrimitiveClass(const char* descriptor,
189 Class::PrimitiveType type);
Brian Carlstroma331b3c2011-07-18 17:47:56 -0700190
Brian Carlstrom578bbdc2011-07-21 14:07:47 -0700191 Class* CreateArrayClass(const StringPiece& descriptor,
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700192 const ClassLoader* class_loader);
Brian Carlstroma331b3c2011-07-18 17:47:56 -0700193
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700194 void AppendToBootClassPath(const DexFile& dex_file);
195 void AppendToBootClassPath(const DexFile& dex_file, DexCache* dex_cache);
Brian Carlstrom578bbdc2011-07-21 14:07:47 -0700196
Elliott Hughes5fe594f2011-09-08 12:33:17 -0700197 void ConstructFieldMap(const DexFile& dex_file, const DexFile::ClassDef& dex_class_def,
198 Class* c, std::map<int, Field*>& field_map);
199
Brian Carlstrom4873d462011-08-21 15:23:39 -0700200 size_t SizeOfClass(const DexFile& dex_file,
201 const DexFile::ClassDef& dex_class_def);
202
Brian Carlstromf615a612011-07-23 12:50:34 -0700203 void LoadClass(const DexFile& dex_file,
204 const DexFile::ClassDef& dex_class_def,
Brian Carlstrom74eb46a2011-08-02 20:10:14 -0700205 Class* klass,
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700206 const ClassLoader* class_loader);
Brian Carlstrom578bbdc2011-07-21 14:07:47 -0700207
Brian Carlstromf615a612011-07-23 12:50:34 -0700208 void LoadInterfaces(const DexFile& dex_file,
209 const DexFile::ClassDef& dex_class_def,
Brian Carlstrom578bbdc2011-07-21 14:07:47 -0700210 Class *klass);
211
Brian Carlstromf615a612011-07-23 12:50:34 -0700212 void LoadField(const DexFile& dex_file,
213 const DexFile::Field& dex_field,
Brian Carlstrom578bbdc2011-07-21 14:07:47 -0700214 Class* klass,
215 Field* dst);
216
Brian Carlstromf615a612011-07-23 12:50:34 -0700217 void LoadMethod(const DexFile& dex_file,
218 const DexFile::Method& dex_method,
Brian Carlstrom578bbdc2011-07-21 14:07:47 -0700219 Class* klass,
Brian Carlstrom1f870082011-08-23 16:02:11 -0700220 Method* dst);
Brian Carlstrom934486c2011-07-12 23:42:50 -0700221
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -0700222 Class* LookupClass(const StringPiece& descriptor, const ClassLoader* class_loader);
Brian Carlstrom7e93b502011-08-04 14:16:22 -0700223
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700224 // Inserts a class into the class table. Returns true if the class
225 // was inserted.
Brian Carlstrom9cff8e12011-08-18 16:47:29 -0700226 bool InsertClass(const StringPiece& descriptor, Class* klass);
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700227
228 bool InitializeSuperClass(Class* klass);
229
230 void InitializeStaticFields(Class* klass);
231
232 bool ValidateSuperClassDescriptors(const Class* klass);
233
234 bool HasSameDescriptorClasses(const char* descriptor,
235 const Class* klass1,
236 const Class* klass2);
237
238 bool HasSameMethodDescriptorClasses(const Method* descriptor,
239 const Class* klass1,
240 const Class* klass2);
241
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700242 bool LinkClass(Class* klass);
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700243
244 bool LinkSuperClass(Class* klass);
245
Brian Carlstrom74eb46a2011-08-02 20:10:14 -0700246 bool LoadSuperAndInterfaces(Class* klass, const DexFile& dex_file);
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700247
248 bool LinkMethods(Class* klass);
249
250 bool LinkVirtualMethods(Class* klass);
251
252 bool LinkInterfaceMethods(Class* klass);
253
Jesse Wilson7833bd22011-08-09 18:31:44 -0400254 bool LinkStaticFields(Class* klass);
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700255 bool LinkInstanceFields(Class* klass);
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700256 bool LinkFields(Class *klass, bool instance);
257
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700258
Brian Carlstrom4873d462011-08-21 15:23:39 -0700259 void CreateReferenceInstanceOffsets(Class* klass);
260 void CreateReferenceStaticOffsets(Class* klass);
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700261 void CreateReferenceOffsets(Class *klass, bool instance,
262 uint32_t reference_offsets);
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700263
Brian Carlstrom16192862011-09-12 17:50:06 -0700264 // lock to protect ClassLinker state
265 mutable Mutex lock_;
266
Brian Carlstrom4a96b602011-07-26 16:40:23 -0700267 std::vector<const DexFile*> boot_class_path_;
Brian Carlstrom578bbdc2011-07-21 14:07:47 -0700268
Brian Carlstrom4a96b602011-07-26 16:40:23 -0700269 std::vector<const DexFile*> dex_files_;
Brian Carlstrom7e49dca2011-07-22 18:07:34 -0700270 std::vector<DexCache*> dex_caches_;
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700271
Brian Carlstrom9cff8e12011-08-18 16:47:29 -0700272 // multimap from a StringPiece hash code of a class descriptor to
273 // Class* instances. Results should be compared for a matching
274 // Class::descriptor_ and Class::class_loader_.
275 typedef std::tr1::unordered_multimap<size_t, Class*> Table;
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700276 Table classes_;
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700277
Brian Carlstroma663ea52011-08-19 23:33:41 -0700278 // indexes into class_roots_.
279 // needs to be kept in sync with class_roots_descriptors_.
Brian Carlstrom74eb46a2011-08-02 20:10:14 -0700280 enum ClassRoot {
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700281 kJavaLangClass,
282 kJavaLangObject,
Brian Carlstrom74eb46a2011-08-02 20:10:14 -0700283 kObjectArrayClass,
284 kJavaLangString,
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700285 kJavaLangReflectField,
286 kJavaLangReflectMethod,
Brian Carlstrom74eb46a2011-08-02 20:10:14 -0700287 kJavaLangClassLoader,
288 kDalvikSystemBaseDexClassLoader,
289 kDalvikSystemPathClassLoader,
Shih-wei Liao55df06b2011-08-26 14:39:27 -0700290 kJavaLangStackTraceElement,
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700291 kPrimitiveBoolean,
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700292 kPrimitiveByte,
Elliott Hughesd8ddfd52011-08-15 14:32:53 -0700293 kPrimitiveChar,
294 kPrimitiveDouble,
295 kPrimitiveFloat,
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700296 kPrimitiveInt,
297 kPrimitiveLong,
Elliott Hughesd8ddfd52011-08-15 14:32:53 -0700298 kPrimitiveShort,
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700299 kPrimitiveVoid,
Elliott Hughesd8ddfd52011-08-15 14:32:53 -0700300 kBooleanArrayClass,
301 kByteArrayClass,
302 kCharArrayClass,
303 kDoubleArrayClass,
304 kFloatArrayClass,
305 kIntArrayClass,
306 kLongArrayClass,
307 kShortArrayClass,
Shih-wei Liao55df06b2011-08-26 14:39:27 -0700308 kJavaLangStackTraceElementArrayClass,
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700309 kClassRootsMax,
310 };
311 ObjectArray<Class>* class_roots_;
Brian Carlstrom913af1b2011-07-23 21:41:13 -0700312
Brian Carlstrom74eb46a2011-08-02 20:10:14 -0700313 Class* GetClassRoot(ClassRoot class_root) {
Brian Carlstroma663ea52011-08-19 23:33:41 -0700314 DCHECK(class_roots_ != NULL);
Brian Carlstrom74eb46a2011-08-02 20:10:14 -0700315 Class* klass = class_roots_->Get(class_root);
316 DCHECK(klass != NULL);
317 return klass;
318 }
319
Brian Carlstroma663ea52011-08-19 23:33:41 -0700320 void SetClassRoot(ClassRoot class_root, Class* klass) {
321 DCHECK(!init_done_);
322
323 DCHECK(klass != NULL);
Ian Rogers0cfe1fb2011-08-26 03:29:44 -0700324 DCHECK(klass->GetClassLoader() == NULL);
325 DCHECK(klass->GetDescriptor() != NULL);
326 DCHECK(klass->GetDescriptor()->Equals(GetClassRootDescriptor(class_root)));
Brian Carlstroma663ea52011-08-19 23:33:41 -0700327
328 DCHECK(class_roots_ != NULL);
329 DCHECK(class_roots_->Get(class_root) == NULL);
330 class_roots_->Set(class_root, klass);
331 }
332
333 static const char* class_roots_descriptors_[kClassRootsMax];
334
335 const char* GetClassRootDescriptor(ClassRoot class_root) {
336 const char* descriptor = class_roots_descriptors_[class_root];
337 CHECK(descriptor != NULL);
338 return descriptor;
339 }
340
Brian Carlstrom4a96b602011-07-26 16:40:23 -0700341 ObjectArray<Class>* array_interfaces_;
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700342 ObjectArray<InterfaceEntry>* array_iftable_;
Carl Shapiro565f5072011-07-10 13:39:43 -0700343
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700344 bool init_done_;
345
Elliott Hughescf4c6c42011-09-01 15:16:42 -0700346 InternTable* intern_table_;
347
Brian Carlstromf734cf52011-08-17 16:28:14 -0700348 friend class CommonTest;
Brian Carlstrom75cb3b42011-07-28 02:13:36 -0700349 FRIEND_TEST(DexCacheTest, Open);
350 friend class ObjectTest;
351 FRIEND_TEST(ObjectTest, AllocObjectArray);
Shih-wei Liao1a18c8c2011-08-14 17:47:36 -0700352 FRIEND_TEST(ExceptionTest, FindExceptionHandler);
Carl Shapiro0e5d75d2011-07-06 18:28:37 -0700353 DISALLOW_COPY_AND_ASSIGN(ClassLinker);
354};
355
356} // namespace art
357
358#endif // ART_SRC_CLASS_LINKER_H_