Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index bf558f7154c1ed584704d86e4a0b3f297975cb3b..2f99e15d0d1606499bae7d1fa5f0a566494c8103 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -5727,8 +5727,8 @@ void SingleArgumentConstructorCommon(CodeStubAssembler* assembler, |
int element_size = |
IsFastDoubleElementsKind(elements_kind) ? kDoubleSize : kPointerSize; |
int max_fast_elements = |
- (Page::kMaxRegularHeapObjectSize - FixedArray::kHeaderSize - |
- JSArray::kSize - AllocationMemento::kSize) / |
+ (kMaxRegularHeapObjectSize - FixedArray::kHeaderSize - JSArray::kSize - |
+ AllocationMemento::kSize) / |
element_size; |
assembler->Branch( |
assembler->SmiAboveOrEqual( |