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

Side by Side Diff: runtime/vm/tags.h

Issue 1263573010: Use zone when allocating handles in FlowGraphCompiler assembling operations. Add profiling VM tags… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: sync Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/regexp_parser.cc ('k') | runtime/vm/tags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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) /* isolate is idle and is_runnable() */ \ 17 V(Idle) /* isolate is idle and is_runnable() */ \
18 V(LoadWait) /* isolate is idle and !is_runnable() */ \ 18 V(LoadWait) /* isolate is idle and !is_runnable() */ \
19 V(VM) /* Catch all */ \ 19 V(VM) /* Catch all */ \
20 V(CompileOptimized) \ 20 V(CompileOptimized) \
21 V(CompileUnoptimized) \ 21 V(CompileUnoptimized) \
22 V(CompileClass) \ 22 V(CompileClass) \
23 V(CompileTopLevel) \ 23 V(CompileTopLevel) \
24 V(CompileScanner) \ 24 V(CompileScanner) \
25 V(CompileParseFunction) \
26 V(CompileParseRegExp) \
27 V(CompileFlowGraphBuilder) \
25 V(Dart) \ 28 V(Dart) \
26 V(GCNewSpace) \ 29 V(GCNewSpace) \
27 V(GCOldSpace) \ 30 V(GCOldSpace) \
28 V(Embedder) \ 31 V(Embedder) \
29 V(Runtime) \ 32 V(Runtime) \
30 V(Native) \ 33 V(Native) \
31 34
32 class VMTag : public AllStatic { 35 class VMTag : public AllStatic {
33 public: 36 public:
34 enum VMTagId { 37 enum VMTagId {
(...skipping 23 matching lines...) Expand all
58 struct TagEntry { 61 struct TagEntry {
59 const char* name; 62 const char* name;
60 uword id; 63 uword id;
61 }; 64 };
62 static TagEntry entries_[]; 65 static TagEntry entries_[];
63 }; 66 };
64 67
65 68
66 class VMTagScope : StackResource { 69 class VMTagScope : StackResource {
67 public: 70 public:
68 VMTagScope(Isolate* isolate, uword tag); 71 VMTagScope(Isolate* isolate, uword tag, bool conditional_set = true);
69 ~VMTagScope(); 72 ~VMTagScope();
70 private: 73 private:
71 uword previous_tag_; 74 uword previous_tag_;
72 75
73 DISALLOW_ALLOCATION(); 76 DISALLOW_ALLOCATION();
74 DISALLOW_IMPLICIT_CONSTRUCTORS(VMTagScope); 77 DISALLOW_IMPLICIT_CONSTRUCTORS(VMTagScope);
75 }; 78 };
76 79
77 80
78 class VMTagCounters { 81 class VMTagCounters {
(...skipping 21 matching lines...) Expand all
100 static bool IsUserTag(uword tag_id) { 103 static bool IsUserTag(uword tag_id) {
101 return (tag_id >= kUserTagIdOffset) && 104 return (tag_id >= kUserTagIdOffset) &&
102 (tag_id < kUserTagIdOffset + kMaxUserTags); 105 (tag_id < kUserTagIdOffset + kMaxUserTags);
103 } 106 }
104 }; 107 };
105 108
106 109
107 } // namespace dart 110 } // namespace dart
108 111
109 #endif // VM_TAGS_H_ 112 #endif // VM_TAGS_H_
OLDNEW
« no previous file with comments | « runtime/vm/regexp_parser.cc ('k') | runtime/vm/tags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698