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

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

Issue 177093010: Use a tag bit for indicating prologue weak persistent handles, this avoids (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/verifier.cc » ('j') | 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
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 : visitor_(visitor) { 57 : visitor_(visitor) {
58 } 58 }
59 59
60 virtual void VisitHandle(uword addr); 60 virtual void VisitHandle(uword addr, bool is_prologue_weak);
61 61
62 private: 62 private:
63 ObjectPointerVisitor* visitor_; 63 ObjectPointerVisitor* visitor_;
64 64
65 ObjectSet* allocated_set; 65 ObjectSet* allocated_set;
66 66
67 DISALLOW_COPY_AND_ASSIGN(VerifyWeakPointersVisitor); 67 DISALLOW_COPY_AND_ASSIGN(VerifyWeakPointersVisitor);
68 }; 68 };
69 69
70 } // namespace dart 70 } // namespace dart
71 71
72 #endif // VM_VERIFIER_H_ 72 #endif // VM_VERIFIER_H_
OLDNEW
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698