| Index: runtime/vm/method_recognizer.h
|
| diff --git a/runtime/vm/method_recognizer.h b/runtime/vm/method_recognizer.h
|
| index 02e9dae948ba076210df79eef34b8d09098bef45..469bb69aab460671d627a344604f8ef98eaef693 100644
|
| --- a/runtime/vm/method_recognizer.h
|
| +++ b/runtime/vm/method_recognizer.h
|
| @@ -509,6 +509,33 @@ RECOGNIZED_LIST(DEFINE_ENUM_LIST)
|
| #endif // defined(DART_NO_SNAPSHOT).
|
|
|
|
|
| +// List of recognized list factories:
|
| +// (factory-name-symbol, result-cid, fingerprint).
|
| +#define RECOGNIZED_LIST_FACTORY_LIST(V) \
|
| + V(_ListFactory, kArrayCid, 850375012) \
|
| + V(_GrowableListWithData, kGrowableObjectArrayCid, 2094352700) \
|
| + V(_GrowableListFactory, kGrowableObjectArrayCid, 1518848600) \
|
| + V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 439914696) \
|
| + V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 1442599030) \
|
| + V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 1320015159) \
|
| + V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 2132591678) \
|
| + V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 1704816032) \
|
| + V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 1115045147) \
|
| + V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 1385852190) \
|
| + V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 1193438555) \
|
| + V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 410766246) \
|
| + V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1430631000) \
|
| + V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1194249144) \
|
| + V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 158753569) \
|
| +
|
| +
|
| +// Class that recognizes factories and returns corresponding result cid.
|
| +class FactoryRecognizer : public AllStatic {
|
| + public:
|
| + // Return kDynamicCid if factory is not recognized.
|
| + static intptr_t ResultCid(const Function& factory);
|
| +};
|
| +
|
| } // namespace dart
|
|
|
| #endif // VM_METHOD_RECOGNIZER_H_
|
|
|