Index: third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp |
index 1c1287303468fb22e2b6a5ae125f34b395075184..c4204daa12dbf21b2cb1cfb7a091cf6087829c58 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp |
@@ -17,6 +17,7 @@ |
#include "core/dom/StyleEngine.h" |
#include "core/dom/shadow/ElementShadow.h" |
#include "core/html/imports/HTMLImportsController.h" |
+#include "platform/heap/HeapCompact.h" |
#include "platform/heap/HeapPage.h" |
#include "public/platform/Platform.h" |
#include "public/platform/WebScheduler.h" |
@@ -203,6 +204,10 @@ bool ScriptWrappableVisitor::markWrapperHeader(HeapObjectHeader* header) const { |
if (header->isWrapperHeaderMarked()) |
return false; |
+ // Verify that no compactable & movable objects are slated for |
+ // lazy unmarking. |
+ DCHECK(!HeapCompact::isCompactableArena( |
+ pageFromObject(header)->arena()->arenaIndex())); |
header->markWrapperHeader(); |
m_headersToUnmark.push_back(header); |
return true; |