Index: src/objects-visiting.h |
diff --git a/src/objects-visiting.h b/src/objects-visiting.h |
index b8b1a251c4bd75e02fc003083a744a4f505ab21b..e6ddfed4a7d2ab04ccaf12ba69aeb1665125e0a7 100644 |
--- a/src/objects-visiting.h |
+++ b/src/objects-visiting.h |
@@ -157,6 +157,10 @@ class VisitorDispatchTable { |
} |
} |
+ inline Callback GetVisitorById(StaticVisitorBase::VisitorId id) { |
+ return reinterpret_cast<Callback>(callbacks_[id]); |
+ } |
+ |
inline Callback GetVisitor(Map* map) { |
return reinterpret_cast<Callback>(callbacks_[map->visitor_id()]); |
} |