| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 6139080bfa340253474a791c60e3d0c7c475f787..bf2712d4abe6b83ae6c4f287ab4c3a4dd623a6ba 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -5177,15 +5177,8 @@ MaybeObject* Heap::AllocateJSArray(
|
| Context* native_context = isolate()->context()->native_context();
|
| JSFunction* array_function = native_context->array_function();
|
| Map* map = array_function->initial_map();
|
| - Object* maybe_map_array = native_context->js_array_maps();
|
| - if (!maybe_map_array->IsUndefined()) {
|
| - Object* maybe_transitioned_map =
|
| - FixedArray::cast(maybe_map_array)->get(elements_kind);
|
| - if (!maybe_transitioned_map->IsUndefined()) {
|
| - map = Map::cast(maybe_transitioned_map);
|
| - }
|
| - }
|
| -
|
| + Map* transition_map = isolate()->get_initial_js_array_map(elements_kind);
|
| + if (transition_map != NULL) map = transition_map;
|
| return AllocateJSObjectFromMap(map, pretenure);
|
| }
|
|
|
|
|