| Index: src/runtime/runtime-internal.cc
|
| diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc
|
| index 621f33547e80736b59fdb7d928a3c16ad1ed5fba..8a9672a3dfb229d66ce63714049e92aceb735339 100644
|
| --- a/src/runtime/runtime-internal.cc
|
| +++ b/src/runtime/runtime-internal.cc
|
| @@ -330,7 +330,13 @@ RUNTIME_FUNCTION(Runtime_AllocateInTargetSpace) {
|
| CHECK(size <= kMaxRegularHeapObjectSize);
|
| bool double_align = AllocateDoubleAlignFlag::decode(flags);
|
| AllocationSpace space = AllocateTargetSpace::decode(flags);
|
| - return *isolate->factory()->NewFillerObject(size, double_align, space);
|
| + HeapObject* result =
|
| + *isolate->factory()->NewFillerObject(size, double_align, space);
|
| + if (space == OLD_SPACE) {
|
| + DCHECK(*(isolate->heap()->OldSpaceAllocationLimitAddress()) != nullptr);
|
| + DCHECK(*(isolate->heap()->OldSpaceAllocationTopAddress()) != nullptr);
|
| + }
|
| + return result;
|
| }
|
|
|
| RUNTIME_FUNCTION(Runtime_AllocateSeqOneByteString) {
|
|
|