blob: 2c9e1f85262fc778f234c42d4e216d222bd752f4 [file] [log] [blame]
buzbee67bf8852011-08-17 17:51:35 -07001/*
2 * Copyright (C) 2011 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
Brian Carlstromfc0e3212013-07-17 14:40:12 -070017#ifndef ART_COMPILER_DEX_FRONTEND_H_
18#define ART_COMPILER_DEX_FRONTEND_H_
buzbee67bf8852011-08-17 17:51:35 -070019
Ian Rogers0571d352011-11-03 19:51:38 -070020#include "dex_file.h"
Vladimir Marko05bded22014-01-21 11:38:17 +000021#include "invoke_type.h"
Dragos Sbirlea7467ee02013-06-21 09:20:34 -070022
Elliott Hughes11d1b0c2012-01-23 16:57:47 -080023namespace art {
Andreas Gampe53c913b2014-08-12 23:19:23 -070024
25class CompiledMethod;
26class Compiler;
27class CompilerDriver;
Elliott Hughes11d1b0c2012-01-23 16:57:47 -080028
Andreas Gampe53c913b2014-08-12 23:19:23 -070029CompiledMethod* CompileOneMethod(CompilerDriver* driver,
30 const Compiler* compiler,
31 const DexFile::CodeItem* code_item,
32 uint32_t access_flags,
33 InvokeType invoke_type,
34 uint16_t class_def_idx,
35 uint32_t method_idx,
36 jobject class_loader,
37 const DexFile& dex_file,
38 void* compilation_unit);
buzbee67bf8852011-08-17 17:51:35 -070039
Elliott Hughes11d1b0c2012-01-23 16:57:47 -080040} // namespace art
41
Brian Carlstromfc0e3212013-07-17 14:40:12 -070042#endif // ART_COMPILER_DEX_FRONTEND_H_