Chromium Code Reviews| Index: src/heap-inl.h |
| =================================================================== |
| --- src/heap-inl.h (revision 3546) |
| +++ src/heap-inl.h (working copy) |
| @@ -116,6 +116,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; |
| } |