Index: src/arm64/builtins-arm64.cc |
diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc |
index 31b61f479d8676b8ca809ee8d43bc698e21d20bf..9c5e3e90455f3af6ba89294c8dc08b0e34a6904f 100644 |
--- a/src/arm64/builtins-arm64.cc |
+++ b/src/arm64/builtins-arm64.cc |
@@ -1246,7 +1246,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
// TODO(jbramley): Check that the stack usage here is safe. |
__ Sub(x10, jssp, x10); |
// Check if the arguments will overflow the stack. |
- __ Cmp(x10, Operand(argc, LSR, kSmiShift - kPointerSizeLog2)); |
+ __ Cmp(x10, Operand::UntagSmiAndScale(argc, kPointerSizeLog2)); |
__ B(gt, &enough_stack_space); |
// There is not enough stack space, so use a builtin to throw an appropriate |
// error. |