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

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

Issue 1394673002: Move reusable handles from isolate to thread. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix release build Created 5 years, 2 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
« no previous file with comments | « runtime/vm/thread_registry.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 private: 60 private:
61 ObjectSet* allocated_set_; 61 ObjectSet* allocated_set_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(VerifyPointersVisitor); 63 DISALLOW_COPY_AND_ASSIGN(VerifyPointersVisitor);
64 }; 64 };
65 65
66 class VerifyWeakPointersVisitor : public HandleVisitor { 66 class VerifyWeakPointersVisitor : public HandleVisitor {
67 public: 67 public:
68 explicit VerifyWeakPointersVisitor(VerifyPointersVisitor* visitor) 68 explicit VerifyWeakPointersVisitor(VerifyPointersVisitor* visitor)
69 : HandleVisitor(Isolate::Current()), 69 : HandleVisitor(Thread::Current()),
70 visitor_(visitor) { 70 visitor_(visitor) {
71 } 71 }
72 72
73 virtual void VisitHandle(uword addr); 73 virtual void VisitHandle(uword addr);
74 74
75 private: 75 private:
76 ObjectPointerVisitor* visitor_; 76 ObjectPointerVisitor* visitor_;
77 77
78 ObjectSet* allocated_set; 78 ObjectSet* allocated_set;
79 79
80 DISALLOW_COPY_AND_ASSIGN(VerifyWeakPointersVisitor); 80 DISALLOW_COPY_AND_ASSIGN(VerifyWeakPointersVisitor);
81 }; 81 };
82 82
83 } // namespace dart 83 } // namespace dart
84 84
85 #endif // VM_VERIFIER_H_ 85 #endif // VM_VERIFIER_H_
OLDNEW
« no previous file with comments | « runtime/vm/thread_registry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698