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

Unified Diff: src/compilation-cache.h

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/builtins/builtins-api.cc ('k') | src/compilation-cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compilation-cache.h
diff --git a/src/compilation-cache.h b/src/compilation-cache.h
index efbe4f284c3b72b3f8228eeb5dceb0e4ec603c7e..89c54a42279ab8b24bc56b434e683baa984d1411 100644
--- a/src/compilation-cache.h
+++ b/src/compilation-cache.h
@@ -14,6 +14,8 @@ namespace internal {
template <typename T>
class Handle;
+class RootVisitor;
+
// The compilation cache consists of several generational sub-caches which uses
// this class as a base class. A sub-cache contains a compilation cache tables
// for each generation of the sub-cache. Since the same source code string has
@@ -49,7 +51,7 @@ class CompilationSubCache {
void Age();
// GC support.
- void Iterate(ObjectVisitor* v);
+ void Iterate(RootVisitor* v);
void IterateFunctions(ObjectVisitor* v);
// Clear this sub-cache evicting all its content.
@@ -197,7 +199,7 @@ class CompilationCache {
void Remove(Handle<SharedFunctionInfo> function_info);
// GC support.
- void Iterate(ObjectVisitor* v);
+ void Iterate(RootVisitor* v);
void IterateFunctions(ObjectVisitor* v);
// Notify the cache that a mark-sweep garbage collection is about to
« no previous file with comments | « src/builtins/builtins-api.cc ('k') | src/compilation-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698