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

Unified Diff: runtime/lib/mirrors.h

Issue 1080393006: Mirrors memory usage tweaks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months 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 | « no previous file | runtime/lib/mirrors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | runtime/lib/mirrors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698