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