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

Side by Side Diff: vm/visitor.h

Issue 10030001: Resubmit change 6302 after fixing the compiler warning on older GCC compiler versions: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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
« vm/stack_frame.cc ('K') | « vm/unit_test.cc ('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_VISITOR_H_ 5 #ifndef VM_VISITOR_H_
6 #define VM_VISITOR_H_ 6 #define VM_VISITOR_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 10 matching lines...) Expand all
21 virtual void VisitPointers(RawObject** first, RawObject** last) = 0; 21 virtual void VisitPointers(RawObject** first, RawObject** last) = 0;
22 22
23 // len argument is the number of pointers to visit starting from 'p'. 23 // len argument is the number of pointers to visit starting from 'p'.
24 void VisitPointers(RawObject** p, intptr_t len) { 24 void VisitPointers(RawObject** p, intptr_t len) {
25 VisitPointers(p, (p + len - 1)); 25 VisitPointers(p, (p + len - 1));
26 } 26 }
27 27
28 void VisitPointer(RawObject** p) { VisitPointers(p , p); } 28 void VisitPointer(RawObject** p) { VisitPointers(p , p); }
29 }; 29 };
30 30
31
32 // An object finder visitor interface.
33 class FindObjectVisitor {
34 public:
35 virtual ~FindObjectVisitor() {}
36
37 // Check if object matches find condition.
38 virtual bool FindObject(RawObject* obj) = 0;
39 };
40
31 } // namespace dart 41 } // namespace dart
32 42
33 #endif // VM_VISITOR_H_ 43 #endif // VM_VISITOR_H_
OLDNEW
« vm/stack_frame.cc ('K') | « vm/unit_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698