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

Unified Diff: runtime/vm/profiler.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/pages.cc ('k') | runtime/vm/scavenger_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.cc
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
index 37b8b73577f7f5426867ceb40c0681440b4a0198..e597260ef88b15c17687e3eff6636eebd15e189c 100644
--- a/runtime/vm/profiler.cc
+++ b/runtime/vm/profiler.cc
@@ -1125,9 +1125,7 @@ CodeLookupTable::CodeLookupTable(Thread* thread) {
class CodeLookupTableBuilder : public ObjectVisitor {
public:
- CodeLookupTableBuilder(Isolate* isolate, CodeLookupTable* table)
- : ObjectVisitor(isolate),
- table_(table) {
+ explicit CodeLookupTableBuilder(CodeLookupTable* table) : table_(table) {
ASSERT(table_ != NULL);
}
@@ -1163,7 +1161,7 @@ void CodeLookupTable::Build(Thread* thread) {
code_objects_.Clear();
// Add all found Code objects.
- CodeLookupTableBuilder cltb(isolate, this);
+ CodeLookupTableBuilder cltb(this);
vm_isolate->heap()->IterateOldObjects(&cltb);
isolate->heap()->IterateOldObjects(&cltb);
« no previous file with comments | « runtime/vm/pages.cc ('k') | runtime/vm/scavenger_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698