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

Unified Diff: runtime/vm/snapshot.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/service.cc ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index 183e62f7a20dd13733c4f2fa7f941fccf4dc20bb..8d1fdcf2b5efd3082c30e3287b21dbd0aacaffbd 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -1845,13 +1845,11 @@ bool SnapshotWriter::HandleVMIsolateObject(RawObject* rawobj) {
class ScriptVisitor : public ObjectVisitor {
public:
explicit ScriptVisitor(Thread* thread) :
- ObjectVisitor(thread->isolate()),
objHandle_(Object::Handle(thread->zone())),
count_(0),
scripts_(NULL) {}
ScriptVisitor(Thread* thread, const Array* scripts) :
- ObjectVisitor(thread->isolate()),
objHandle_(Object::Handle(thread->zone())),
count_(0),
scripts_(scripts) {}
@@ -2271,7 +2269,7 @@ void SnapshotWriter::WriteMarkedObjectImpl(RawObject* raw,
class WriteInlinedObjectVisitor : public ObjectVisitor {
public:
explicit WriteInlinedObjectVisitor(SnapshotWriter* writer)
- : ObjectVisitor(Isolate::Current()), writer_(writer) {}
+ : writer_(writer) {}
virtual void VisitObject(RawObject* obj) {
intptr_t object_id = writer_->forward_list_->FindObject(obj);
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698