Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 89d97e925e5f94f354b2770f85a244da77d14138..5e46f2ac3f886d6fd18be28b7206224373f67cd9 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -1141,7 +1141,7 @@ static void SweepSpace(NewSpace* space) { |
// We give non-live objects a map that will correctly give their size, |
// since their existing map might not be live after the collection. |
int size = object->Size(); |
- if (size >= Array::kHeaderSize) { |
+ if (size >= ByteArray::kHeaderSize) { |
object->set_map(Heap::byte_array_map()); |
ByteArray::cast(object)->set_length(ByteArray::LengthFor(size)); |
} else { |