Chromium Code Reviews| Index: src/heap-inl.h |
| =================================================================== |
| --- src/heap-inl.h (revision 3473) |
| +++ src/heap-inl.h (working copy) |
| @@ -129,6 +129,12 @@ |
| #endif |
| Object* result = map_space_->AllocateRaw(Map::kSize); |
| if (result->IsFailure()) old_gen_exhausted_ = true; |
| +#ifdef DEBUG |
| + if (!result->IsFailure()) { |
| + // Maps have their own alignment. |
| + CHECK((OffsetFrom(result) & kMapAlignmentMask) == kHeapObjectTag); |
| + } |
| +#endif |
| return result; |
| } |