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

Side by Side Diff: src/objects-visiting.h

Issue 282493004: Simplified slot buffer logic during weak list visiting. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects-visiting.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_OBJECTS_VISITING_H_ 5 #ifndef V8_OBJECTS_VISITING_H_
6 #define V8_OBJECTS_VISITING_H_ 6 #define V8_OBJECTS_VISITING_H_
7 7
8 #include "allocation.h" 8 #include "allocation.h"
9 9
10 // This file provides base classes and auxiliary methods for defining 10 // This file provides base classes and auxiliary methods for defining
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 462
463 class WeakObjectRetainer; 463 class WeakObjectRetainer;
464 464
465 465
466 // A weak list is single linked list where each element has a weak pointer to 466 // A weak list is single linked list where each element has a weak pointer to
467 // the next element. Given the head of the list, this function removes dead 467 // the next element. Given the head of the list, this function removes dead
468 // elements from the list and if requested records slots for next-element 468 // elements from the list and if requested records slots for next-element
469 // pointers. The template parameter T is a WeakListVisitor that defines how to 469 // pointers. The template parameter T is a WeakListVisitor that defines how to
470 // access the next-element pointers. 470 // access the next-element pointers.
471 template <class T> 471 template <class T>
472 Object* VisitWeakList(Heap* heap, 472 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer);
473 Object* list,
474 WeakObjectRetainer* retainer,
475 bool record_slots);
476 473
477 } } // namespace v8::internal 474 } } // namespace v8::internal
478 475
479 #endif // V8_OBJECTS_VISITING_H_ 476 #endif // V8_OBJECTS_VISITING_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects-visiting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698