| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_VERIFIER_H_ | 5 #ifndef VM_VERIFIER_H_ |
| 6 #define VM_VERIFIER_H_ | 6 #define VM_VERIFIER_H_ |
| 7 | 7 |
| 8 #include "vm/flags.h" | 8 #include "vm/flags.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/handles.h" | 10 #include "vm/handles.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 DISALLOW_COPY_AND_ASSIGN(VerifyPointersVisitor); | 51 DISALLOW_COPY_AND_ASSIGN(VerifyPointersVisitor); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 class VerifyWeakPointersVisitor : public HandleVisitor { | 54 class VerifyWeakPointersVisitor : public HandleVisitor { |
| 55 public: | 55 public: |
| 56 explicit VerifyWeakPointersVisitor(VerifyPointersVisitor* visitor) | 56 explicit VerifyWeakPointersVisitor(VerifyPointersVisitor* visitor) |
| 57 : HandleVisitor(Isolate::Current()), | 57 : HandleVisitor(Isolate::Current()), |
| 58 visitor_(visitor) { | 58 visitor_(visitor) { |
| 59 } | 59 } |
| 60 | 60 |
| 61 virtual void VisitHandle(uword addr, bool is_prologue_weak); | 61 virtual void VisitHandle(uword addr); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 ObjectPointerVisitor* visitor_; | 64 ObjectPointerVisitor* visitor_; |
| 65 | 65 |
| 66 ObjectSet* allocated_set; | 66 ObjectSet* allocated_set; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(VerifyWeakPointersVisitor); | 68 DISALLOW_COPY_AND_ASSIGN(VerifyWeakPointersVisitor); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace dart | 71 } // namespace dart |
| 72 | 72 |
| 73 #endif // VM_VERIFIER_H_ | 73 #endif // VM_VERIFIER_H_ |
| OLD | NEW |