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

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

Issue 1292063004: Add NoSafepointScope to ObjectPointerVisitor. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Also in Scavenger. Created 5 years, 4 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
« runtime/vm/allocation.h ('K') | « runtime/vm/scavenger.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/allocation.h"
8 #include "vm/globals.h" 9 #include "vm/globals.h"
9 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
10 11
11 namespace dart { 12 namespace dart {
12 13
13 // Forward declarations. 14 // Forward declarations.
14 class Isolate; 15 class Isolate;
15 class RawObject; 16 class RawObject;
16 17
17 // An object pointer visitor interface. 18 // An object pointer visitor interface.
(...skipping 13 matching lines...) Expand all
31 } 32 }
32 // len argument is the number of pointers to visit starting from 'p'. 33 // len argument is the number of pointers to visit starting from 'p'.
33 void VisitPointers(RawObject** p, intptr_t len) { 34 void VisitPointers(RawObject** p, intptr_t len) {
34 VisitPointers(p, (p + len - 1)); 35 VisitPointers(p, (p + len - 1));
35 } 36 }
36 37
37 void VisitPointer(RawObject** p) { VisitPointers(p , p); } 38 void VisitPointer(RawObject** p) { VisitPointers(p , p); }
38 39
39 private: 40 private:
40 Isolate* isolate_; 41 Isolate* isolate_;
42 NoSafepointScope no_safepoints_;
41 43
42 DISALLOW_IMPLICIT_CONSTRUCTORS(ObjectPointerVisitor); 44 DISALLOW_IMPLICIT_CONSTRUCTORS(ObjectPointerVisitor);
43 }; 45 };
44 46
45 47
46 // An object visitor interface. 48 // An object visitor interface.
47 class ObjectVisitor { 49 class ObjectVisitor {
48 public: 50 public:
49 explicit ObjectVisitor(Isolate* isolate) : isolate_(isolate) {} 51 explicit ObjectVisitor(Isolate* isolate) : isolate_(isolate) {}
50 52
(...skipping 29 matching lines...) Expand all
80 82
81 private: 83 private:
82 Isolate* isolate_; 84 Isolate* isolate_;
83 85
84 DISALLOW_IMPLICIT_CONSTRUCTORS(FindObjectVisitor); 86 DISALLOW_IMPLICIT_CONSTRUCTORS(FindObjectVisitor);
85 }; 87 };
86 88
87 } // namespace dart 89 } // namespace dart
88 90
89 #endif // VM_VISITOR_H_ 91 #endif // VM_VISITOR_H_
OLDNEW
« runtime/vm/allocation.h ('K') | « runtime/vm/scavenger.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698