Chromium Code Reviews| Index: src/heap.cc |
| =================================================================== |
| --- src/heap.cc (revision 1380) |
| +++ src/heap.cc (working copy) |
| @@ -1631,6 +1631,7 @@ |
| int sinfo_size = 0; |
| if (sinfo != NULL) sinfo_size = sinfo->Serialize(NULL); |
| int obj_size = Code::SizeFor(body_size, sinfo_size); |
| + ASSERT((obj_size % Code::kCodeAlignment) == 0); |
|
Kasper Lund
2009/02/27 10:32:11
IsAligned(obj_size, Code::kCodeAlignment) would be
iposva
2009/02/27 11:08:28
Done.
|
| Object* result; |
| if (obj_size > MaxHeapObjectSize()) { |
| result = lo_space_->AllocateRawCode(obj_size); |