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

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

Issue 2771013002: Add more safe points in compiler (Closed)
Patch Set: Add a safe point in the zone allocator Created 3 years, 9 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
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 RUNTIME_VM_SCAVENGER_H_ 5 #ifndef RUNTIME_VM_SCAVENGER_H_
6 #define RUNTIME_VM_SCAVENGER_H_ 6 #define RUNTIME_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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 void PrintToJSONObject(JSONObject* object) const; 191 void PrintToJSONObject(JSONObject* object) const;
192 #endif // !PRODUCT 192 #endif // !PRODUCT
193 193
194 void AllocateExternal(intptr_t size); 194 void AllocateExternal(intptr_t size);
195 void FreeExternal(intptr_t size); 195 void FreeExternal(intptr_t size);
196 196
197 private: 197 private:
198 // Ids for time and data records in Heap::GCStats. 198 // Ids for time and data records in Heap::GCStats.
199 enum { 199 enum {
200 // Time 200 // Time
201 kVisitIsolateRoots = 0, 201 kSafePoint = 0,
202 kIterateStoreBuffers = 1, 202 kVisitIsolateRoots = 1,
203 kProcessToSpace = 2, 203 kIterateStoreBuffers = 2,
204 kIterateWeaks = 3, 204 kProcessToSpace = 3,
205 kIterateWeaks = 4,
205 // Data 206 // Data
206 kStoreBufferEntries = 0, 207 kStoreBufferEntries = 0,
207 kDataUnused1 = 1, 208 kDataUnused1 = 1,
208 kDataUnused2 = 2, 209 kDataUnused2 = 2,
209 kToKBAfterStoreBuffer = 3 210 kToKBAfterStoreBuffer = 3
210 }; 211 };
211 212
212 uword FirstObjectStart() const { return to_->start() | object_alignment_; } 213 uword FirstObjectStart() const { return to_->start() | object_alignment_; }
213 SemiSpace* Prologue(Isolate* isolate, bool invoke_api_callbacks); 214 SemiSpace* Prologue(Isolate* isolate, bool invoke_api_callbacks);
214 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor); 215 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 296
296 friend class ScavengerVisitor; 297 friend class ScavengerVisitor;
297 friend class ScavengerWeakVisitor; 298 friend class ScavengerWeakVisitor;
298 299
299 DISALLOW_COPY_AND_ASSIGN(Scavenger); 300 DISALLOW_COPY_AND_ASSIGN(Scavenger);
300 }; 301 };
301 302
302 } // namespace dart 303 } // namespace dart
303 304
304 #endif // RUNTIME_VM_SCAVENGER_H_ 305 #endif // RUNTIME_VM_SCAVENGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698