| 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 { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 kInlineStartCodeTagId, | 55 kInlineStartCodeTagId, |
| 56 kInlineEndCodeTagId, | 56 kInlineEndCodeTagId, |
| 57 kLastTagId, | 57 kLastTagId, |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 static bool IsVMTag(uword id) { | 60 static bool IsVMTag(uword id) { |
| 61 return (id != kInvalidTagId) && (id < kNumVMTags); | 61 return (id != kInvalidTagId) && (id < kNumVMTags); |
| 62 } | 62 } |
| 63 static const char* TagName(uword id); | 63 static const char* TagName(uword id); |
| 64 static bool IsNativeEntryTag(uword id); | 64 static bool IsNativeEntryTag(uword id); |
| 65 | 65 static bool IsDartTag(uword id); |
| 66 static bool IsExitFrameTag(uword id); |
| 66 static bool IsRuntimeEntryTag(uword id); | 67 static bool IsRuntimeEntryTag(uword id); |
| 67 static const char* RuntimeEntryTagName(uword id); | 68 static const char* RuntimeEntryTagName(uword id); |
| 68 | 69 |
| 69 static void RegisterRuntimeEntry(RuntimeEntry* runtime_entry); | 70 static void RegisterRuntimeEntry(RuntimeEntry* runtime_entry); |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 struct TagEntry { | 73 struct TagEntry { |
| 73 const char* name; | 74 const char* name; |
| 74 uword id; | 75 uword id; |
| 75 }; | 76 }; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 static bool IsUserTag(uword tag_id) { | 115 static bool IsUserTag(uword tag_id) { |
| 115 return (tag_id >= kUserTagIdOffset) && | 116 return (tag_id >= kUserTagIdOffset) && |
| 116 (tag_id < kUserTagIdOffset + kMaxUserTags); | 117 (tag_id < kUserTagIdOffset + kMaxUserTags); |
| 117 } | 118 } |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 | 121 |
| 121 } // namespace dart | 122 } // namespace dart |
| 122 | 123 |
| 123 #endif // VM_TAGS_H_ | 124 #endif // VM_TAGS_H_ |
| OLD | NEW |