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

Side by Side Diff: sky/engine/wtf/Vector.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/wtf/Deque.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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 return; 593 return;
594 } 594 }
595 if (LIKELY(m_size) && !(Allocator::isGarbageCollected && this->hasOu tOfLineBuffer())) { 595 if (LIKELY(m_size) && !(Allocator::isGarbageCollected && this->hasOu tOfLineBuffer())) {
596 TypeOperations::destruct(begin(), end()); 596 TypeOperations::destruct(begin(), end());
597 m_size = 0; // Partial protection against use-after-free. 597 m_size = 0; // Partial protection against use-after-free.
598 } 598 }
599 599
600 Base::destruct(); 600 Base::destruct();
601 } 601 }
602 602
603 void finalizeGarbageCollectedObject()
604 {
605 finalize();
606 }
607
608 Vector(const Vector&); 603 Vector(const Vector&);
609 template<size_t otherCapacity> 604 template<size_t otherCapacity>
610 explicit Vector(const Vector<T, otherCapacity, Allocator>&); 605 explicit Vector(const Vector<T, otherCapacity, Allocator>&);
611 606
612 Vector& operator=(const Vector&); 607 Vector& operator=(const Vector&);
613 template<size_t otherCapacity> 608 template<size_t otherCapacity>
614 Vector& operator=(const Vector<T, otherCapacity, Allocator>&); 609 Vector& operator=(const Vector<T, otherCapacity, Allocator>&);
615 610
616 Vector(Vector&&); 611 Vector(Vector&&);
617 Vector& operator=(Vector&&); 612 Vector& operator=(Vector&&);
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 struct NeedsTracing<Vector<T, N> > { 1186 struct NeedsTracing<Vector<T, N> > {
1192 static const bool value = false; 1187 static const bool value = false;
1193 }; 1188 };
1194 #endif 1189 #endif
1195 1190
1196 } // namespace WTF 1191 } // namespace WTF
1197 1192
1198 using WTF::Vector; 1193 using WTF::Vector;
1199 1194
1200 #endif // WTF_Vector_h 1195 #endif // WTF_Vector_h
OLDNEW
« no previous file with comments | « sky/engine/wtf/Deque.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698