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

Unified Diff: runtime/vm/pages.h

Issue 1241863002: VM: Refactor allocation stats code and remove duplicate code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 5 years, 5 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
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.h
diff --git a/runtime/vm/pages.h b/runtime/vm/pages.h
index cd2b8cb60fb96fb0d5a7b14b91520a2b372ab387..ca10ee0f5e8f8e68118d1f92961b2bd8c6333923 100644
--- a/runtime/vm/pages.h
+++ b/runtime/vm/pages.h
@@ -297,8 +297,8 @@ class PageSpace {
return collections_;
}
- void PrintToJSONObject(JSONObject* object);
- void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream);
+ void PrintToJSONObject(JSONObject* object) const;
+ void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) const;
void AllocateExternal(intptr_t size);
void FreeExternal(intptr_t size);
@@ -337,6 +337,8 @@ class PageSpace {
// Bump block allocation from generated code.
uword* TopAddress() { return &bump_top_; }
uword* EndAddress() { return &bump_end_; }
+ static intptr_t top_offset() { return OFFSET_OF(PageSpace, bump_top_); }
+ static intptr_t end_offset() { return OFFSET_OF(PageSpace, bump_end_); }
private:
// Ids for time and data records in Heap::GCStats.
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698