Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 1 | // Copyright 2011 Google Inc. All Rights Reserved. |
| 2 | |
Brian Carlstrom | 9ea1cb1 | 2011-08-24 23:18:18 -0700 | [diff] [blame] | 3 | #include "class_linker.h" |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 4 | #include "dex_cache.h" |
| 5 | #include "heap.h" |
| 6 | #include "globals.h" |
| 7 | #include "logging.h" |
| 8 | #include "object.h" |
| 9 | |
| 10 | namespace art { |
| 11 | |
Brian Carlstrom | a663ea5 | 2011-08-19 23:33:41 -0700 | [diff] [blame] | 12 | void DexCache::Init(String* location, |
| 13 | ObjectArray<String>* strings, |
Brian Carlstrom | 1caa2c2 | 2011-08-28 13:02:33 -0700 | [diff] [blame] | 14 | ObjectArray<Class>* resolved_types, |
| 15 | ObjectArray<Method>* resolved_methods, |
| 16 | ObjectArray<Field>* resolved_fields, |
| 17 | CodeAndDirectMethods* code_and_direct_methods, |
| 18 | ObjectArray<StaticStorageBase>* initialized_static_storage) { |
Brian Carlstrom | 83db772 | 2011-08-26 17:32:56 -0700 | [diff] [blame] | 19 | CHECK(location != NULL); |
| 20 | CHECK(strings != NULL); |
Brian Carlstrom | 1caa2c2 | 2011-08-28 13:02:33 -0700 | [diff] [blame] | 21 | CHECK(resolved_types != NULL); |
| 22 | CHECK(resolved_methods != NULL); |
| 23 | CHECK(resolved_fields != NULL); |
Brian Carlstrom | 9cc262e | 2011-08-28 12:45:30 -0700 | [diff] [blame] | 24 | CHECK(code_and_direct_methods != NULL); |
Brian Carlstrom | 1caa2c2 | 2011-08-28 13:02:33 -0700 | [diff] [blame] | 25 | CHECK(initialized_static_storage != NULL); |
| 26 | Set(kLocation, location); |
| 27 | Set(kStrings, strings); |
| 28 | Set(kResolvedTypes, resolved_types); |
| 29 | Set(kResolvedMethods, resolved_methods); |
| 30 | Set(kResolvedFields, resolved_fields); |
| 31 | Set(kCodeAndDirectMethods, code_and_direct_methods); |
| 32 | Set(kInitializedStaticStorage, initialized_static_storage); |
Brian Carlstrom | 7e49dca | 2011-07-22 18:07:34 -0700 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | } // namespace art |