Preserve the ElementsKind in builtin.cc Slice early return

LOG=N

BUG=chromium:531348

Review URL: https://codereview.chromium.org/1344493004

Cr-Commit-Position: refs/heads/master@{#30711}
This commit is contained in:
cbruni 2015-09-14 03:32:35 -07:00 committed by Commit bot
parent e7fb233946
commit 5ee2ea3cae

View File

@ -527,7 +527,7 @@ BUILTIN(ArraySlice) {
if (actual_end <= actual_start) {
Handle<JSArray> result_array =
isolate->factory()->NewJSArray(GetInitialFastElementsKind(), 0, 0);
isolate->factory()->NewJSArray(object->GetElementsKind(), 0, 0);
return *result_array;
}