Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Unified Diff: runtime/vm/method_recognizer.h

Issue 1411873005: Start remove dependencies on compiler-related files. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: removed some unnecessry includes Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698