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