| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef HeapCompact_h | 5 #ifndef HeapCompact_h |
| 6 #define HeapCompact_h | 6 #define HeapCompact_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/heap/BlinkGC.h" | 9 #include "platform/heap/BlinkGC.h" |
| 10 #include "wtf/DataLog.h" | 10 #include "platform/wtf/DataLog.h" |
| 11 #include "wtf/PtrUtil.h" | 11 #include "platform/wtf/PtrUtil.h" |
| 12 #include "wtf/ThreadingPrimitives.h" | 12 #include "platform/wtf/ThreadingPrimitives.h" |
| 13 #include "wtf/Vector.h" | 13 #include "platform/wtf/Vector.h" |
| 14 | 14 |
| 15 #include <bitset> | 15 #include <bitset> |
| 16 #include <utility> | 16 #include <utility> |
| 17 | 17 |
| 18 // Compaction-specific debug switches: | 18 // Compaction-specific debug switches: |
| 19 | 19 |
| 20 // Set to 0 to prevent compaction GCs, disabling the heap compaction feature. | 20 // Set to 0 to prevent compaction GCs, disabling the heap compaction feature. |
| 21 #define ENABLE_HEAP_COMPACTION 1 | 21 #define ENABLE_HEAP_COMPACTION 1 |
| 22 | 22 |
| 23 // Emit debug info during compaction. | 23 // Emit debug info during compaction. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 #if DEBUG_HEAP_FREELIST == 2 | 184 #if DEBUG_HEAP_FREELIST == 2 |
| 185 #define LOG_HEAP_FREELIST_VERBOSE(msg, ...) \ | 185 #define LOG_HEAP_FREELIST_VERBOSE(msg, ...) \ |
| 186 LOG_HEAP_COMPACTION_INTERNAL(msg, ##__VA_ARGS__) | 186 LOG_HEAP_COMPACTION_INTERNAL(msg, ##__VA_ARGS__) |
| 187 #else | 187 #else |
| 188 #define LOG_HEAP_FREELIST_VERBOSE(msg, ...) \ | 188 #define LOG_HEAP_FREELIST_VERBOSE(msg, ...) \ |
| 189 do { \ | 189 do { \ |
| 190 } while (0) | 190 } while (0) |
| 191 #endif | 191 #endif |
| 192 | 192 |
| 193 #endif // HeapCompact_h | 193 #endif // HeapCompact_h |
| OLD | NEW |