Index: src/builtins/builtins-internal.cc |
diff --git a/src/builtins/builtins-internal.cc b/src/builtins/builtins-internal.cc |
index 39b1ca77695a6342bbbf6dd513054556312dc774..83a50ce6eebd26c7b168a6fa40c92bc6639fb84b 100644 |
--- a/src/builtins/builtins-internal.cc |
+++ b/src/builtins/builtins-internal.cc |
@@ -75,8 +75,8 @@ void Builtins::Generate_CopyFastSmiOrObjectElements( |
int max_elements = FixedArrayBase::GetMaxLengthForNewSpaceAllocation(kind); |
Label if_newspace(&assembler), if_oldspace(&assembler); |
assembler.Branch( |
- assembler.UintPtrLessThan( |
- length, assembler.IntPtrOrSmiConstant(max_elements, mode)), |
+ assembler.UintPtrOrSmiLessThan( |
+ length, assembler.IntPtrOrSmiConstant(max_elements, mode), mode), |
&if_newspace, &if_oldspace); |
assembler.Bind(&if_newspace); |