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

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') | no next file with comments »
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 80f32427c65beed55db96924780dac2552c61b6b..3b97e04fb288ab33462784b0ab393d7b61ef42c0 100644
--- a/src/api.h
+++ b/src/api.h
@@ -369,7 +369,7 @@ class V8_EXPORT_PRIVATE DeferredHandles {
isolate->LinkDeferredHandles(this);
}
- void Iterate(ObjectVisitor* v);
+ void Iterate(RootVisitor* v);
List<Object**> blocks_;
DeferredHandles* next_;
@@ -421,9 +421,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);
@@ -538,7 +537,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698