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

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

Issue 98693010: - Promote objects early when a large percentage is being (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 | « no previous file | runtime/vm/scavenger.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) 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/flags.h" 10 #include "vm/flags.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 ScavengerVisitor* visitor, 112 ScavengerVisitor* visitor,
113 bool visit_prologue_weak_persistent_handles); 113 bool visit_prologue_weak_persistent_handles);
114 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor); 114 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor);
115 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor); 115 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor);
116 void IterateWeakRoots(Isolate* isolate, 116 void IterateWeakRoots(Isolate* isolate,
117 HandleVisitor* visitor, 117 HandleVisitor* visitor,
118 bool visit_prologue_weak_persistent_handles); 118 bool visit_prologue_weak_persistent_handles);
119 void ProcessToSpace(ScavengerVisitor* visitor); 119 void ProcessToSpace(ScavengerVisitor* visitor);
120 uword ProcessWeakProperty(RawWeakProperty* raw_weak, 120 uword ProcessWeakProperty(RawWeakProperty* raw_weak,
121 ScavengerVisitor* visitor); 121 ScavengerVisitor* visitor);
122 void Epilogue(Isolate* isolate, bool invoke_api_callbacks); 122 void Epilogue(Isolate* isolate,
123 ScavengerVisitor* visitor,
124 bool invoke_api_callbacks);
123 125
124 bool IsUnreachable(RawObject** p); 126 bool IsUnreachable(RawObject** p);
125 127
126 // During a scavenge we need to remember the promoted objects. 128 // During a scavenge we need to remember the promoted objects.
127 // This is implemented as a stack of objects at the end of the to space. As 129 // This is implemented as a stack of objects at the end of the to space. As
128 // object sizes are always greater than sizeof(uword) and promoted objects do 130 // object sizes are always greater than sizeof(uword) and promoted objects do
129 // not consume space in the to space they leave enough room for this stack. 131 // not consume space in the to space they leave enough room for this stack.
130 void PushToPromotedStack(uword addr) { 132 void PushToPromotedStack(uword addr) {
131 end_ -= sizeof(addr); 133 end_ -= sizeof(addr);
132 ASSERT(end_ > top_); 134 ASSERT(end_ > top_);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 174
173 friend class ScavengerVisitor; 175 friend class ScavengerVisitor;
174 friend class ScavengerWeakVisitor; 176 friend class ScavengerWeakVisitor;
175 177
176 DISALLOW_COPY_AND_ASSIGN(Scavenger); 178 DISALLOW_COPY_AND_ASSIGN(Scavenger);
177 }; 179 };
178 180
179 } // namespace dart 181 } // namespace dart
180 182
181 #endif // VM_SCAVENGER_H_ 183 #endif // VM_SCAVENGER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698