blob: d24c4363fb25573f5f65d537fc05bafc6e32290b [file] [log] [blame]
Brian Carlstrom7e49dca2011-07-22 18:07:34 -07001// Copyright 2011 Google Inc. All Rights Reserved.
2
Brian Carlstrom9ea1cb12011-08-24 23:18:18 -07003#include "class_linker.h"
Brian Carlstrom7e49dca2011-07-22 18:07:34 -07004#include "dex_cache.h"
5#include "heap.h"
6#include "globals.h"
7#include "logging.h"
8#include "object.h"
9
10namespace art {
11
Brian Carlstroma663ea52011-08-19 23:33:41 -070012void DexCache::Init(String* location,
13 ObjectArray<String>* strings,
Brian Carlstrom1caa2c22011-08-28 13:02:33 -070014 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 Carlstrom83db7722011-08-26 17:32:56 -070019 CHECK(location != NULL);
20 CHECK(strings != NULL);
Brian Carlstrom1caa2c22011-08-28 13:02:33 -070021 CHECK(resolved_types != NULL);
22 CHECK(resolved_methods != NULL);
23 CHECK(resolved_fields != NULL);
Brian Carlstrom9cc262e2011-08-28 12:45:30 -070024 CHECK(code_and_direct_methods != NULL);
Brian Carlstrom1caa2c22011-08-28 13:02:33 -070025 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 Carlstrom7e49dca2011-07-22 18:07:34 -070033}
34
35} // namespace art