| 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 29 matching lines...) Expand all Loading... |
| 40 #include "platform/heap/PagePool.h" | 40 #include "platform/heap/PagePool.h" |
| 41 #include "platform/heap/SafePoint.h" | 41 #include "platform/heap/SafePoint.h" |
| 42 #include "platform/heap/ThreadState.h" | 42 #include "platform/heap/ThreadState.h" |
| 43 #include "public/platform/Platform.h" | 43 #include "public/platform/Platform.h" |
| 44 #include "public/platform/WebMemoryAllocatorDump.h" | 44 #include "public/platform/WebMemoryAllocatorDump.h" |
| 45 #include "public/platform/WebProcessMemoryDump.h" | 45 #include "public/platform/WebProcessMemoryDump.h" |
| 46 #include "wtf/Assertions.h" | 46 #include "wtf/Assertions.h" |
| 47 #include "wtf/ContainerAnnotations.h" | 47 #include "wtf/ContainerAnnotations.h" |
| 48 #include "wtf/CurrentTime.h" | 48 #include "wtf/CurrentTime.h" |
| 49 #include "wtf/LeakAnnotations.h" | 49 #include "wtf/LeakAnnotations.h" |
| 50 #include "wtf/PageAllocator.h" | |
| 51 #include "wtf/Partitions.h" | |
| 52 #include "wtf/PassOwnPtr.h" | 50 #include "wtf/PassOwnPtr.h" |
| 51 #include "wtf/allocator/PageAllocator.h" |
| 52 #include "wtf/allocator/Partitions.h" |
| 53 | 53 |
| 54 #ifdef ANNOTATE_CONTIGUOUS_CONTAINER | 54 #ifdef ANNOTATE_CONTIGUOUS_CONTAINER |
| 55 // FIXME: have ContainerAnnotations.h define an ENABLE_-style name instead. | 55 // FIXME: have ContainerAnnotations.h define an ENABLE_-style name instead. |
| 56 #define ENABLE_ASAN_CONTAINER_ANNOTATIONS 1 | 56 #define ENABLE_ASAN_CONTAINER_ANNOTATIONS 1 |
| 57 | 57 |
| 58 // When finalizing a non-inlined vector backing store/container, remove | 58 // When finalizing a non-inlined vector backing store/container, remove |
| 59 // its contiguous container annotation. Required as it will not be destructed | 59 // its contiguous container annotation. Required as it will not be destructed |
| 60 // from its Vector. | 60 // from its Vector. |
| 61 #define ASAN_RETIRE_CONTAINER_ANNOTATION(object, objectSize)
\ | 61 #define ASAN_RETIRE_CONTAINER_ANNOTATION(object, objectSize)
\ |
| 62 do {
\ | 62 do {
\ |
| (...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1561 | 1561 |
| 1562 m_hasEntries = true; | 1562 m_hasEntries = true; |
| 1563 size_t index = hash(address); | 1563 size_t index = hash(address); |
| 1564 ASSERT(!(index & 1)); | 1564 ASSERT(!(index & 1)); |
| 1565 Address cachePage = roundToBlinkPageStart(address); | 1565 Address cachePage = roundToBlinkPageStart(address); |
| 1566 m_entries[index + 1] = m_entries[index]; | 1566 m_entries[index + 1] = m_entries[index]; |
| 1567 m_entries[index] = cachePage; | 1567 m_entries[index] = cachePage; |
| 1568 } | 1568 } |
| 1569 | 1569 |
| 1570 } // namespace blink | 1570 } // namespace blink |
| OLD | NEW |