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

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

Issue 2771013002: Add more safe points in compiler (Closed)
Patch Set: Fix test that 'parses' verbose GC output Created 3 years, 8 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
« no previous file with comments | « runtime/vm/redundancy_elimination.cc ('k') | 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 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 kDummyScavengeTime = 0,
202 kIterateStoreBuffers = 1, 202 kSafePoint = 1,
203 kProcessToSpace = 2, 203 kVisitIsolateRoots = 2,
204 kIterateWeaks = 3, 204 kIterateStoreBuffers = 3,
205 kProcessToSpace = 4,
206 kIterateWeaks = 5,
205 // Data 207 // Data
206 kStoreBufferEntries = 0, 208 kStoreBufferEntries = 0,
207 kDataUnused1 = 1, 209 kDataUnused1 = 1,
208 kDataUnused2 = 2, 210 kDataUnused2 = 2,
209 kToKBAfterStoreBuffer = 3 211 kToKBAfterStoreBuffer = 3
210 }; 212 };
211 213
212 uword FirstObjectStart() const { return to_->start() | object_alignment_; } 214 uword FirstObjectStart() const { return to_->start() | object_alignment_; }
213 SemiSpace* Prologue(Isolate* isolate, bool invoke_api_callbacks); 215 SemiSpace* Prologue(Isolate* isolate, bool invoke_api_callbacks);
214 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor); 216 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 297
296 friend class ScavengerVisitor; 298 friend class ScavengerVisitor;
297 friend class ScavengerWeakVisitor; 299 friend class ScavengerWeakVisitor;
298 300
299 DISALLOW_COPY_AND_ASSIGN(Scavenger); 301 DISALLOW_COPY_AND_ASSIGN(Scavenger);
300 }; 302 };
301 303
302 } // namespace dart 304 } // namespace dart
303 305
304 #endif // RUNTIME_VM_SCAVENGER_H_ 306 #endif // RUNTIME_VM_SCAVENGER_H_
OLDNEW
« no previous file with comments | « runtime/vm/redundancy_elimination.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698