Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 453239b62c6517a567eed450a1a204223dfa6100..fd37f4c205c6abd028ce931023fd560ba135c2aa 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -3453,7 +3453,7 @@ void HAllocate::HandleSideEffectDominator(GVNFlag side_effect, |
} |
} |
- if (new_dominator_size > isolate()->heap()->MaxRegularSpaceAllocationSize()) { |
+ if (new_dominator_size > Page::kMaxRegularHeapObjectSize) { |
if (FLAG_trace_allocation_folding) { |
PrintF("#%d (%s) cannot fold into #%d (%s) due to size: %d\n", |
id(), Mnemonic(), dominator_allocate->id(), |