| 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 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 BlinkGCMemoryDumpProvider::instance() | 1224 BlinkGCMemoryDumpProvider::instance() |
| 1225 ->createMemoryAllocatorDumpForCurrentGC(dumpName); | 1225 ->createMemoryAllocatorDumpForCurrentGC(dumpName); |
| 1226 bucketDump->AddScalar("free_count", "objects", entryCount); | 1226 bucketDump->AddScalar("free_count", "objects", entryCount); |
| 1227 bucketDump->AddScalar("free_size", "bytes", freeSize); | 1227 bucketDump->AddScalar("free_size", "bytes", freeSize); |
| 1228 didDumpBucketStats = true; | 1228 didDumpBucketStats = true; |
| 1229 } | 1229 } |
| 1230 return didDumpBucketStats; | 1230 return didDumpBucketStats; |
| 1231 } | 1231 } |
| 1232 | 1232 |
| 1233 BasePage::BasePage(PageMemory* storage, BaseArena* arena) | 1233 BasePage::BasePage(PageMemory* storage, BaseArena* arena) |
| 1234 : m_storage(storage), | 1234 : m_storage(storage), m_arena(arena), m_next(nullptr), m_swept(true) { |
| 1235 m_arena(arena), | |
| 1236 m_next(nullptr), | |
| 1237 m_swept(true) { | |
| 1238 ASSERT(isPageHeaderAddress(reinterpret_cast<Address>(this))); | 1235 ASSERT(isPageHeaderAddress(reinterpret_cast<Address>(this))); |
| 1239 } | 1236 } |
| 1240 | 1237 |
| 1241 NormalPage::NormalPage(PageMemory* storage, BaseArena* arena) | 1238 NormalPage::NormalPage(PageMemory* storage, BaseArena* arena) |
| 1242 : BasePage(storage, arena), m_objectStartBitMapComputed(false) { | 1239 : BasePage(storage, arena), m_objectStartBitMapComputed(false) { |
| 1243 ASSERT(isPageHeaderAddress(reinterpret_cast<Address>(this))); | 1240 ASSERT(isPageHeaderAddress(reinterpret_cast<Address>(this))); |
| 1244 } | 1241 } |
| 1245 | 1242 |
| 1246 size_t NormalPage::objectPayloadSizeForTesting() { | 1243 size_t NormalPage::objectPayloadSizeForTesting() { |
| 1247 size_t objectPayloadSize = 0; | 1244 size_t objectPayloadSize = 0; |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1817 | 1814 |
| 1818 m_hasEntries = true; | 1815 m_hasEntries = true; |
| 1819 size_t index = hash(address); | 1816 size_t index = hash(address); |
| 1820 ASSERT(!(index & 1)); | 1817 ASSERT(!(index & 1)); |
| 1821 Address cachePage = roundToBlinkPageStart(address); | 1818 Address cachePage = roundToBlinkPageStart(address); |
| 1822 m_entries[index + 1] = m_entries[index]; | 1819 m_entries[index + 1] = m_entries[index]; |
| 1823 m_entries[index] = cachePage; | 1820 m_entries[index] = cachePage; |
| 1824 } | 1821 } |
| 1825 | 1822 |
| 1826 } // namespace blink | 1823 } // namespace blink |
| OLD | NEW |