956 {
958
959 switch (kind) {
960#define TYPED_DATA_GET_INDEXED_CASES(clazz) \
961 case MethodRecognizer::k##clazz##ArrayGetIndexed: \
962 FALL_THROUGH; \
963 case MethodRecognizer::kExternal##clazz##ArrayGetIndexed: \
964 FALL_THROUGH; \
965 case MethodRecognizer::k##clazz##ArrayViewGetIndexed: \
966 FALL_THROUGH;
968#undef TYPED_DATA_GET_INDEXED_CASES
969 case MethodRecognizer::kObjectArrayGetIndexed:
970 case MethodRecognizer::kGrowableArrayGetIndexed:
971 case MethodRecognizer::kRecord_fieldAt:
972 case MethodRecognizer::kRecord_fieldNames:
973 case MethodRecognizer::kRecord_numFields:
974 case MethodRecognizer::kSuspendState_clone:
975 case MethodRecognizer::kSuspendState_resume:
976 case MethodRecognizer::kTypedList_GetInt8:
977 case MethodRecognizer::kTypedList_SetInt8:
978 case MethodRecognizer::kTypedList_GetUint8:
979 case MethodRecognizer::kTypedList_SetUint8:
980 case MethodRecognizer::kTypedList_GetInt16:
981 case MethodRecognizer::kTypedList_SetInt16:
982 case MethodRecognizer::kTypedList_GetUint16:
983 case MethodRecognizer::kTypedList_SetUint16:
984 case MethodRecognizer::kTypedList_GetInt32:
985 case MethodRecognizer::kTypedList_SetInt32:
986 case MethodRecognizer::kTypedList_GetUint32:
987 case MethodRecognizer::kTypedList_SetUint32:
988 case MethodRecognizer::kTypedList_GetInt64:
989 case MethodRecognizer::kTypedList_SetInt64:
990 case MethodRecognizer::kTypedList_GetUint64:
991 case MethodRecognizer::kTypedList_SetUint64:
992 case MethodRecognizer::kTypedList_GetFloat32:
993 case MethodRecognizer::kTypedList_SetFloat32:
994 case MethodRecognizer::kTypedList_GetFloat64:
995 case MethodRecognizer::kTypedList_SetFloat64:
996 case MethodRecognizer::kTypedList_GetInt32x4:
997 case MethodRecognizer::kTypedList_SetInt32x4:
998 case MethodRecognizer::kTypedList_GetFloat32x4:
999 case MethodRecognizer::kTypedList_SetFloat32x4:
1000 case MethodRecognizer::kTypedList_GetFloat64x2:
1001 case MethodRecognizer::kTypedList_SetFloat64x2:
1002 case MethodRecognizer::kTypedData_memMove1:
1003 case MethodRecognizer::kTypedData_memMove2:
1004 case MethodRecognizer::kTypedData_memMove4:
1005 case MethodRecognizer::kTypedData_memMove8:
1006 case MethodRecognizer::kTypedData_memMove16:
1007 case MethodRecognizer::kTypedData_ByteDataView_factory:
1008 case MethodRecognizer::kTypedData_Int8ArrayView_factory:
1009 case MethodRecognizer::kTypedData_Uint8ArrayView_factory:
1010 case MethodRecognizer::kTypedData_Uint8ClampedArrayView_factory:
1011 case MethodRecognizer::kTypedData_Int16ArrayView_factory:
1012 case MethodRecognizer::kTypedData_Uint16ArrayView_factory:
1013 case MethodRecognizer::kTypedData_Int32ArrayView_factory:
1014 case MethodRecognizer::kTypedData_Uint32ArrayView_factory:
1015 case MethodRecognizer::kTypedData_Int64ArrayView_factory:
1016 case MethodRecognizer::kTypedData_Uint64ArrayView_factory:
1017 case MethodRecognizer::kTypedData_Float32ArrayView_factory:
1018 case MethodRecognizer::kTypedData_Float64ArrayView_factory:
1019 case MethodRecognizer::kTypedData_Float32x4ArrayView_factory:
1020 case MethodRecognizer::kTypedData_Int32x4ArrayView_factory:
1021 case MethodRecognizer::kTypedData_Float64x2ArrayView_factory:
1022 case MethodRecognizer::kTypedData_UnmodifiableByteDataView_factory:
1023 case MethodRecognizer::kTypedData_UnmodifiableInt8ArrayView_factory:
1024 case MethodRecognizer::kTypedData_UnmodifiableUint8ArrayView_factory:
1025 case MethodRecognizer::kTypedData_UnmodifiableUint8ClampedArrayView_factory:
1026 case MethodRecognizer::kTypedData_UnmodifiableInt16ArrayView_factory:
1027 case MethodRecognizer::kTypedData_UnmodifiableUint16ArrayView_factory:
1028 case MethodRecognizer::kTypedData_UnmodifiableInt32ArrayView_factory:
1029 case MethodRecognizer::kTypedData_UnmodifiableUint32ArrayView_factory:
1030 case MethodRecognizer::kTypedData_UnmodifiableInt64ArrayView_factory:
1031 case MethodRecognizer::kTypedData_UnmodifiableUint64ArrayView_factory:
1032 case MethodRecognizer::kTypedData_UnmodifiableFloat32ArrayView_factory:
1033 case MethodRecognizer::kTypedData_UnmodifiableFloat64ArrayView_factory:
1034 case MethodRecognizer::kTypedData_UnmodifiableFloat32x4ArrayView_factory:
1035 case MethodRecognizer::kTypedData_UnmodifiableInt32x4ArrayView_factory:
1036 case MethodRecognizer::kTypedData_UnmodifiableFloat64x2ArrayView_factory:
1037 case MethodRecognizer::kTypedData_Int8Array_factory:
1038 case MethodRecognizer::kTypedData_Uint8Array_factory:
1039 case MethodRecognizer::kTypedData_Uint8ClampedArray_factory:
1040 case MethodRecognizer::kTypedData_Int16Array_factory:
1041 case MethodRecognizer::kTypedData_Uint16Array_factory:
1042 case MethodRecognizer::kTypedData_Int32Array_factory:
1043 case MethodRecognizer::kTypedData_Uint32Array_factory:
1044 case MethodRecognizer::kTypedData_Int64Array_factory:
1045 case MethodRecognizer::kTypedData_Uint64Array_factory:
1046 case MethodRecognizer::kTypedData_Float32Array_factory:
1047 case MethodRecognizer::kTypedData_Float64Array_factory:
1048 case MethodRecognizer::kTypedData_Float32x4Array_factory:
1049 case MethodRecognizer::kTypedData_Int32x4Array_factory:
1050 case MethodRecognizer::kTypedData_Float64x2Array_factory:
1051 case MethodRecognizer::kMemCopy:
1052 case MethodRecognizer::kFfiLoadInt8:
1053 case MethodRecognizer::kFfiLoadInt16:
1054 case MethodRecognizer::kFfiLoadInt32:
1055 case MethodRecognizer::kFfiLoadInt64:
1056 case MethodRecognizer::kFfiLoadUint8:
1057 case MethodRecognizer::kFfiLoadUint16:
1058 case MethodRecognizer::kFfiLoadUint32:
1059 case MethodRecognizer::kFfiLoadUint64:
1060 case MethodRecognizer::kFfiLoadFloat:
1061 case MethodRecognizer::kFfiLoadFloatUnaligned:
1062 case MethodRecognizer::kFfiLoadDouble:
1063 case MethodRecognizer::kFfiLoadDoubleUnaligned:
1064 case MethodRecognizer::kFfiLoadPointer:
1065 case MethodRecognizer::kFfiNativeCallbackFunction:
1066 case MethodRecognizer::kFfiNativeAsyncCallbackFunction:
1067 case MethodRecognizer::kFfiNativeIsolateLocalCallbackFunction:
1068 case MethodRecognizer::kFfiStoreInt8:
1069 case MethodRecognizer::kFfiStoreInt16:
1070 case MethodRecognizer::kFfiStoreInt32:
1071 case MethodRecognizer::kFfiStoreInt64:
1072 case MethodRecognizer::kFfiStoreUint8:
1073 case MethodRecognizer::kFfiStoreUint16:
1074 case MethodRecognizer::kFfiStoreUint32:
1075 case MethodRecognizer::kFfiStoreUint64:
1076 case MethodRecognizer::kFfiStoreFloat:
1077 case MethodRecognizer::kFfiStoreFloatUnaligned:
1078 case MethodRecognizer::kFfiStoreDouble:
1079 case MethodRecognizer::kFfiStoreDoubleUnaligned:
1080 case MethodRecognizer::kFfiStorePointer:
1081 case MethodRecognizer::kFfiFromAddress:
1082 case MethodRecognizer::kFfiGetAddress:
1083 case MethodRecognizer::kFfiAsExternalTypedDataInt8:
1084 case MethodRecognizer::kFfiAsExternalTypedDataInt16:
1085 case MethodRecognizer::kFfiAsExternalTypedDataInt32:
1086 case MethodRecognizer::kFfiAsExternalTypedDataInt64:
1087 case MethodRecognizer::kFfiAsExternalTypedDataUint8:
1088 case MethodRecognizer::kFfiAsExternalTypedDataUint16:
1089 case MethodRecognizer::kFfiAsExternalTypedDataUint32:
1090 case MethodRecognizer::kFfiAsExternalTypedDataUint64:
1091 case MethodRecognizer::kFfiAsExternalTypedDataFloat:
1092 case MethodRecognizer::kFfiAsExternalTypedDataDouble:
1093 case MethodRecognizer::kGetNativeField:
1094 case MethodRecognizer::kFinalizerBase_exchangeEntriesCollectedWithNull:
1095 case MethodRecognizer::kFinalizerBase_getIsolateFinalizers:
1096 case MethodRecognizer::kFinalizerBase_setIsolate:
1097 case MethodRecognizer::kFinalizerBase_setIsolateFinalizers:
1098 case MethodRecognizer::kFinalizerEntry_allocate:
1099 case MethodRecognizer::kFinalizerEntry_getExternalSize:
1100 case MethodRecognizer::kCheckNotDeeplyImmutable:
1101 case MethodRecognizer::kObjectEquals:
1102 case MethodRecognizer::kStringBaseCodeUnitAt:
1103 case MethodRecognizer::kStringBaseLength:
1104 case MethodRecognizer::kStringBaseIsEmpty:
1105 case MethodRecognizer::kClassIDgetID:
1106 case MethodRecognizer::kGrowableArrayAllocateWithData:
1107 case MethodRecognizer::kGrowableArrayCapacity:
1108 case MethodRecognizer::kObjectArrayAllocate:
1109 case MethodRecognizer::kCopyRangeFromUint8ListToOneByteString:
1110 case MethodRecognizer::kImmutableLinkedHashBase_setIndexStoreRelease:
1111 case MethodRecognizer::kFfiAbi:
1112 case MethodRecognizer::kUtf8DecoderScan:
1113 case MethodRecognizer::kHas63BitSmis:
1114 case MethodRecognizer::kExtensionStreamHasListener:
1115 case MethodRecognizer::kSmi_hashCode:
1116 case MethodRecognizer::kMint_hashCode:
1117 case MethodRecognizer::kDouble_hashCode:
1118#define CASE(method, slot) case MethodRecognizer::k##method:
1122#undef CASE
1123 return true;
1124 case MethodRecognizer::kDoubleToInteger:
1125 case MethodRecognizer::kDoubleMod:
1126 case MethodRecognizer::kDoubleRem:
1127 case MethodRecognizer::kDoubleRoundToDouble:
1128 case MethodRecognizer::kDoubleTruncateToDouble:
1129 case MethodRecognizer::kDoubleFloorToDouble:
1130 case MethodRecognizer::kDoubleCeilToDouble:
1131 case MethodRecognizer::kMathDoublePow:
1132 case MethodRecognizer::kMathSin:
1133 case MethodRecognizer::kMathCos:
1134 case MethodRecognizer::kMathTan:
1135 case MethodRecognizer::kMathAsin:
1136 case MethodRecognizer::kMathAcos:
1137 case MethodRecognizer::kMathAtan:
1138 case MethodRecognizer::kMathAtan2:
1139 case MethodRecognizer::kMathExp:
1140 case MethodRecognizer::kMathLog:
1141 case MethodRecognizer::kMathSqrt:
1142 return true;
1143 default:
1144 return false;
1145 }
1146}
#define DART_CLASS_LIST_TYPED_DATA(V)
#define LOAD_NATIVE_FIELD(V)
#define CASE(method, slot)
#define STORE_NATIVE_FIELD_NO_BARRIER(V)
#define STORE_NATIVE_FIELD(V)
#define TYPED_DATA_GET_INDEXED_CASES(clazz)