Chromium Code Reviews| Index: src/elements.cc |
| diff --git a/src/elements.cc b/src/elements.cc |
| index c8436b5cd684c84b01be76507a7a1bebc79fa1bf..a01a164ac1ad1937442f6c87c4509cf5179a8914 100644 |
| --- a/src/elements.cc |
| +++ b/src/elements.cc |
| @@ -1014,10 +1014,8 @@ class ElementsAccessorBase : public ElementsAccessor { |
| // HeapNumbers are, hence we have to write them again. |
|
Hannes Payer (out of office)
2016/04/01 11:34:39
Update this comment.
|
| // For Arrays with valid Smi length, we are sure to have no HeapNumber |
| // indices and thus we can skip this step. |
| - for (uint32_t i = 0; i < nof_indices; i++) { |
| - Object* index = combined_keys->get(i); |
| - combined_keys->set(i, index); |
| - } |
| + FIXED_ARRAY_WRITE_BARRIER(isolate->heap(), *combined_keys, 0, |
| + nof_indices); |
| } |
| } |