Home | History | Annotate | Download | only in quick
      1 /*
      2  * Copyright (C) 2014 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_ENTRYPOINTS_QUICK_QUICK_ENTRYPOINTS_LIST_H_
     18 #define ART_RUNTIME_ENTRYPOINTS_QUICK_QUICK_ENTRYPOINTS_LIST_H_
     19 
     20 // All quick entrypoints. Format is name, return type, argument types.
     21 
     22 #define QUICK_ENTRYPOINT_LIST(V) \
     23   V(AllocArray, void*, uint32_t, int32_t, ArtMethod*) \
     24   V(AllocArrayResolved, void*, mirror::Class*, int32_t, ArtMethod*) \
     25   V(AllocArrayWithAccessCheck, void*, uint32_t, int32_t, ArtMethod*) \
     26   V(AllocObject, void*, uint32_t, ArtMethod*) \
     27   V(AllocObjectResolved, void*, mirror::Class*, ArtMethod*) \
     28   V(AllocObjectInitialized, void*, mirror::Class*, ArtMethod*) \
     29   V(AllocObjectWithAccessCheck, void*, uint32_t, ArtMethod*) \
     30   V(CheckAndAllocArray, void*, uint32_t, int32_t, ArtMethod*) \
     31   V(CheckAndAllocArrayWithAccessCheck, void*, uint32_t, int32_t, ArtMethod*) \
     32   V(AllocStringFromBytes, void*, void*, int32_t, int32_t, int32_t) \
     33   V(AllocStringFromChars, void*, int32_t, int32_t, void*) \
     34   V(AllocStringFromString, void*, void*) \
     35 \
     36   V(InstanceofNonTrivial, uint32_t, const mirror::Class*, const mirror::Class*) \
     37   V(CheckCast, void, const mirror::Class*, const mirror::Class*) \
     38 \
     39   V(InitializeStaticStorage, void*, uint32_t) \
     40   V(InitializeTypeAndVerifyAccess, void*, uint32_t) \
     41   V(InitializeType, void*, uint32_t) \
     42   V(ResolveString, void*, uint32_t) \
     43 \
     44   V(Set8Instance, int, uint32_t, void*, int8_t) \
     45   V(Set8Static, int, uint32_t, int8_t) \
     46   V(Set16Instance, int, uint32_t, void*, int16_t) \
     47   V(Set16Static, int, uint32_t, int16_t) \
     48   V(Set32Instance, int, uint32_t, void*, int32_t) \
     49   V(Set32Static, int, uint32_t, int32_t) \
     50   V(Set64Instance, int, uint32_t, void*, int64_t) \
     51   V(Set64Static, int, uint32_t, int64_t) \
     52   V(SetObjInstance, int, uint32_t, void*, void*) \
     53   V(SetObjStatic, int, uint32_t, void*) \
     54   V(GetByteInstance, int8_t, uint32_t, void*) \
     55   V(GetBooleanInstance, uint8_t, uint32_t, void*) \
     56   V(GetByteStatic, int8_t, uint32_t) \
     57   V(GetBooleanStatic, uint8_t, uint32_t) \
     58   V(GetShortInstance, int16_t, uint32_t, void*) \
     59   V(GetCharInstance, uint16_t, uint32_t, void*) \
     60   V(GetShortStatic, int16_t, uint32_t) \
     61   V(GetCharStatic, uint16_t, uint32_t) \
     62   V(Get32Instance, int32_t, uint32_t, void*) \
     63   V(Get32Static, int32_t, uint32_t) \
     64   V(Get64Instance, int64_t, uint32_t, void*) \
     65   V(Get64Static, int64_t, uint32_t) \
     66   V(GetObjInstance, void*, uint32_t, void*) \
     67   V(GetObjStatic, void*, uint32_t) \
     68 \
     69   V(AputObjectWithNullAndBoundCheck, void, mirror::Array*, int32_t, mirror::Object*) \
     70   V(AputObjectWithBoundCheck, void, mirror::Array*, int32_t, mirror::Object*) \
     71   V(AputObject, void, mirror::Array*, int32_t, mirror::Object*) \
     72   V(HandleFillArrayData, void, void*, void*) \
     73 \
     74   V(JniMethodStart, uint32_t, Thread*) \
     75   V(JniMethodStartSynchronized, uint32_t, jobject, Thread*) \
     76   V(JniMethodEnd, void, uint32_t, Thread*) \
     77   V(JniMethodEndSynchronized, void, uint32_t, jobject, Thread*) \
     78   V(JniMethodEndWithReference, mirror::Object*, jobject, uint32_t, Thread*) \
     79   V(JniMethodEndWithReferenceSynchronized, mirror::Object*, jobject, uint32_t, jobject, Thread*) \
     80   V(QuickGenericJniTrampoline, void, ArtMethod*) \
     81 \
     82   V(LockObject, void, mirror::Object*) \
     83   V(UnlockObject, void, mirror::Object*) \
     84 \
     85   V(CmpgDouble, int32_t, double, double) \
     86   V(CmpgFloat, int32_t, float, float) \
     87   V(CmplDouble, int32_t, double, double) \
     88   V(CmplFloat, int32_t, float, float) \
     89   V(Cos, double, double) \
     90   V(Sin, double, double) \
     91   V(Acos, double, double) \
     92   V(Asin, double, double) \
     93   V(Atan, double, double) \
     94   V(Atan2, double, double, double) \
     95   V(Cbrt, double, double) \
     96   V(Cosh, double, double) \
     97   V(Exp, double, double) \
     98   V(Expm1, double, double) \
     99   V(Hypot, double, double, double) \
    100   V(Log, double, double) \
    101   V(Log10, double, double) \
    102   V(NextAfter, double, double, double) \
    103   V(Sinh, double, double) \
    104   V(Tan, double, double) \
    105   V(Tanh, double, double) \
    106   V(Fmod, double, double, double) \
    107   V(L2d, double, int64_t) \
    108   V(Fmodf, float, float, float) \
    109   V(L2f, float, int64_t) \
    110   V(D2iz, int32_t, double) \
    111   V(F2iz, int32_t, float) \
    112   V(Idivmod, int32_t, int32_t, int32_t) \
    113   V(D2l, int64_t, double) \
    114   V(F2l, int64_t, float) \
    115   V(Ldiv, int64_t, int64_t, int64_t) \
    116   V(Lmod, int64_t, int64_t, int64_t) \
    117   V(Lmul, int64_t, int64_t, int64_t) \
    118   V(ShlLong, uint64_t, uint64_t, uint32_t) \
    119   V(ShrLong, uint64_t, uint64_t, uint32_t) \
    120   V(UshrLong, uint64_t, uint64_t, uint32_t) \
    121 \
    122   V(IndexOf, int32_t, void*, uint32_t, uint32_t) \
    123   V(StringCompareTo, int32_t, void*, void*) \
    124   V(Memcpy, void*, void*, const void*, size_t) \
    125 \
    126   V(QuickImtConflictTrampoline, void, ArtMethod*) \
    127   V(QuickResolutionTrampoline, void, ArtMethod*) \
    128   V(QuickToInterpreterBridge, void, ArtMethod*) \
    129   V(InvokeDirectTrampolineWithAccessCheck, void, uint32_t, void*) \
    130   V(InvokeInterfaceTrampolineWithAccessCheck, void, uint32_t, void*) \
    131   V(InvokeStaticTrampolineWithAccessCheck, void, uint32_t, void*) \
    132   V(InvokeSuperTrampolineWithAccessCheck, void, uint32_t, void*) \
    133   V(InvokeVirtualTrampolineWithAccessCheck, void, uint32_t, void*) \
    134 \
    135   V(TestSuspend, void, void) \
    136 \
    137   V(DeliverException, void, mirror::Object*) \
    138   V(ThrowArrayBounds, void, int32_t, int32_t) \
    139   V(ThrowDivZero, void, void) \
    140   V(ThrowNoSuchMethod, void, int32_t) \
    141   V(ThrowNullPointer, void, void) \
    142   V(ThrowStackOverflow, void, void*) \
    143   V(Deoptimize, void, void) \
    144 \
    145   V(A64Load, int64_t, volatile const int64_t *) \
    146   V(A64Store, void, volatile int64_t *, int64_t) \
    147 \
    148   V(NewEmptyString, void) \
    149   V(NewStringFromBytes_B, void) \
    150   V(NewStringFromBytes_BI, void) \
    151   V(NewStringFromBytes_BII, void) \
    152   V(NewStringFromBytes_BIII, void) \
    153   V(NewStringFromBytes_BIIString, void) \
    154   V(NewStringFromBytes_BString, void) \
    155   V(NewStringFromBytes_BIICharset, void) \
    156   V(NewStringFromBytes_BCharset, void) \
    157   V(NewStringFromChars_C, void) \
    158   V(NewStringFromChars_CII, void) \
    159   V(NewStringFromChars_IIC, void) \
    160   V(NewStringFromCodePoints, void) \
    161   V(NewStringFromString, void) \
    162   V(NewStringFromStringBuffer, void) \
    163   V(NewStringFromStringBuilder, void) \
    164 \
    165   V(ReadBarrierJni, void, mirror::CompressedReference<mirror::Object>*, Thread*) \
    166   V(ReadBarrierMark, mirror::Object*, mirror::Object*) \
    167   V(ReadBarrierSlow, mirror::Object*, mirror::Object*, mirror::Object*, uint32_t) \
    168   V(ReadBarrierForRootSlow, mirror::Object*, GcRoot<mirror::Object>*)
    169 
    170 #endif  // ART_RUNTIME_ENTRYPOINTS_QUICK_QUICK_ENTRYPOINTS_LIST_H_
    171 #undef ART_RUNTIME_ENTRYPOINTS_QUICK_QUICK_ENTRYPOINTS_LIST_H_   // #define is only for lint.
    172