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

Unified Diff: runtime/vm/pages.h

Issue 2654183002: Rename references to "external pages" as "snapshot pages" to avoid confusion with the kind of exter… (Closed)
Patch Set: image Created 3 years, 11 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: runtime/vm/pages.h
diff --git a/runtime/vm/pages.h b/runtime/vm/pages.h
index 289e05d0b34243846103cae771f8aa85c06b440b..0cf4388cbfdbf85948a701780af447b7df8ebdff 100644
--- a/runtime/vm/pages.h
+++ b/runtime/vm/pages.h
@@ -40,7 +40,7 @@ class HeapPage {
PageType type() const { return type_; }
- bool embedder_allocated() const { return memory_->embedder_allocated(); }
+ bool is_image_page() const { return !memory_->vm_owns_region(); }
void VisitObjects(ObjectVisitor* visitor) const;
void VisitObjectPointers(ObjectPointerVisitor* visitor) const;
@@ -231,8 +231,8 @@ class PageSpace {
bool IsValidAddress(uword addr) const { return Contains(addr); }
void VisitObjects(ObjectVisitor* visitor) const;
- void VisitObjectsNoExternalPages(ObjectVisitor* visitor) const;
- void VisitObjectsExternalPages(ObjectVisitor* visitor) const;
+ void VisitObjectsNoImagePages(ObjectVisitor* visitor) const;
+ void VisitObjectsImagePages(ObjectVisitor* visitor) const;
void VisitObjectPointers(ObjectPointerVisitor* visitor) const;
RawObject* FindObject(FindObjectVisitor* visitor,
@@ -318,7 +318,7 @@ class PageSpace {
static intptr_t top_offset() { return OFFSET_OF(PageSpace, bump_top_); }
static intptr_t end_offset() { return OFFSET_OF(PageSpace, bump_end_); }
- void SetupExternalPage(void* pointer, uword size, bool is_executable);
+ void SetupImagePage(void* pointer, uword size, bool is_executable);
private:
// Ids for time and data records in Heap::GCStats.
« runtime/vm/isolate.cc ('K') | « runtime/vm/object_graph.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698