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

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

Issue 1711163002: Remove more things (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_CODE_OBSERVERS_H_ 5 #ifndef VM_CODE_OBSERVERS_H_
6 #define VM_CODE_OBSERVERS_H_ 6 #define VM_CODE_OBSERVERS_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 class Mutex; 13 class Mutex;
siva 2016/02/18 23:34:03 This could move under #ifndef PRODUCT too?
Cutch 2016/02/22 16:05:44 Done.
14 14
15 #ifndef PRODUCT
16
15 // Object observing code creation events. Used by external profilers and 17 // Object observing code creation events. Used by external profilers and
16 // debuggers to map address ranges to function names. 18 // debuggers to map address ranges to function names.
17 class CodeObserver { 19 class CodeObserver {
18 public: 20 public:
19 CodeObserver() { } 21 CodeObserver() { }
20 22
21 virtual ~CodeObserver() { } 23 virtual ~CodeObserver() { }
22 24
23 // Returns true if this observer is active and should be notified 25 // Returns true if this observer is active and should be notified
24 // about newly created code objects. 26 // about newly created code objects.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 static Mutex* mutex() { 60 static Mutex* mutex() {
59 return mutex_; 61 return mutex_;
60 } 62 }
61 63
62 private: 64 private:
63 static Mutex* mutex_; 65 static Mutex* mutex_;
64 static intptr_t observers_length_; 66 static intptr_t observers_length_;
65 static CodeObserver** observers_; 67 static CodeObserver** observers_;
66 }; 68 };
67 69
70 #endif // !PRODUCT
68 71
69 } // namespace dart 72 } // namespace dart
70 73
71 #endif // VM_CODE_OBSERVERS_H_ 74 #endif // VM_CODE_OBSERVERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698