| Index: src/heap/spaces.h | 
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h | 
| index 6b0e38e93fd3b2da98c37f1a90205020046bb5c5..69a8d89fccba5c5aa06f91d2a1995870b70ef033 100644 | 
| --- a/src/heap/spaces.h | 
| +++ b/src/heap/spaces.h | 
| @@ -86,9 +86,6 @@ | 
| #define DCHECK_OBJECT_SIZE(size) \ | 
| DCHECK((0 < size) && (size <= Page::kMaxRegularHeapObjectSize)) | 
|  | 
| -#define DCHECK_CODEOBJECT_SIZE(size, code_space) \ | 
| -  DCHECK((0 < size) && (size <= code_space->AreaSize())) | 
| - | 
| #define DCHECK_PAGE_OFFSET(offset) \ | 
| DCHECK((Page::kObjectStartOffset <= offset) && (offset <= Page::kPageSize)) | 
|  | 
| @@ -843,7 +840,7 @@ | 
| // memory. This also applies to new space allocation, since objects are never | 
| // migrated from new space to large object space. Takes double alignment into | 
| // account. | 
| -  static const int kMaxRegularHeapObjectSize = 128 * KB * (i::kPointerSize / 4); | 
| +  static const int kMaxRegularHeapObjectSize = kPageSize - kObjectStartOffset; | 
|  | 
| static const int kAllocatableMemory = kPageSize - kObjectStartOffset; | 
|  | 
|  |