Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 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_ARCH_MIPS_ENTRYPOINTS_DIRECT_MIPS_H_ |
| 18 | #define ART_RUNTIME_ARCH_MIPS_ENTRYPOINTS_DIRECT_MIPS_H_ |
| 19 | |
| 20 | #include "entrypoints/quick/quick_entrypoints_enum.h" |
| 21 | |
| 22 | namespace art { |
| 23 | |
| 24 | /* Returns true if entrypoint contains direct reference to |
| 25 | native implementation. The list is required as direct |
| 26 | entrypoints need additional handling during invocation.*/ |
| 27 | static constexpr bool IsDirectEntrypoint(QuickEntrypointEnum entrypoint) { |
| 28 | return |
| 29 | entrypoint == kQuickInstanceofNonTrivial || |
| 30 | entrypoint == kQuickA64Load || |
| 31 | entrypoint == kQuickA64Store || |
| 32 | entrypoint == kQuickFmod || |
| 33 | entrypoint == kQuickFmodf || |
| 34 | entrypoint == kQuickMemcpy || |
| 35 | entrypoint == kQuickL2d || |
| 36 | entrypoint == kQuickL2f || |
| 37 | entrypoint == kQuickD2iz || |
| 38 | entrypoint == kQuickF2iz || |
| 39 | entrypoint == kQuickD2l || |
| 40 | entrypoint == kQuickF2l || |
| 41 | entrypoint == kQuickLdiv || |
| 42 | entrypoint == kQuickLmod || |
| 43 | entrypoint == kQuickLmul || |
| 44 | entrypoint == kQuickCmpgDouble || |
| 45 | entrypoint == kQuickCmpgFloat || |
| 46 | entrypoint == kQuickCmplDouble || |
Man Cao | 1aee900 | 2015-07-14 22:31:42 -0700 | [diff] [blame] | 47 | entrypoint == kQuickCmplFloat || |
Roland Levillain | 0e5ff79 | 2016-07-06 13:45:52 +0100 | [diff] [blame] | 48 | entrypoint == kQuickReadBarrierJni || |
Roland Levillain | 1eab4a8 | 2015-11-16 15:59:08 +0000 | [diff] [blame] | 49 | entrypoint == kQuickReadBarrierSlow || |
Chris Larsen | b9005fa | 2017-03-24 12:11:54 -0700 | [diff] [blame] | 50 | entrypoint == kQuickReadBarrierForRootSlow || |
| 51 | entrypoint == kQuickCos || |
| 52 | entrypoint == kQuickSin || |
| 53 | entrypoint == kQuickAcos || |
| 54 | entrypoint == kQuickAsin || |
| 55 | entrypoint == kQuickAtan || |
| 56 | entrypoint == kQuickAtan2 || |
Goran Jakovljevic | 0dec337 | 2018-01-23 12:58:26 +0100 | [diff] [blame] | 57 | entrypoint == kQuickPow || |
Chris Larsen | b9005fa | 2017-03-24 12:11:54 -0700 | [diff] [blame] | 58 | entrypoint == kQuickCbrt || |
| 59 | entrypoint == kQuickCosh || |
| 60 | entrypoint == kQuickExp || |
| 61 | entrypoint == kQuickExpm1 || |
| 62 | entrypoint == kQuickHypot || |
| 63 | entrypoint == kQuickLog || |
| 64 | entrypoint == kQuickLog10 || |
| 65 | entrypoint == kQuickNextAfter || |
| 66 | entrypoint == kQuickSinh || |
| 67 | entrypoint == kQuickTan || |
| 68 | entrypoint == kQuickTanh; |
Nikola Veljkovic | 2d873b6 | 2015-02-20 17:21:15 +0100 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | } // namespace art |
| 72 | |
| 73 | #endif // ART_RUNTIME_ARCH_MIPS_ENTRYPOINTS_DIRECT_MIPS_H_ |