Commit 2856afcc authored by Creddy's avatar Creddy Committed by Commit Bot

Change type elements kind in empty array boilerplate desc from PACKED_ELEMENTS...

Change type elements kind in empty array boilerplate desc from PACKED_ELEMENTS to PACKED_SMI_ELEMENTS

The default array elements kind should be PACKED_SMI_ELEMENTS (top of type lattice)  to allow type
transitions to other types.

Change-Id: Icda969d0553628ef75d6c26bf6f32fef46512f0f
Reviewed-on: https://chromium-review.googlesource.com/1188133Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Chandan Reddy <chandanreddy@google.com>
Cr-Commit-Position: refs/heads/master@{#55382}
parent ee062769
......@@ -532,7 +532,7 @@ bool Heap::CreateInitialMaps() {
ArrayBoilerplateDescription::cast(obj)->set_constant_elements(
roots.empty_fixed_array());
ArrayBoilerplateDescription::cast(obj)->set_elements_kind(
ElementsKind::PACKED_ELEMENTS);
ElementsKind::PACKED_SMI_ELEMENTS);
}
set_empty_array_boilerplate_description(
ArrayBoilerplateDescription::cast(obj));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment