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

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

Issue 11969037: Remove unused GlobalHandles::IterateWeakRoots() (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years, 11 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 // Iterates over all handles. 177 // Iterates over all handles.
178 void IterateAllRoots(ObjectVisitor* v); 178 void IterateAllRoots(ObjectVisitor* v);
179 179
180 // Iterates over all handles that have embedder-assigned class ID. 180 // Iterates over all handles that have embedder-assigned class ID.
181 void IterateAllRootsWithClassIds(ObjectVisitor* v); 181 void IterateAllRootsWithClassIds(ObjectVisitor* v);
182 182
183 // Iterates over all weak roots in heap. 183 // Iterates over all weak roots in heap.
184 void IterateWeakRoots(ObjectVisitor* v); 184 void IterateWeakRoots(ObjectVisitor* v);
185 185
186 // Iterates over weak roots that are bound to a given callback.
187 void IterateWeakRoots(WeakReferenceGuest f,
Michael Starzinger 2013/01/21 12:22:51 AFAICT we can get rid of the WeakReferenceGuest ty
188 WeakReferenceCallback callback);
189
190 // Find all weak handles satisfying the callback predicate, mark 186 // Find all weak handles satisfying the callback predicate, mark
191 // them as pending. 187 // them as pending.
192 void IdentifyWeakHandles(WeakSlotCallback f); 188 void IdentifyWeakHandles(WeakSlotCallback f);
193 189
194 // NOTE: Three ...NewSpace... functions below are used during 190 // NOTE: Three ...NewSpace... functions below are used during
195 // scavenge collections and iterate over sets of handles that are 191 // scavenge collections and iterate over sets of handles that are
196 // guaranteed to contain all handles holding new space objects (but 192 // guaranteed to contain all handles holding new space objects (but
197 // may also include old space objects). 193 // may also include old space objects).
198 194
199 // Iterates over strong and dependent handles. See the node above. 195 // Iterates over strong and dependent handles. See the node above.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 285
290 friend class Isolate; 286 friend class Isolate;
291 287
292 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); 288 DISALLOW_COPY_AND_ASSIGN(GlobalHandles);
293 }; 289 };
294 290
295 291
296 } } // namespace v8::internal 292 } } // namespace v8::internal
297 293
298 #endif // V8_GLOBAL_HANDLES_H_ 294 #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