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

Side by Side Diff: Source/wtf/Vector.h

Issue 199273005: Oilpan: Change the name of the finalization method that can be (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « Source/heap/Visitor.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 return; 600 return;
601 } 601 }
602 if (LIKELY(m_size) && !(Allocator::isGarbageCollected && this->hasOu tOfLineBuffer())) { 602 if (LIKELY(m_size) && !(Allocator::isGarbageCollected && this->hasOu tOfLineBuffer())) {
603 TypeOperations::destruct(begin(), end()); 603 TypeOperations::destruct(begin(), end());
604 m_size = 0; // Partial protection against use-after-free. 604 m_size = 0; // Partial protection against use-after-free.
605 } 605 }
606 606
607 Base::destruct(); 607 Base::destruct();
608 } 608 }
609 609
610 void finalizeGarbageCollectedObject()
611 {
612 finalize();
zerny-chromium 2014/03/21 07:21:01 Is there a particular reason finalize is not renam
Mads Ager (google) 2014/03/21 07:26:39 Yeah, finalize is also called in the non-oilpan bu
613 }
614
610 void clearUnusedSlots(T* from, T* to) 615 void clearUnusedSlots(T* from, T* to)
611 { 616 {
612 VectorUnusedSlotClearer<Allocator::isGarbageCollected && (VectorTrai ts<T>::needsDestruction || ShouldBeTraced<VectorTraits<T> >::value || VectorTrai ts<T>::isWeak), T>::clear(from, to); 617 VectorUnusedSlotClearer<Allocator::isGarbageCollected && (VectorTrai ts<T>::needsDestruction || ShouldBeTraced<VectorTraits<T> >::value || VectorTrai ts<T>::isWeak), T>::clear(from, to);
613 } 618 }
614 619
615 Vector(const Vector&); 620 Vector(const Vector&);
616 template<size_t otherCapacity> 621 template<size_t otherCapacity>
617 explicit Vector(const Vector<T, otherCapacity, Allocator>&); 622 explicit Vector(const Vector<T, otherCapacity, Allocator>&);
618 623
619 Vector& operator=(const Vector&); 624 Vector& operator=(const Vector&);
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 } 1202 }
1198 if (this->hasOutOfLineBuffer()) 1203 if (this->hasOutOfLineBuffer())
1199 Allocator::markNoTracing(visitor, buffer()); 1204 Allocator::markNoTracing(visitor, buffer());
1200 } 1205 }
1201 1206
1202 } // namespace WTF 1207 } // namespace WTF
1203 1208
1204 using WTF::Vector; 1209 using WTF::Vector;
1205 1210
1206 #endif // WTF_Vector_h 1211 #endif // WTF_Vector_h
OLDNEW
« no previous file with comments | « Source/heap/Visitor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698