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

Side by Side Diff: src/heap/heap.h

Issue 1324153003: Add template parameter and unittests to atomic utils. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fighting c++ Created 5 years, 3 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 2131
2132 // For keeping track of how much data has survived 2132 // For keeping track of how much data has survived
2133 // scavenge since last new space expansion. 2133 // scavenge since last new space expansion.
2134 int survived_since_last_expansion_; 2134 int survived_since_last_expansion_;
2135 2135
2136 // ... and since the last scavenge. 2136 // ... and since the last scavenge.
2137 int survived_last_scavenge_; 2137 int survived_last_scavenge_;
2138 2138
2139 // This is not the depth of nested AlwaysAllocateScope's but rather a single 2139 // This is not the depth of nested AlwaysAllocateScope's but rather a single
2140 // count, as scopes can be acquired from multiple tasks (read: threads). 2140 // count, as scopes can be acquired from multiple tasks (read: threads).
2141 AtomicValue always_allocate_scope_count_; 2141 AtomicNumber<size_t> always_allocate_scope_count_;
2142 2142
2143 // For keeping track of context disposals. 2143 // For keeping track of context disposals.
2144 int contexts_disposed_; 2144 int contexts_disposed_;
2145 2145
2146 int global_ic_age_; 2146 int global_ic_age_;
2147 2147
2148 int scan_on_scavenge_pages_; 2148 int scan_on_scavenge_pages_;
2149 2149
2150 NewSpace new_space_; 2150 NewSpace new_space_;
2151 OldSpace* old_space_; 2151 OldSpace* old_space_;
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2746 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2747 2747
2748 private: 2748 private:
2749 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2749 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2750 }; 2750 };
2751 #endif // DEBUG 2751 #endif // DEBUG
2752 } 2752 }
2753 } // namespace v8::internal 2753 } // namespace v8::internal
2754 2754
2755 #endif // V8_HEAP_HEAP_H_ 2755 #endif // V8_HEAP_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698