blob: 9d1463e958130ae66e512d06c7489d799399382a [file] [log] [blame]
Logan Chien4dd96f52012-02-29 01:26:58 +08001/*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ART_SRC_METHOD_UNIT_H_
18#define ART_SRC_METHOD_UNIT_H_
19
20#include <stdint.h>
21
22namespace art {
23
24class ClassLoader;
25class ClassLinker;
26class DexFile;
27class DexCache;
28
29class OatCompilationUnit {
30 public:
31 OatCompilationUnit(ClassLoader const* class_loader, ClassLinker* class_linker,
32 DexFile const& dex_file, DexCache& dex_cache,
33 DexFile::CodeItem const* code_item,
34 uint32_t method_idx, uint32_t access_flags)
35 : class_loader_(class_loader), class_linker_(class_linker),
36 dex_file_(&dex_file), dex_cache_(&dex_cache), code_item_(code_item),
37 method_idx_(method_idx), access_flags_(access_flags) {
38 }
39
40 public:
41 ClassLoader const* class_loader_;
42 ClassLinker* class_linker_;
43
44 DexFile const* dex_file_;
45 DexCache* dex_cache_;
46
47 DexFile::CodeItem const* code_item_;
48 uint32_t method_idx_;
49 uint32_t access_flags_;
50};
51
52} // namespace art
53
54#endif // ART_SRC_METHOD_UNIT_H_