Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp |
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
index 9b8d80983accd0a8337e0385f4868bad1b82df09..09617fb3dcafdd2e771d0fc0ca975319330c58e5 100644 |
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp |
@@ -1086,6 +1086,15 @@ BasePage* ThreadState::findPageFromAddress(Address address) { |
} |
#endif |
+bool ThreadState::isAddressInHeapDoesNotContainCache(Address address) { |
+ // If the cache has been marked as invalidated, it's cleared prior |
+ // to performing the next GC. Hence, consider the cache as being |
+ // effectively empty. |
+ if (m_shouldFlushHeapDoesNotContainCache) |
+ return false; |
+ return heap().m_heapDoesNotContainCache->lookup(address); |
+} |
+ |
size_t ThreadState::objectPayloadSizeForTesting() { |
size_t objectPayloadSize = 0; |
for (int i = 0; i < BlinkGC::NumberOfArenas; ++i) |