Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 4b5b51d9d90e2363c3542c877a5489f8ddb7203d..67489512475c6c9d7a798d4f21df68859cb0c8a2 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -5344,6 +5344,12 @@ class Map: public HeapObject { |
inline void deprecate(); |
inline bool is_deprecated(); |
inline bool CanBeDeprecated(); |
+ // Returns a non-deprecated version of the input. If the input was not |
+ // deprecated, it is directly returned. Otherwise, the non-deprecated version |
+ // is found by re-transitioning from the root of the transition tree using the |
+ // descriptor array of the map. New maps (and transitions) may be created if |
+ // no new (more general) version exists. |
+ static inline Handle<Map> CurrentMapForDeprecated(Handle<Map> map); |
MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); |
MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); |