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

Unified Diff: runtime/vm/object.cc

Issue 1838373002: Remove unnecessary isolate argument from some visitors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup Created 4 years, 9 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/object.h ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 57372ea17018be2dcbda507b92a8945e1247c828..d44dcc7a2e5f71f8cb56842ee6fb07b6e668c674 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -908,7 +908,7 @@ void Object::InitOnce(Isolate* isolate) {
// premark all objects in the vm_isolate_ heap.
class PremarkingVisitor : public ObjectVisitor {
public:
- explicit PremarkingVisitor(Isolate* isolate) : ObjectVisitor(isolate) {}
+ PremarkingVisitor() { }
void VisitObject(RawObject* obj) {
// Free list elements should never be marked.
@@ -996,7 +996,7 @@ void Object::FinalizeVMIsolate(Isolate* isolate) {
ASSERT(isolate == Dart::vm_isolate());
bool include_code_pages = !Dart::IsRunningPrecompiledCode();
WritableVMIsolateScope scope(Thread::Current(), include_code_pages);
- PremarkingVisitor premarker(isolate);
+ PremarkingVisitor premarker;
ASSERT(isolate->heap()->UsedInWords(Heap::kNew) == 0);
isolate->heap()->IterateOldObjects(&premarker);
// Make the VM isolate read-only again after setting all objects as marked.
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698