| 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_;
|
|
|