Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 75d6e2f5bb9bc7079a66373d9be15885fd5ac4ce..6f052ff171073dc13c3a6a164721eae1ea5b91ff 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8369,7 +8369,7 @@ MaybeObject* JSObject::OptimizeAsPrototype() { |
} |
-MUST_USE_RESULT MaybeObject* CacheInitialJSArrayMaps( |
+static MUST_USE_RESULT MaybeObject* CacheInitialJSArrayMaps( |
Context* native_context, Map* initial_map) { |
// Replace all of the cached initial array maps in the native context with |
// the appropriate transitioned elements kind maps. |
@@ -8398,6 +8398,14 @@ MUST_USE_RESULT MaybeObject* CacheInitialJSArrayMaps( |
} |
+Handle<Object> CacheInitialJSArrayMaps(Handle<Context> native_context, |
+ Handle<Map> initial_map) { |
+ CALL_HEAP_FUNCTION(native_context->GetIsolate(), |
+ CacheInitialJSArrayMaps(*native_context, *initial_map), |
+ Object); |
+} |
+ |
+ |
MaybeObject* JSFunction::SetInstancePrototype(Object* value) { |
ASSERT(value->IsJSReceiver()); |
Heap* heap = GetHeap(); |