| Index: src/heap/mark-compact.cc
|
| diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
|
| index beea67080242adcee529bacb06357c408b750f6d..521be78e2eff9976cd0db5d49e27ca5888c958db 100644
|
| --- a/src/heap/mark-compact.cc
|
| +++ b/src/heap/mark-compact.cc
|
| @@ -2373,10 +2373,11 @@
|
| const int header = TransitionArray::kProtoTransitionHeaderSize;
|
| int new_number_of_transitions = 0;
|
| for (int i = 0; i < number_of_transitions; i++) {
|
| - Object* cell = prototype_transitions->get(header + i);
|
| - if (!WeakCell::cast(cell)->cleared()) {
|
| + Object* cached_map = prototype_transitions->get(header + i);
|
| + if (IsMarked(cached_map)) {
|
| if (new_number_of_transitions != i) {
|
| - prototype_transitions->set(header + new_number_of_transitions, cell);
|
| + prototype_transitions->set(header + new_number_of_transitions,
|
| + cached_map, SKIP_WRITE_BARRIER);
|
| }
|
| new_number_of_transitions++;
|
| }
|
|
|