OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 #include "wtf/Noncopyable.h" | 27 #include "wtf/Noncopyable.h" |
28 #include "wtf/NotFound.h" | 28 #include "wtf/NotFound.h" |
29 #include "wtf/StdLibExtras.h" | 29 #include "wtf/StdLibExtras.h" |
30 #include "wtf/VectorTraits.h" | 30 #include "wtf/VectorTraits.h" |
31 #include "wtf/WTF.h" | 31 #include "wtf/WTF.h" |
32 #include <string.h> | 32 #include <string.h> |
33 #include <utility> | 33 #include <utility> |
34 | 34 |
35 namespace WTF { | 35 namespace WTF { |
36 | 36 |
37 #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) | 37 #if defined(MEMORY_SANITIZER_INITIAL_SIZE) |
38 static const size_t kInitialVectorSize = 1; | 38 static const size_t kInitialVectorSize = 1; |
39 #else | 39 #else |
40 #ifndef WTF_VECTOR_INITIAL_SIZE | 40 #ifndef WTF_VECTOR_INITIAL_SIZE |
41 #define WTF_VECTOR_INITIAL_SIZE 4 | 41 #define WTF_VECTOR_INITIAL_SIZE 4 |
42 #endif | 42 #endif |
43 static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE; | 43 static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE; |
44 #endif | 44 #endif |
45 | 45 |
46 template<typename T, size_t inlineBuffer, typename Allocator> | 46 template<typename T, size_t inlineBuffer, typename Allocator> |
47 class Deque; | 47 class Deque; |
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1203 struct NeedsTracing<Vector<T, N> > { | 1203 struct NeedsTracing<Vector<T, N> > { |
1204 static const bool value = false; | 1204 static const bool value = false; |
1205 }; | 1205 }; |
1206 #endif | 1206 #endif |
1207 | 1207 |
1208 } // namespace WTF | 1208 } // namespace WTF |
1209 | 1209 |
1210 using WTF::Vector; | 1210 using WTF::Vector; |
1211 | 1211 |
1212 #endif // WTF_Vector_h | 1212 #endif // WTF_Vector_h |
OLD | NEW |