Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index c9d27ab120e3719152dea48e9cbaa960113d2dd8..99f7f49054c0de55377965f4cf4de853272bda6a 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2459,9 +2459,6 @@ class JSObject: public JSReceiver { |
// map and the ElementsKind set. |
static Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, |
ElementsKind to_kind); |
- static Handle<Map> GetElementsTransitionMapSlow(Handle<JSObject> object, |
- ElementsKind elements_kind); |
- |
static void TransitionElementsKind(Handle<JSObject> object, |
ElementsKind to_kind); |
@@ -6314,6 +6311,11 @@ class Map: public HeapObject { |
PropertyAttributes attributes, |
TransitionFlag flag); |
+ // Returns a new map with all transitions dropped from the given map and |
+ // the ElementsKind set. |
+ static Handle<Map> TransitionElementsTo(Handle<Map> map, |
+ ElementsKind to_kind); |
+ |
static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind); |
static Handle<Map> CopyAsElementsKind(Handle<Map> map, |
@@ -6575,6 +6577,9 @@ class Map: public HeapObject { |
// the descriptor array. |
inline void NotifyLeafMapLayoutChange(); |
+ static Handle<Map> TransitionElementsToSlow(Handle<Map> object, |
+ ElementsKind to_kind); |
+ |
// Zaps the contents of backing data structures. Note that the |
// heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects |
// holding weak references when incremental marking is used, because it also |