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

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..66a37c268c6c042610bb85c09f3ddf9a1e6bdc66 100644
--- a/runtime/vm/tags.h
+++ b/runtime/vm/tags.h
@@ -12,6 +12,41 @@ namespace dart {
class Isolate;
class JSONObject;
+// The list below must be manually kept in sync with the VM sources.
+#define RUNTIME_ENTRY_TAG_LIST(V) \
+ V(AllocateArray) \
+ V(AllocateContext) \
+ V(AllocateObject) \
+ V(BreakpointRuntimeHandler) \
+ V(SingleStepHandler) \
+ V(CloneContext) \
+ V(FixCallersTarget) \
+ V(InlineCacheMissHandlerOneArg) \
+ V(InlineCacheMissHandlerTwoArgs) \
+ V(InlineCacheMissHandlerThreeArgs) \
+ V(StaticCallMissHandlerTwoArgs) \
+ V(Instanceof) \
+ V(TypeCheck) \
+ V(BadTypeError) \
+ V(NonBoolTypeError) \
+ V(InstantiateType) \
+ V(InstantiateTypeArguments) \
+ V(InvokeNoSuchMethodFunction) \
+ V(MegamorphicCacheMissHandler) \
+ V(OptimizeInvokedFunction) \
+ V(TraceICCall) \
+ V(PatchStaticCall) \
+ V(InvokeNonClosure) \
+ V(ReThrow) \
+ V(StackOverflow) \
+ V(Throw) \
+ V(TraceFunctionEntry) \
+ V(TraceFunctionExit) \
+ V(DeoptimizeMaterialize) \
+ V(UpdateFieldCid) \
+ V(CompileFunction) \
siva 2014/04/08 16:27:54 Can this be made part of DEFINE_RUNTIME_ENTRY i.e
Cutch 2014/04/09 17:40:59 DEFINE_RUNTIME_ENTRY cannot execute code so I'm no
siva 2014/04/09 23:28:11 Look at UNIT_TEST_CASE in unit_test.h it creates a
Cutch 2014/04/10 15:30:27 Done.
+
+
#define VM_TAG_LIST(V) \
V(Idle) \
V(VM) /* Catch all */ \
@@ -19,7 +54,8 @@ class JSONObject;
V(Script) \
V(GCNewSpace) \
V(GCOldSpace) \
- V(RuntimeNative) \
+ V(Runtime) \
+ V(Native) \
class VMTag : public AllStatic {
@@ -34,6 +70,10 @@ 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);
private:
struct TagEntry {
« runtime/vm/profiler.cc ('K') | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/tags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698