| Index: src/heap-inl.h
|
| ===================================================================
|
| --- src/heap-inl.h (revision 8778)
|
| +++ src/heap-inl.h (working copy)
|
| @@ -153,6 +153,11 @@
|
| }
|
|
|
|
|
| +MaybeObject* Heap::CopyFixedDoubleArray(FixedDoubleArray* src) {
|
| + return CopyFixedDoubleArrayWithMap(src, src->map());
|
| +}
|
| +
|
| +
|
| MaybeObject* Heap::AllocateRaw(int size_in_bytes,
|
| AllocationSpace space,
|
| AllocationSpace retry_space) {
|
| @@ -368,11 +373,7 @@
|
|
|
| int size_in_words = byte_size / kPointerSize;
|
|
|
| - if ((dst < src) || (dst >= (src + size_in_words))) {
|
| - ASSERT((dst >= (src + size_in_words)) ||
|
| - ((OffsetFrom(reinterpret_cast<Address>(src)) -
|
| - OffsetFrom(reinterpret_cast<Address>(dst))) >= kPointerSize));
|
| -
|
| + if ((dst < src) || (dst >= (src + byte_size))) {
|
| Object** src_slot = reinterpret_cast<Object**>(src);
|
| Object** dst_slot = reinterpret_cast<Object**>(dst);
|
| Object** end_slot = src_slot + size_in_words;
|
|
|