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

Unified Diff: src/api.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 | « BUILD.gn ('k') | src/api.cc » ('j') | src/heap/mark-compact.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.h
diff --git a/src/api.h b/src/api.h
index 4243d9025952e9e1366824763d0a23792fe02015..00bda0941ca8f1647d807745969c3725659fc678 100644
--- a/src/api.h
+++ b/src/api.h
@@ -365,7 +365,7 @@ class V8_EXPORT_PRIVATE DeferredHandles {
isolate->LinkDeferredHandles(this);
}
- void Iterate(ObjectVisitor* v);
+ void Iterate(RootVisitor* v);
List<Object**> blocks_;
DeferredHandles* next_;
@@ -417,9 +417,8 @@ class HandleScopeImplementer {
void FreeThreadResources();
// Garbage collection support.
- void Iterate(v8::internal::ObjectVisitor* v);
- static char* Iterate(v8::internal::ObjectVisitor* v, char* data);
-
+ void Iterate(v8::internal::RootVisitor* v);
+ static char* Iterate(v8::internal::RootVisitor* v, char* data);
inline internal::Object** GetSpareOrNewBlock();
inline void DeleteExtensions(internal::Object** prev_limit);
@@ -534,7 +533,7 @@ class HandleScopeImplementer {
// This is only used for threading support.
HandleScopeData handle_scope_data_;
- void IterateThis(ObjectVisitor* v);
+ void IterateThis(RootVisitor* v);
char* RestoreThreadHelper(char* from);
char* ArchiveThreadHelper(char* to);
« no previous file with comments | « BUILD.gn ('k') | src/api.cc » ('j') | src/heap/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698