| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 enum CallbackInvocationMode { | 113 enum CallbackInvocationMode { |
| 114 GlobalMarking, | 114 GlobalMarking, |
| 115 ThreadLocalMarking, | 115 ThreadLocalMarking, |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 class CallbackStack; | 118 class CallbackStack; |
| 119 class HeapStats; | 119 class HeapStats; |
| 120 class PageMemory; | 120 class PageMemory; |
| 121 template<ThreadAffinity affinity> class ThreadLocalPersistents; | 121 template<ThreadAffinity affinity> class ThreadLocalPersistents; |
| 122 template<typename T, typename RootsAccessor = ThreadLocalPersistents<ThreadingTr
ait<T>::Affinity > > class Persistent; | 122 template<typename T, typename RootsAccessor = ThreadLocalPersistents<ThreadingTr
ait<T>::Affinity > > class Persistent; |
| 123 template<typename T> class CrossThreadPersistent; | |
| 124 | 123 |
| 125 #if ENABLE(GC_PROFILE_HEAP) | 124 #if ENABLE(GC_PROFILE_HEAP) |
| 126 class TracedValue; | 125 class TracedValue; |
| 127 #endif | 126 #endif |
| 128 | 127 |
| 129 PLATFORM_EXPORT size_t osPageSize(); | 128 PLATFORM_EXPORT size_t osPageSize(); |
| 130 | 129 |
| 131 // Blink heap pages are set up with a guard page before and after the | 130 // Blink heap pages are set up with a guard page before and after the |
| 132 // payload. | 131 // payload. |
| 133 inline size_t blinkPagePayloadSize() | 132 inline size_t blinkPagePayloadSize() |
| (...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2399 }; | 2398 }; |
| 2400 | 2399 |
| 2401 template<typename T> | 2400 template<typename T> |
| 2402 struct IfWeakMember<WeakMember<T> > { | 2401 struct IfWeakMember<WeakMember<T> > { |
| 2403 static bool isDead(Visitor* visitor, const WeakMember<T>& t) { return !visit
or->isAlive(t.get()); } | 2402 static bool isDead(Visitor* visitor, const WeakMember<T>& t) { return !visit
or->isAlive(t.get()); } |
| 2404 }; | 2403 }; |
| 2405 | 2404 |
| 2406 } | 2405 } |
| 2407 | 2406 |
| 2408 #endif // Heap_h | 2407 #endif // Heap_h |
| OLD | NEW |