| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_SCAVENGER_H_ | 5 #ifndef VM_SCAVENGER_H_ |
| 6 #define VM_SCAVENGER_H_ | 6 #define VM_SCAVENGER_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "platform/utils.h" | 9 #include "platform/utils.h" |
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 bool visit_prologue_weak_persistent_handles); | 240 bool visit_prologue_weak_persistent_handles); |
| 241 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor); | 241 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor); |
| 242 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor); | 242 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor); |
| 243 void IterateWeakRoots(Isolate* isolate, | 243 void IterateWeakRoots(Isolate* isolate, |
| 244 HandleVisitor* visitor, | 244 HandleVisitor* visitor, |
| 245 bool visit_prologue_weak_persistent_handles); | 245 bool visit_prologue_weak_persistent_handles); |
| 246 void ProcessToSpace(ScavengerVisitor* visitor); | 246 void ProcessToSpace(ScavengerVisitor* visitor); |
| 247 uword ProcessWeakProperty(RawWeakProperty* raw_weak, | 247 uword ProcessWeakProperty(RawWeakProperty* raw_weak, |
| 248 ScavengerVisitor* visitor); | 248 ScavengerVisitor* visitor); |
| 249 void Epilogue(Isolate* isolate, | 249 void Epilogue(Isolate* isolate, |
| 250 ScavengerVisitor* visitor, | |
| 251 bool invoke_api_callbacks); | 250 bool invoke_api_callbacks); |
| 252 | 251 |
| 253 bool IsUnreachable(RawObject** p); | 252 bool IsUnreachable(RawObject** p); |
| 254 | 253 |
| 255 // During a scavenge we need to remember the promoted objects. | 254 // During a scavenge we need to remember the promoted objects. |
| 256 // This is implemented as a stack of objects at the end of the to space. As | 255 // This is implemented as a stack of objects at the end of the to space. As |
| 257 // object sizes are always greater than sizeof(uword) and promoted objects do | 256 // object sizes are always greater than sizeof(uword) and promoted objects do |
| 258 // not consume space in the to space they leave enough room for this stack. | 257 // not consume space in the to space they leave enough room for this stack. |
| 259 void PushToPromotedStack(uword addr) { | 258 void PushToPromotedStack(uword addr) { |
| 260 ASSERT(scavenging_); | 259 ASSERT(scavenging_); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 312 |
| 314 friend class ScavengerVisitor; | 313 friend class ScavengerVisitor; |
| 315 friend class ScavengerWeakVisitor; | 314 friend class ScavengerWeakVisitor; |
| 316 | 315 |
| 317 DISALLOW_COPY_AND_ASSIGN(Scavenger); | 316 DISALLOW_COPY_AND_ASSIGN(Scavenger); |
| 318 }; | 317 }; |
| 319 | 318 |
| 320 } // namespace dart | 319 } // namespace dart |
| 321 | 320 |
| 322 #endif // VM_SCAVENGER_H_ | 321 #endif // VM_SCAVENGER_H_ |
| OLD | NEW |