| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_TAGS_H_ | 5 #ifndef VM_TAGS_H_ |
| 6 #define VM_TAGS_H_ | 6 #define VM_TAGS_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 class Isolate; | 12 class Isolate; |
| 13 class JSONObject; | 13 class JSONObject; |
| 14 class RuntimeEntry; | 14 class RuntimeEntry; |
| 15 | 15 |
| 16 #define VM_TAG_LIST(V) \ | 16 #define VM_TAG_LIST(V) \ |
| 17 V(Idle) \ | 17 V(Idle) \ |
| 18 V(VM) /* Catch all */ \ | 18 V(VM) /* Catch all */ \ |
| 19 V(Compile) \ | 19 V(CompileOptimized) \ |
| 20 V(CompileUnoptimized) \ |
| 21 V(CompileTopLevel) \ |
| 22 V(CompileScanner) \ |
| 20 V(Script) \ | 23 V(Script) \ |
| 21 V(GCNewSpace) \ | 24 V(GCNewSpace) \ |
| 22 V(GCOldSpace) \ | 25 V(GCOldSpace) \ |
| 23 V(Runtime) \ | 26 V(Runtime) \ |
| 24 V(Native) \ | 27 V(Native) \ |
| 25 | 28 |
| 26 class VMTag : public AllStatic { | 29 class VMTag : public AllStatic { |
| 27 public: | 30 public: |
| 28 enum VMTagId { | 31 enum VMTagId { |
| 29 kInvalidTagId = 0, | 32 kInvalidTagId = 0, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 static bool IsUserTag(uword tag_id) { | 94 static bool IsUserTag(uword tag_id) { |
| 92 return (tag_id >= kUserTagIdOffset) && | 95 return (tag_id >= kUserTagIdOffset) && |
| 93 (tag_id < kUserTagIdOffset + kMaxUserTags); | 96 (tag_id < kUserTagIdOffset + kMaxUserTags); |
| 94 } | 97 } |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 | 100 |
| 98 } // namespace dart | 101 } // namespace dart |
| 99 | 102 |
| 100 #endif // VM_TAGS_H_ | 103 #endif // VM_TAGS_H_ |
| OLD | NEW |