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

Unified Diff: src/compilation-cache.cc

Issue 2801073006: Decouple root visitors from object visitors. (Closed)
Patch Set: rebase Created 3 years, 8 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 | « src/compilation-cache.h ('k') | src/debug/debug.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compilation-cache.cc
diff --git a/src/compilation-cache.cc b/src/compilation-cache.cc
index 134040038c78de4dc27d686ae32571a6c01b4456..1619e0dd30ebe9f9ed74a9c49bede959d461fe33 100644
--- a/src/compilation-cache.cc
+++ b/src/compilation-cache.cc
@@ -9,6 +9,7 @@
#include "src/globals.h"
#include "src/objects-inl.h"
#include "src/objects/compilation-cache-inl.h"
+#include "src/visitors.h"
namespace v8 {
namespace internal {
@@ -81,9 +82,9 @@ void CompilationSubCache::IterateFunctions(ObjectVisitor* v) {
}
}
-
-void CompilationSubCache::Iterate(ObjectVisitor* v) {
- v->VisitPointers(&tables_[0], &tables_[generations_]);
+void CompilationSubCache::Iterate(RootVisitor* v) {
+ v->VisitRootPointers(Root::kCompilationCache, &tables_[0],
+ &tables_[generations_]);
}
@@ -366,8 +367,7 @@ void CompilationCache::Clear() {
}
}
-
-void CompilationCache::Iterate(ObjectVisitor* v) {
+void CompilationCache::Iterate(RootVisitor* v) {
for (int i = 0; i < kSubCacheCount; i++) {
subcaches_[i]->Iterate(v);
}
« no previous file with comments | « src/compilation-cache.h ('k') | src/debug/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698