| 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);
|
| }
|
|
|