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

Unified Diff: runtime/vm/heap.cc

Issue 2951333002: Moves the top_ and end_ words of the Scavenger into mutator thread. (Closed)
Patch Set: Full removal of heap's top/end offsets. Changed allocs in other archs. Created 3 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: runtime/vm/heap.cc
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc
index 975d0d55c27a38cdea105418f05c13953f0103a2..5eae22f617dce1a814c87eaa9e77d760270f9c14 100644
--- a/runtime/vm/heap.cc
+++ b/runtime/vm/heap.cc
@@ -489,26 +489,6 @@ void Heap::WriteProtect(bool read_only) {
}
-intptr_t Heap::TopOffset(Heap::Space space) {
- if (space == kNew) {
- return OFFSET_OF(Heap, new_space_) + Scavenger::top_offset();
- } else {
- ASSERT(space == kOld);
- return OFFSET_OF(Heap, old_space_) + PageSpace::top_offset();
- }
-}
-
-
-intptr_t Heap::EndOffset(Heap::Space space) {
- if (space == kNew) {
- return OFFSET_OF(Heap, new_space_) + Scavenger::end_offset();
- } else {
- ASSERT(space == kOld);
- return OFFSET_OF(Heap, old_space_) + PageSpace::end_offset();
- }
-}
-
-
void Heap::Init(Isolate* isolate,
intptr_t max_new_gen_words,
intptr_t max_old_gen_words,

Powered by Google App Engine
This is Rietveld 408576698