| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 static const bool canInitializeWithMemset = true; | 1023 static const bool canInitializeWithMemset = true; |
| 1024 static const bool canMoveWithMemcpy = true; | 1024 static const bool canMoveWithMemcpy = true; |
| 1025 }; | 1025 }; |
| 1026 | 1026 |
| 1027 template <typename T> struct VectorTraits<blink::WeakMember<T> > : VectorTraitsB
ase<blink::WeakMember<T> > { | 1027 template <typename T> struct VectorTraits<blink::WeakMember<T> > : VectorTraitsB
ase<blink::WeakMember<T> > { |
| 1028 static const bool needsDestruction = false; | 1028 static const bool needsDestruction = false; |
| 1029 static const bool canInitializeWithMemset = true; | 1029 static const bool canInitializeWithMemset = true; |
| 1030 static const bool canMoveWithMemcpy = true; | 1030 static const bool canMoveWithMemcpy = true; |
| 1031 }; | 1031 }; |
| 1032 | 1032 |
| 1033 template <typename T> struct VectorTraits<blink::HeapVector<T, 0> > : VectorTrai
tsBase<blink::HeapVector<T, 0> > { | 1033 template <typename T> struct VectorTraits<Vector<T, 0, blink::HeapAllocator> > :
VectorTraitsBase<Vector<T, 0, blink::HeapAllocator> > { |
| 1034 static const bool needsDestruction = false; | 1034 static const bool needsDestruction = false; |
| 1035 static const bool canInitializeWithMemset = true; | 1035 static const bool canInitializeWithMemset = true; |
| 1036 static const bool canMoveWithMemcpy = true; | 1036 static const bool canMoveWithMemcpy = true; |
| 1037 }; | 1037 }; |
| 1038 | 1038 |
| 1039 template <typename T> struct VectorTraits<blink::HeapDeque<T, 0> > : VectorTrait
sBase<blink::HeapDeque<T, 0> > { | 1039 template <typename T> struct VectorTraits<Deque<T, 0, blink::HeapAllocator> > :
VectorTraitsBase<Deque<T, 0, blink::HeapAllocator> > { |
| 1040 static const bool needsDestruction = false; | 1040 static const bool needsDestruction = false; |
| 1041 static const bool canInitializeWithMemset = true; | 1041 static const bool canInitializeWithMemset = true; |
| 1042 static const bool canMoveWithMemcpy = true; | 1042 static const bool canMoveWithMemcpy = true; |
| 1043 }; | 1043 }; |
| 1044 | 1044 |
| 1045 template <typename T, size_t inlineCapacity> struct VectorTraits<blink::HeapVect
or<T, inlineCapacity> > : VectorTraitsBase<blink::HeapVector<T, inlineCapacity>
> { | 1045 template <typename T, size_t inlineCapacity> struct VectorTraits<Vector<T, inlin
eCapacity, blink::HeapAllocator> > : VectorTraitsBase<Vector<T, inlineCapacity,
blink::HeapAllocator> > { |
| 1046 static const bool needsDestruction = VectorTraits<T>::needsDestruction; | 1046 static const bool needsDestruction = VectorTraits<T>::needsDestruction; |
| 1047 static const bool canInitializeWithMemset = VectorTraits<T>::canInitializeWi
thMemset; | 1047 static const bool canInitializeWithMemset = VectorTraits<T>::canInitializeWi
thMemset; |
| 1048 static const bool canMoveWithMemcpy = VectorTraits<T>::canMoveWithMemcpy; | 1048 static const bool canMoveWithMemcpy = VectorTraits<T>::canMoveWithMemcpy; |
| 1049 }; | 1049 }; |
| 1050 | 1050 |
| 1051 template <typename T, size_t inlineCapacity> struct VectorTraits<blink::HeapDequ
e<T, inlineCapacity> > : VectorTraitsBase<blink::HeapDeque<T, inlineCapacity> >
{ | 1051 template <typename T, size_t inlineCapacity> struct VectorTraits<Deque<T, inline
Capacity, blink::HeapAllocator> > : VectorTraitsBase<Deque<T, inlineCapacity, bl
ink::HeapAllocator> > { |
| 1052 static const bool needsDestruction = VectorTraits<T>::needsDestruction; | 1052 static const bool needsDestruction = VectorTraits<T>::needsDestruction; |
| 1053 static const bool canInitializeWithMemset = VectorTraits<T>::canInitializeWi
thMemset; | 1053 static const bool canInitializeWithMemset = VectorTraits<T>::canInitializeWi
thMemset; |
| 1054 static const bool canMoveWithMemcpy = VectorTraits<T>::canMoveWithMemcpy; | 1054 static const bool canMoveWithMemcpy = VectorTraits<T>::canMoveWithMemcpy; |
| 1055 }; | 1055 }; |
| 1056 | 1056 |
| 1057 template<typename T> struct HashTraits<blink::Member<T> > : SimpleClassHashTrait
s<blink::Member<T> > { | 1057 template<typename T> struct HashTraits<blink::Member<T> > : SimpleClassHashTrait
s<blink::Member<T> > { |
| 1058 static const bool needsDestruction = false; | 1058 static const bool needsDestruction = false; |
| 1059 // FIXME: The distinction between PeekInType and PassInType is there for | 1059 // FIXME: The distinction between PeekInType and PassInType is there for |
| 1060 // the sake of the reference counting handles. When they are gone the two | 1060 // the sake of the reference counting handles. When they are gone the two |
| 1061 // types can be merged into PassInType. | 1061 // types can be merged into PassInType. |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1201 struct ParamStorageTraits<T*> : public PointerParamStorageTraits<T*, blink::IsGa
rbageCollectedType<T>::value> { | 1201 struct ParamStorageTraits<T*> : public PointerParamStorageTraits<T*, blink::IsGa
rbageCollectedType<T>::value> { |
| 1202 }; | 1202 }; |
| 1203 | 1203 |
| 1204 template<typename T> | 1204 template<typename T> |
| 1205 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli
nk::IsGarbageCollectedType<T>::value> { | 1205 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli
nk::IsGarbageCollectedType<T>::value> { |
| 1206 }; | 1206 }; |
| 1207 | 1207 |
| 1208 } // namespace WTF | 1208 } // namespace WTF |
| 1209 | 1209 |
| 1210 #endif | 1210 #endif |
| OLD | NEW |