blob: d85eae8e1ea2cecf08e4e3be9a61d116ca3cdb0f [file] [log] [blame]
Jeff Hao0aba0ba2013-06-03 14:49:28 -07001/*
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
Brian Carlstromfc0e3212013-07-17 14:40:12 -070017#ifndef ART_COMPILER_STUBS_STUBS_H_
18#define ART_COMPILER_STUBS_STUBS_H_
Jeff Hao0aba0ba2013-06-03 14:49:28 -070019
20#include "runtime.h"
21
22namespace art {
23
24namespace arm {
25const std::vector<uint8_t>* CreatePortableResolutionTrampoline()
26 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
27const std::vector<uint8_t>* CreateQuickResolutionTrampoline()
28 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
29const std::vector<uint8_t>* CreateInterpreterToInterpreterEntry()
30 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
31const std::vector<uint8_t>* CreateInterpreterToQuickEntry()
32 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
33}
34
35namespace mips {
36const std::vector<uint8_t>* CreatePortableResolutionTrampoline()
37 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
38const std::vector<uint8_t>* CreateQuickResolutionTrampoline()
39 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
40const std::vector<uint8_t>* CreateInterpreterToInterpreterEntry()
41 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
42const std::vector<uint8_t>* CreateInterpreterToQuickEntry()
43 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
44}
45
46namespace x86 {
47const std::vector<uint8_t>* CreatePortableResolutionTrampoline()
48 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
49const std::vector<uint8_t>* CreateQuickResolutionTrampoline()
50 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
51const std::vector<uint8_t>* CreateInterpreterToInterpreterEntry()
52 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
53const std::vector<uint8_t>* CreateInterpreterToQuickEntry()
54 SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
55}
56
57} // namespace art
58
Brian Carlstromfc0e3212013-07-17 14:40:12 -070059#endif // ART_COMPILER_STUBS_STUBS_H_