blob: a4538c9e9c0bc1dafe0aa902d670fafe501f5f7c [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 Carlstrom9ea1cb12011-08-24 23:18:18 -070014 ObjectArray<Class>* types,
Brian Carlstrom4a96b602011-07-26 16:40:23 -070015 ObjectArray<Method>* methods,
Brian Carlstrom83db7722011-08-26 17:32:56 -070016 ObjectArray<Field>* fields,
Brian Carlstrom9cc262e2011-08-28 12:45:30 -070017 CodeAndDirectMethods* code_and_direct_methods) {
Brian Carlstrom83db7722011-08-26 17:32:56 -070018 CHECK(location != NULL);
19 CHECK(strings != NULL);
20 CHECK(types != NULL);
21 CHECK(methods != NULL);
22 CHECK(fields != NULL);
Brian Carlstrom9cc262e2011-08-28 12:45:30 -070023 CHECK(code_and_direct_methods != NULL);
Brian Carlstrom83db7722011-08-26 17:32:56 -070024 Set(kLocation, location);
25 Set(kStrings, strings);
26 Set(kTypes, types);
27 Set(kMethods, methods);
28 Set(kFields, fields);
Brian Carlstrom9cc262e2011-08-28 12:45:30 -070029 Set(kCodeAndDirectMethods, code_and_direct_methods);
Brian Carlstrom7e49dca2011-07-22 18:07:34 -070030}
31
32} // namespace art