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

Unified Diff: runtime/vm/heap.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/hash_table_test.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index 30210bc54c86fe048b189b6a7ca0c4ce53c5e0b5..3e05e135795910b2202e3edacfe939c17af55bf7 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -33,17 +33,9 @@ class Heap {
kCode,
};
- enum WeakSelector {
- kPeers = 0,
- kHashes,
- kObjectIds,
- kNumWeakSelectors
- };
+ enum WeakSelector { kPeers = 0, kHashes, kObjectIds, kNumWeakSelectors };
- enum ApiCallbacks {
- kIgnoreApiCallbacks,
- kInvokeApiCallbacks
- };
+ enum ApiCallbacks { kIgnoreApiCallbacks, kInvokeApiCallbacks };
enum GCReason {
kNewSpace,
@@ -211,7 +203,7 @@ class Heap {
if (space == kNew) {
return new_weak_tables_[selector];
}
- ASSERT(space ==kOld);
+ ASSERT(space == kOld);
return old_weak_tables_[selector];
}
void SetWeakTable(Space space, WeakSelector selector, WeakTable* value) {
@@ -272,13 +264,12 @@ class Heap {
int64_t micros_;
SpaceUsage new_;
SpaceUsage old_;
+
private:
DISALLOW_COPY_AND_ASSIGN(Data);
};
- enum {
- kDataEntries = 4
- };
+ enum { kDataEntries = 4 };
Data before_;
Data after_;
@@ -312,10 +303,12 @@ class Heap {
bool VerifyGC(MarkExpectation mark_expectation = kForbidMarked) const;
// Helper functions for garbage collection.
- void CollectNewSpaceGarbage(
- Thread* thread, ApiCallbacks api_callbacks, GCReason reason);
- void CollectOldSpaceGarbage(
- Thread* thread, ApiCallbacks api_callbacks, GCReason reason);
+ void CollectNewSpaceGarbage(Thread* thread,
+ ApiCallbacks api_callbacks,
+ GCReason reason);
+ void CollectOldSpaceGarbage(Thread* thread,
+ ApiCallbacks api_callbacks,
+ GCReason reason);
// GC stats collection.
void RecordBeforeGC(Space space, GCReason reason);
@@ -355,10 +348,10 @@ class Heap {
bool gc_new_space_in_progress_;
bool gc_old_space_in_progress_;
- friend class Become; // VisitObjectPointers
+ friend class Become; // VisitObjectPointers
friend class Precompiler; // VisitObjects
friend class ServiceEvent;
- friend class PageSpace; // VerifyGC
+ friend class PageSpace; // VerifyGC
friend class IsolateReloadContext; // VisitObjects
DISALLOW_COPY_AND_ASSIGN(Heap);
@@ -369,6 +362,7 @@ class HeapIterationScope : public StackResource {
public:
HeapIterationScope();
~HeapIterationScope();
+
private:
NoSafepointScope no_safepoint_scope_;
PageSpace* old_space_;
@@ -381,6 +375,7 @@ class NoHeapGrowthControlScope : public StackResource {
public:
NoHeapGrowthControlScope();
~NoHeapGrowthControlScope();
+
private:
bool current_growth_controller_state_;
DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope);
« no previous file with comments | « runtime/vm/hash_table_test.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698