Index: runtime/vm/heap.cc |
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc |
index 138e9b1e1902bb0e4d89fe983e6c3a46a6ac5d88..0cd9f41320f0c1e2bb8845e71f8f0f894af67c3d 100644 |
--- a/runtime/vm/heap.cc |
+++ b/runtime/vm/heap.cc |
@@ -260,6 +260,12 @@ void Heap::IterateOldObjects(ObjectVisitor* visitor) const { |
} |
+void Heap::IterateOldObjectsNoEmbedderPages(ObjectVisitor* visitor) const { |
+ HeapIterationScope heap_iteration_scope; |
+ old_space_.VisitObjectsNoEmbedderPages(visitor); |
+} |
+ |
+ |
void Heap::VisitObjectPointers(ObjectPointerVisitor* visitor) const { |
new_space_.VisitObjectPointers(visitor); |
old_space_.VisitObjectPointers(visitor); |
@@ -511,10 +517,10 @@ bool Heap::GrowthControlState() { |
} |
-void Heap::WriteProtect(bool read_only, bool include_code_pages) { |
+void Heap::WriteProtect(bool read_only) { |
read_only_ = read_only; |
new_space_.WriteProtect(read_only); |
- old_space_.WriteProtect(read_only, include_code_pages); |
+ old_space_.WriteProtect(read_only); |
} |
@@ -840,16 +846,15 @@ NoHeapGrowthControlScope::~NoHeapGrowthControlScope() { |
} |
-WritableVMIsolateScope::WritableVMIsolateScope(Thread* thread, |
- bool include_code_pages) |
- : StackResource(thread), include_code_pages_(include_code_pages) { |
- Dart::vm_isolate()->heap()->WriteProtect(false, include_code_pages_); |
+WritableVMIsolateScope::WritableVMIsolateScope(Thread* thread) |
+ : StackResource(thread) { |
+ Dart::vm_isolate()->heap()->WriteProtect(false); |
} |
WritableVMIsolateScope::~WritableVMIsolateScope() { |
ASSERT(Dart::vm_isolate()->heap()->UsedInWords(Heap::kNew) == 0); |
- Dart::vm_isolate()->heap()->WriteProtect(true, include_code_pages_); |
+ Dart::vm_isolate()->heap()->WriteProtect(true); |
} |
} // namespace dart |