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

Unified Diff: runtime/vm/code_observers.h

Issue 11572032: Clean up CodeObservers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: clean up for review Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/code_observers.cc » ('j') | runtime/vm/os.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_observers.h
diff --git a/runtime/vm/code_observers.h b/runtime/vm/code_observers.h
index 1891f3dd78a41d3234397ae060e974b90cc67aff..aefc85af0fca06126fd70bcb08398939c8c8b1ca 100644
--- a/runtime/vm/code_observers.h
+++ b/runtime/vm/code_observers.h
@@ -6,6 +6,7 @@
#define VM_CODE_OBSERVERS_H_
#include "vm/globals.h"
+#include "vm/allocation.h"
namespace dart {
@@ -29,7 +30,7 @@ class CodeObserver {
};
-class CodeObservers {
+class CodeObservers : public AllStatic {
public:
static void InitOnce();
@@ -45,6 +46,8 @@ class CodeObservers {
// Returns true if there is at least one active code observer.
static bool AreActive();
+ static void DeleteAll();
+
private:
static intptr_t observers_length_;
static CodeObserver** observers_;
« no previous file with comments | « no previous file | runtime/vm/code_observers.cc » ('j') | runtime/vm/os.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698