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

Unified Diff: runtime/vm/compiler_stats.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 | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler_stats.cc
diff --git a/runtime/vm/compiler_stats.cc b/runtime/vm/compiler_stats.cc
index 7905ed8496cdea27bc1e7a5535f0ae5e1809f2c0..d7950c166320568c43d4420ddbccca3eed421cdc 100644
--- a/runtime/vm/compiler_stats.cc
+++ b/runtime/vm/compiler_stats.cc
@@ -20,9 +20,8 @@ DEFINE_FLAG(bool, compiler_benchmark, false,
class TokenStreamVisitor : public ObjectVisitor {
public:
- TokenStreamVisitor(Isolate* isolate, CompilerStats* compiler_stats)
- : ObjectVisitor(isolate),
- obj_(Object::Handle()),
+ explicit TokenStreamVisitor(CompilerStats* compiler_stats)
+ : obj_(Object::Handle()),
stats_(compiler_stats) {
}
@@ -113,7 +112,7 @@ void CompilerStats::Update() {
// Traverse the heap and compute number of tokens in all
// TokenStream objects.
num_tokens_total = 0;
- TokenStreamVisitor visitor(isolate_, this);
+ TokenStreamVisitor visitor(this);
isolate_->heap()->IterateObjects(&visitor);
Dart::vm_isolate()->heap()->IterateObjects(&visitor);
}
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698