| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 13be88aab40866eb51eea1c02fa6bf7308e10aa8..4a827fef176fd57cafb2c929bb834cd229737aaa 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -741,6 +741,17 @@ AlwaysAllocateScope::~AlwaysAllocateScope() {
|
| }
|
|
|
|
|
| +LinearAllocationScope::LinearAllocationScope() {
|
| + HEAP->linear_allocation_scope_depth_++;
|
| +}
|
| +
|
| +
|
| +LinearAllocationScope::~LinearAllocationScope() {
|
| + HEAP->linear_allocation_scope_depth_--;
|
| + ASSERT(HEAP->linear_allocation_scope_depth_ >= 0);
|
| +}
|
| +
|
| +
|
| #ifdef DEBUG
|
| void VerifyPointersVisitor::VisitPointers(Object** start, Object** end) {
|
| for (Object** current = start; current < end; current++) {
|
|
|