blob: 3163506e72ee8a0541d9c19389090875aa1ce9c2 [file] [log] [blame]
Andreas Gampeb2d18fa2017-06-06 20:46:10 -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#ifndef ART_RUNTIME_ASM_SUPPORT_CHECK_H_
18#define ART_RUNTIME_ASM_SUPPORT_CHECK_H_
19
20#include "art_method.h"
21#include "base/bit_utils.h"
22#include "base/callee_save_type.h"
23#include "gc/accounting/card_table.h"
24#include "gc/allocator/rosalloc.h"
25#include "gc/heap.h"
26#include "jit/jit.h"
27#include "lock_word.h"
28#include "mirror/class.h"
29#include "mirror/dex_cache.h"
30#include "mirror/string.h"
Andreas Gampeb2d18fa2017-06-06 20:46:10 -070031#include "runtime.h"
32#include "stack.h"
33#include "thread.h"
Andreas Gampe8cf9cb32017-07-19 09:28:38 -070034#include "utils/dex_cache_arrays_layout.h"
Andreas Gampeb2d18fa2017-06-06 20:46:10 -070035
36#ifndef ADD_TEST_EQ
37#define ADD_TEST_EQ(x, y) CHECK_EQ(x, y);
38#endif
39
40#ifndef ASM_SUPPORT_CHECK_RETURN_TYPE
41#define ASM_SUPPORT_CHECK_RETURN_TYPE void
42#endif
43
44// Prepare for re-include of asm_support.h.
45#ifdef ART_RUNTIME_ASM_SUPPORT_H_
46#undef ART_RUNTIME_ASM_SUPPORT_H_
47#endif
48
49namespace art {
50
51static inline ASM_SUPPORT_CHECK_RETURN_TYPE CheckAsmSupportOffsetsAndSizes() {
52#ifdef ASM_SUPPORT_CHECK_HEADER
53 ASM_SUPPORT_CHECK_HEADER
54#endif
55
56#include "asm_support.h"
57
58#ifdef ASM_SUPPORT_CHECK_FOOTER
59 ASM_SUPPORT_CHECK_FOOTER
60#endif
61}
62
63} // namespace art
64
65#endif // ART_RUNTIME_ASM_SUPPORT_CHECK_H_