| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 // No tracing of off-heap supplements. We should not have any Supplement
able | 277 // No tracing of off-heap supplements. We should not have any Supplement
able |
| 278 // object on the heap. Either the object is HeapSupplementable or if it
is | 278 // object on the heap. Either the object is HeapSupplementable or if it
is |
| 279 // off heap it should use PersistentHeapSupplementable to trace any on-h
eap | 279 // off heap it should use PersistentHeapSupplementable to trace any on-h
eap |
| 280 // supplements. | 280 // supplements. |
| 281 COMPILE_ASSERT(!IsGarbageCollectedType<T>::value, GarbageCollectedObject
MustBeHeapSupplementable); | 281 COMPILE_ASSERT(!IsGarbageCollectedType<T>::value, GarbageCollectedObject
MustBeHeapSupplementable); |
| 282 SupplementableBase<T, false>::trace(visitor); | 282 SupplementableBase<T, false>::trace(visitor); |
| 283 } | 283 } |
| 284 }; | 284 }; |
| 285 | 285 |
| 286 template<typename T> | 286 template<typename T> |
| 287 struct ThreadingTrait<blink::SupplementBase<T, true> > { | 287 struct ThreadingTrait<SupplementBase<T, true> > { |
| 288 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; | 288 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; |
| 289 }; | 289 }; |
| 290 | 290 |
| 291 template<typename T> | 291 template<typename T> |
| 292 struct ThreadingTrait<blink::SupplementableBase<T, true> > { | 292 struct ThreadingTrait<SupplementableBase<T, true> > { |
| 293 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; | 293 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; |
| 294 }; | 294 }; |
| 295 | 295 |
| 296 } // namespace blink | 296 } // namespace blink |
| 297 | 297 |
| 298 #endif // Supplementable_h | 298 #endif // Supplementable_h |
| OLD | NEW |