Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: third_party/WebKit/Source/platform/heap/HeapPage.h

Issue 2054673002: Mark shouldMarkObject(), arenaForNormalPage() accessors as const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/heap/HeapPage.h
diff --git a/third_party/WebKit/Source/platform/heap/HeapPage.h b/third_party/WebKit/Source/platform/heap/HeapPage.h
index 6659ddc8c858a1b4174eb86756127ba1ed54a198..4ae9945859393b7333b3fbb9f8bb11fbdae9d8a7 100644
--- a/third_party/WebKit/Source/platform/heap/HeapPage.h
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.h
@@ -494,7 +494,7 @@ public:
return sizeof(NormalPage) + paddingSize;
}
- NormalPageArena* arenaForNormalPage();
+ inline NormalPageArena* arenaForNormalPage() const;
private:
HeapObjectHeader* findHeaderFromAddress(Address);
@@ -925,6 +925,11 @@ inline Address NormalPageArena::allocateObject(size_t allocationSize, size_t gcI
return outOfLineAllocate(allocationSize, gcInfoIndex);
}
+inline NormalPageArena* NormalPage::arenaForNormalPage() const
+{
+ return static_cast<NormalPageArena*>(arena());
+}
+
} // namespace blink
#endif // HeapPage_h
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.cpp ('k') | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698