Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 43c0a8b36d3ab5c486de394a6f8d17815bbd8982..aa8b3d091d20d383297a7b0ee752468c01318c8a 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -273,9 +273,9 @@ RUNTIME_FUNCTION(Runtime_AllocateInTargetSpace) { |
CONVERT_SMI_ARG_CHECKED(flags, 1); |
CHECK(IsAligned(size, kPointerSize)); |
CHECK(size > 0); |
- CHECK(size <= kMaxRegularHeapObjectSize); |
bool double_align = AllocateDoubleAlignFlag::decode(flags); |
AllocationSpace space = AllocateTargetSpace::decode(flags); |
+ CHECK(size <= kMaxRegularHeapObjectSize || space == LO_SPACE); |
return *isolate->factory()->NewFillerObject(size, double_align, space); |
} |