| Index: src/heap/spaces.h
|
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h
|
| index 7d379490d9323f61f0d607453d5e8d11d76fab81..f9523e54520ca52c0c993b62bcee650d8bb77930 100644
|
| --- a/src/heap/spaces.h
|
| +++ b/src/heap/spaces.h
|
| @@ -1470,9 +1470,12 @@ class AllocationInfo {
|
| public:
|
| AllocationInfo() : original_top_(nullptr), top_(nullptr), limit_(nullptr) {}
|
| AllocationInfo(Address top, Address limit)
|
| - : original_top_(top), top_(top), limit_(limit) {}
|
| + : original_top_(top), top_(top), limit_(limit) {
|
| + DCHECK_LE(top_, limit_);
|
| + }
|
|
|
| void Reset(Address top, Address limit) {
|
| + DCHECK_LE(top, limit);
|
| original_top_ = top;
|
| set_top(top);
|
| set_limit(limit);
|
| @@ -2122,6 +2125,8 @@ class PagedSpace : public Space {
|
| // address denoted by top in allocation_info_.
|
| inline HeapObject* AllocateLinearly(int size_in_bytes);
|
|
|
| + void PrintStackFramesAndDie();
|
| +
|
| // Generic fast case allocation function that tries aligned linear allocation
|
| // at the address denoted by top in allocation_info_. Writes the aligned
|
| // allocation size, which includes the filler size, to size_in_bytes.
|
|
|