Index: runtime/lib/mirrors.h |
diff --git a/runtime/lib/mirrors.h b/runtime/lib/mirrors.h |
index 90fcdc61f5e681f75a01af3d63d21574b4a682d4..dc09109212e4c98ef8bb7fcfcc29c730edd6da2a 100644 |
--- a/runtime/lib/mirrors.h |
+++ b/runtime/lib/mirrors.h |
@@ -5,8 +5,30 @@ |
#ifndef LIB_MIRRORS_H_ |
#define LIB_MIRRORS_H_ |
+#include "vm/allocation.h" |
+ |
namespace dart { |
+class Mirrors : public AllStatic { |
+ public: |
+ #define MIRRORS_KIND_SHIFT_LIST(V) \ |
+ V(kAbstract) \ |
+ V(kGetter) \ |
+ V(kSetter) \ |
+ V(kConstructor) \ |
+ V(kConstCtor) \ |
+ V(kGenerativeCtor) \ |
+ V(kRedirectingCtor) \ |
+ V(kFactoryCtor) \ |
+ |
+ // These offsets much be kept in sync with those in mirrors_impl.dart. |
+ enum KindShifts { |
+ #define DEFINE_KIND_SHIFT_ENUM(name) name, |
+ MIRRORS_KIND_SHIFT_LIST(DEFINE_KIND_SHIFT_ENUM) |
+ #undef DEFINE_KIND_SHIFT_ENUM |
+ }; |
+}; |
+ |
} // namespace dart |
#endif // LIB_MIRRORS_H_ |