blob: d57b72e789e2b1e568f6f675b31f6a6f7098501f [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
17/*
18 * Common defines for all Dalvik code.
19 */
20#ifndef DALVIK_COMMON_H_
21#define DALVIK_COMMON_H_
22
Elliott Hughes54e7df12011-09-16 11:47:04 -070023#include <assert.h>
buzbee67bf8852011-08-17 17:51:35 -070024#include <stdbool.h>
25#include <stdint.h>
26#include <stdio.h>
Elliott Hughes54e7df12011-09-16 11:47:04 -070027
buzbeec143c552011-08-20 17:38:58 -070028#include "class_linker.h"
Brian Carlstrom16192862011-09-12 17:50:06 -070029#include "compiler.h"
buzbeec143c552011-08-20 17:38:58 -070030#include "dex_cache.h"
Elliott Hughes54e7df12011-09-16 11:47:04 -070031#include "logging.h"
32#include "monitor.h"
33#include "object.h"
34#include "thread.h"
buzbeec143c552011-08-20 17:38:58 -070035#include "utils.h"
buzbee67bf8852011-08-17 17:51:35 -070036
37// From Common.h
buzbee67bf8852011-08-17 17:51:35 -070038typedef uint8_t u1;
39typedef uint16_t u2;
40typedef uint32_t u4;
41typedef uint64_t u8;
42typedef int8_t s1;
43typedef int16_t s2;
44typedef int32_t s4;
45typedef int64_t s8;
46typedef unsigned long long u8;
47
buzbeec143c552011-08-20 17:38:58 -070048//Skip old DexFile.h
49#define LIBDEX_DEXFILE_H_
50//Skip old vm/Common.h
51#define DALVIK_COMMON_H_
52//Make inlines inline
53#define DEX_INLINE inline
54#include "DexOpcodes.h"
55#include "InstrUtils.h"
buzbee67bf8852011-08-17 17:51:35 -070056
buzbeec143c552011-08-20 17:38:58 -070057typedef art::Array Array;
Brian Carlstrom16192862011-09-12 17:50:06 -070058typedef art::Class Class;
59typedef art::Compiler Compiler;
60typedef art::Field Field;
61typedef art::JValue JValue;
buzbeec143c552011-08-20 17:38:58 -070062typedef art::Method Method;
63typedef art::Object Object;
buzbeec143c552011-08-20 17:38:58 -070064typedef art::String String;
Brian Carlstrom16192862011-09-12 17:50:06 -070065typedef art::Thread Thread;
buzbee67bf8852011-08-17 17:51:35 -070066
67// From alloc/CardTable.h
68#define GC_CARD_SHIFT 7
69
buzbee67bf8852011-08-17 17:51:35 -070070#include "Compiler.h"
71
72#endif