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

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
« no previous file with comments | « runtime/vm/stub_code_x64.cc ('k') | runtime/vm/tags.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/tags.h
diff --git a/runtime/vm/tags.h b/runtime/vm/tags.h
index de0468f7d5f3db80255a3a9c2bc06318b1d82b3d..5f4b7d94fe0571fcbd3a9df6cdab6b9b73e26920 100644
--- a/runtime/vm/tags.h
+++ b/runtime/vm/tags.h
@@ -11,6 +11,7 @@ namespace dart {
class Isolate;
class JSONObject;
+class RuntimeEntry;
#define VM_TAG_LIST(V) \
V(Idle) \
@@ -19,7 +20,8 @@ class JSONObject;
V(Script) \
V(GCNewSpace) \
V(GCOldSpace) \
- V(RuntimeNative) \
+ V(Runtime) \
+ V(Native) \
class VMTag : public AllStatic {
@@ -34,6 +36,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(RuntimeEntry* runtime_entry);
private:
struct TagEntry {
« no previous file with comments | « runtime/vm/stub_code_x64.cc ('k') | runtime/vm/tags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698