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

Unified Diff: runtime/vm/code_observers.h

Issue 11660011: Clean up CodeObservers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a period to a comment. 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 | « runtime/bin/run_vm_tests.cc ('k') | runtime/vm/code_observers.cc » ('j') | no next file with comments »
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..82818159e3866369e92fd20272391b9aeedf4a47 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 {
@@ -13,6 +14,8 @@ namespace dart {
// debuggers to map address ranges to function names.
class CodeObserver {
public:
+ CodeObserver() { }
+
virtual ~CodeObserver() { }
// Returns true if this observer is active and should be notified
@@ -26,10 +29,13 @@ class CodeObserver {
uword prologue_offset,
uword size,
bool optimized) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CodeObserver);
};
-class CodeObservers {
+class CodeObservers : public AllStatic {
public:
static void InitOnce();
@@ -45,6 +51,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 | « runtime/bin/run_vm_tests.cc ('k') | runtime/vm/code_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698