Chromium Code Reviews| 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 { |