| Index: src/heap/spaces.h
|
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h
|
| index 69a8d89fccba5c5aa06f91d2a1995870b70ef033..5f6a83f4f70475616c25e580b03c3cb04b4cbc27 100644
|
| --- a/src/heap/spaces.h
|
| +++ b/src/heap/spaces.h
|
| @@ -86,6 +86,9 @@ class Isolate;
|
| #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))
|
|
|
| @@ -840,7 +843,9 @@ class Page : public MemoryChunk {
|
| // 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 = kPageSize - kObjectStartOffset;
|
| + // TODO(hpayer): This limit should be way smaller but we currently have
|
| + // short living objects >256K.
|
| + static const int kMaxRegularHeapObjectSize = 600 * KB;
|
|
|
| static const int kAllocatableMemory = kPageSize - kObjectStartOffset;
|
|
|
|
|