Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 92e4dc4c8c9c98f03a6267e2f393dda5c4312803..f9095c6339e6bc687056f537aacaf2698a814968 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -3362,6 +3362,15 @@ MaybeObject* JSObject::GetElementsTransitionMapSlow(ElementsKind to_kind) { |
} |
+// TODO(ishell): Temporary wrapper until handlified. |
+// static |
+Handle<Map> Map::AsElementsKind(Handle<Map> map, ElementsKind kind) { |
+ CALL_HEAP_FUNCTION(map->GetIsolate(), |
+ map->AsElementsKind(kind), |
+ Map); |
+} |
+ |
+ |
MaybeObject* Map::AsElementsKind(ElementsKind kind) { |
Map* closest_map = FindClosestElementsTransition(this, kind); |