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

Side by Side Diff: src/global-handles.h

Issue 2869413002: [heap] MinorMC: Only iterate new space global handles for ptr updates (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | src/global-handles.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_GLOBAL_HANDLES_H_ 5 #ifndef V8_GLOBAL_HANDLES_H_
6 #define V8_GLOBAL_HANDLES_H_ 6 #define V8_GLOBAL_HANDLES_H_
7 7
8 #include <type_traits> 8 #include <type_traits>
9 9
10 #include "include/v8.h" 10 #include "include/v8.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Returns the number of freed nodes. 123 // Returns the number of freed nodes.
124 int PostGarbageCollectionProcessing( 124 int PostGarbageCollectionProcessing(
125 GarbageCollector collector, const v8::GCCallbackFlags gc_callback_flags); 125 GarbageCollector collector, const v8::GCCallbackFlags gc_callback_flags);
126 126
127 // Iterates over all strong handles. 127 // Iterates over all strong handles.
128 void IterateStrongRoots(RootVisitor* v); 128 void IterateStrongRoots(RootVisitor* v);
129 129
130 // Iterates over all handles. 130 // Iterates over all handles.
131 void IterateAllRoots(RootVisitor* v); 131 void IterateAllRoots(RootVisitor* v);
132 132
133 void IterateAllNewSpaceRoots(RootVisitor* v);
134
133 // Iterates over all handles that have embedder-assigned class ID. 135 // Iterates over all handles that have embedder-assigned class ID.
134 void IterateAllRootsWithClassIds(v8::PersistentHandleVisitor* v); 136 void IterateAllRootsWithClassIds(v8::PersistentHandleVisitor* v);
135 137
136 // Iterates over all handles in the new space that have embedder-assigned 138 // Iterates over all handles in the new space that have embedder-assigned
137 // class ID. 139 // class ID.
138 void IterateAllRootsInNewSpaceWithClassIds(v8::PersistentHandleVisitor* v); 140 void IterateAllRootsInNewSpaceWithClassIds(v8::PersistentHandleVisitor* v);
139 141
140 // Iterate over all handles in the new space that are weak, unmodified 142 // Iterate over all handles in the new space that are weak, unmodified
141 // and have class IDs 143 // and have class IDs
142 void IterateWeakRootsInNewSpaceWithClassIds(v8::PersistentHandleVisitor* v); 144 void IterateWeakRootsInNewSpaceWithClassIds(v8::PersistentHandleVisitor* v);
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; 330 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES];
329 331
330 DISALLOW_COPY_AND_ASSIGN(EternalHandles); 332 DISALLOW_COPY_AND_ASSIGN(EternalHandles);
331 }; 333 };
332 334
333 335
334 } // namespace internal 336 } // namespace internal
335 } // namespace v8 337 } // namespace v8
336 338
337 #endif // V8_GLOBAL_HANDLES_H_ 339 #endif // V8_GLOBAL_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | src/global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698