OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_SCAVENGER_H_ | 5 #ifndef V8_HEAP_SCAVENGER_H_ |
6 #define V8_HEAP_SCAVENGER_H_ | 6 #define V8_HEAP_SCAVENGER_H_ |
7 | 7 |
8 #include "src/heap/objects-visiting.h" | 8 #include "src/heap/objects-visiting.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 Heap* heap_; | 57 Heap* heap_; |
58 }; | 58 }; |
59 | 59 |
60 | 60 |
61 // Helper class for turning the scavenger into an object visitor that is also | 61 // Helper class for turning the scavenger into an object visitor that is also |
62 // filtering out non-HeapObjects and objects which do not reside in new space. | 62 // filtering out non-HeapObjects and objects which do not reside in new space. |
63 class StaticScavengeVisitor | 63 class StaticScavengeVisitor |
64 : public StaticNewSpaceVisitor<StaticScavengeVisitor> { | 64 : public StaticNewSpaceVisitor<StaticScavengeVisitor> { |
65 public: | 65 public: |
66 static inline void VisitPointer(Heap* heap, Object** p); | 66 static inline void VisitPointer(Heap* heap, Object** p); |
| 67 static inline void VisitPointer(Heap* heap, HeapObject* object, Object** p); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace internal | 70 } // namespace internal |
70 } // namespace v8 | 71 } // namespace v8 |
71 | 72 |
72 #endif // V8_HEAP_SCAVENGER_H_ | 73 #endif // V8_HEAP_SCAVENGER_H_ |
OLD | NEW |