Index: src/crankshaft/arm64/lithium-codegen-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
index 363d3dc129e788096565375514ec2452aaefd99b..b63b5fe49179c2a1fd5777b0241d3b4842a9c826 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -1532,6 +1532,7 @@ void LCodeGen::DoApplyArguments(LApplyArguments* instr) { |
InvokeFlag flag = CALL_FUNCTION; |
if (instr->hydrogen()->tail_call_mode() == TailCallMode::kAllow) { |
+ DCHECK(!info()->saves_caller_doubles()); |
// TODO(ishell): drop current frame before pushing arguments to the stack. |
flag = JUMP_FUNCTION; |
ParameterCount actual(x0); |
@@ -2869,6 +2870,7 @@ void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { |
bool is_tail_call = hinstr->tail_call_mode() == TailCallMode::kAllow; |
if (is_tail_call) { |
+ DCHECK(!info()->saves_caller_doubles()); |
ParameterCount actual(instr->arity()); |
// It is safe to use x3, x4 and x5 as scratch registers here given that |
// 1) we are not going to return to caller function anyway, |