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

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

Issue 1471703002: Optimize ClearNonLiveReferences: collect dependent code only from maps that are embedded in optimize (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/heap.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 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 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 // ... and since the last scavenge. 2142 // ... and since the last scavenge.
2143 int survived_last_scavenge_; 2143 int survived_last_scavenge_;
2144 2144
2145 // This is not the depth of nested AlwaysAllocateScope's but rather a single 2145 // This is not the depth of nested AlwaysAllocateScope's but rather a single
2146 // count, as scopes can be acquired from multiple tasks (read: threads). 2146 // count, as scopes can be acquired from multiple tasks (read: threads).
2147 AtomicNumber<size_t> always_allocate_scope_count_; 2147 AtomicNumber<size_t> always_allocate_scope_count_;
2148 2148
2149 // For keeping track of context disposals. 2149 // For keeping track of context disposals.
2150 int contexts_disposed_; 2150 int contexts_disposed_;
2151 2151
2152 // The length of the retained_maps array at the time of context disposal.
2153 // This separates maps in the retained_maps array that were created before
2154 // and after context disposal.
2155 int number_of_disposed_maps_;
2156
2152 int global_ic_age_; 2157 int global_ic_age_;
2153 2158
2154 int scan_on_scavenge_pages_; 2159 int scan_on_scavenge_pages_;
2155 2160
2156 NewSpace new_space_; 2161 NewSpace new_space_;
2157 OldSpace* old_space_; 2162 OldSpace* old_space_;
2158 OldSpace* code_space_; 2163 OldSpace* code_space_;
2159 MapSpace* map_space_; 2164 MapSpace* map_space_;
2160 LargeObjectSpace* lo_space_; 2165 LargeObjectSpace* lo_space_;
2161 HeapState gc_state_; 2166 HeapState gc_state_;
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2731 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2727 2732
2728 private: 2733 private:
2729 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2734 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2730 }; 2735 };
2731 #endif // DEBUG 2736 #endif // DEBUG
2732 } // namespace internal 2737 } // namespace internal
2733 } // namespace v8 2738 } // namespace v8
2734 2739
2735 #endif // V8_HEAP_HEAP_H_ 2740 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698