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

Unified Diff: runtime/vm/tags.h

Issue 227433004: Add runtime and native entry tags (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: runtime/vm/tags.h
diff --git a/runtime/vm/tags.h b/runtime/vm/tags.h
index de0468f7d5f3db80255a3a9c2bc06318b1d82b3d..8271a0068ea2d4ce5b7281c6fb2f103d2b4c6536 100644
--- a/runtime/vm/tags.h
+++ b/runtime/vm/tags.h
@@ -6,11 +6,14 @@
#define VM_TAGS_H_
#include "vm/allocation.h"
+class RuntimeEntry;
siva 2014/04/10 17:58:22 Repeated again below, I guess it is not needed her
Cutch 2014/04/10 20:17:32 Done.
namespace dart {
class Isolate;
class JSONObject;
+class RuntimeEntry;
+
#define VM_TAG_LIST(V) \
V(Idle) \
@@ -19,7 +22,8 @@ class JSONObject;
V(Script) \
V(GCNewSpace) \
V(GCOldSpace) \
- V(RuntimeNative) \
+ V(Runtime) \
+ V(Native) \
class VMTag : public AllStatic {
@@ -34,6 +38,12 @@ class VMTag : public AllStatic {
};
static const char* TagName(uword id);
+ static bool IsNativeEntryTag(uword id);
+
+ static bool IsRuntimeEntryTag(uword id);
+ static const char* RuntimeEntryTagName(uword id);
+
+ static void RegisterRuntimeEntry(const RuntimeEntry* runtime_entry);
private:
struct TagEntry {

Powered by Google App Engine
This is Rietveld 408576698