Commit 681ac897 authored by cbruni's avatar cbruni Committed by Commit bot

[keys] Don't omit write barrier after std::sort

BUG=

Review-Url: https://codereview.chromium.org/1991173002
Cr-Commit-Position: refs/heads/master@{#36412}
parent ba8ecfd5
......@@ -17139,6 +17139,8 @@ void Dictionary<Derived, Shape, Key>::CollectKeysTo(
EnumIndexComparator<Derived> cmp(static_cast<Derived*>(raw_dict));
Smi** start = reinterpret_cast<Smi**>(array->GetFirstElementAddress());
std::sort(start, start + array_size, cmp);
FIXED_ARRAY_ELEMENTS_WRITE_BARRIER(keys->isolate()->heap(), *array, 0,
array->length());
}
for (int i = 0; i < array_size; i++) {
......
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