| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 const size_t markBitMask = 1; | 59 const size_t markBitMask = 1; |
| 60 const size_t freeListMask = 2; | 60 const size_t freeListMask = 2; |
| 61 const size_t debugBitMask = 4; | 61 const size_t debugBitMask = 4; |
| 62 const size_t sizeMask = ~7; | 62 const size_t sizeMask = ~7; |
| 63 const uint8_t freelistZapValue = 42; | 63 const uint8_t freelistZapValue = 42; |
| 64 const uint8_t finalizedZapValue = 24; | 64 const uint8_t finalizedZapValue = 24; |
| 65 | 65 |
| 66 class HeapStats; | 66 class HeapStats; |
| 67 class PageMemory; | 67 class PageMemory; |
| 68 template<typename T> class Persistent; | 68 template<ThreadAffinity affinity> class ThreadLocalPersistents; |
| 69 template<typename T, typename RootsAccessor = ThreadLocalPersistents<ThreadingTr
ait<T>::Affinity > > class Persistent; |
| 69 | 70 |
| 70 HEAP_EXPORT size_t osPageSize(); | 71 HEAP_EXPORT size_t osPageSize(); |
| 71 | 72 |
| 72 // Blink heap pages are set up with a guard page before and after the | 73 // Blink heap pages are set up with a guard page before and after the |
| 73 // payload. | 74 // payload. |
| 74 inline size_t blinkPagePayloadSize() | 75 inline size_t blinkPagePayloadSize() |
| 75 { | 76 { |
| 76 return blinkPageSize - 2 * osPageSize(); | 77 return blinkPageSize - 2 * osPageSize(); |
| 77 } | 78 } |
| 78 | 79 |
| (...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 // to export. This forces it to export all the methods from ThreadHeap. | 1669 // to export. This forces it to export all the methods from ThreadHeap. |
| 1669 template<> void ThreadHeap<FinalizedHeapObjectHeader>::addPageToHeap(const GCInf
o*); | 1670 template<> void ThreadHeap<FinalizedHeapObjectHeader>::addPageToHeap(const GCInf
o*); |
| 1670 template<> void ThreadHeap<HeapObjectHeader>::addPageToHeap(const GCInfo*); | 1671 template<> void ThreadHeap<HeapObjectHeader>::addPageToHeap(const GCInfo*); |
| 1671 extern template class HEAP_EXPORT ThreadHeap<FinalizedHeapObjectHeader>; | 1672 extern template class HEAP_EXPORT ThreadHeap<FinalizedHeapObjectHeader>; |
| 1672 extern template class HEAP_EXPORT ThreadHeap<HeapObjectHeader>; | 1673 extern template class HEAP_EXPORT ThreadHeap<HeapObjectHeader>; |
| 1673 #endif | 1674 #endif |
| 1674 | 1675 |
| 1675 } | 1676 } |
| 1676 | 1677 |
| 1677 #endif // Heap_h | 1678 #endif // Heap_h |
| OLD | NEW |