Index: runtime/vm/intermediate_language_x64.cc |
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc |
index 9f87ca9873bfe48a4150676fe99328dd54cdf423..2b71a16016adbd56166d99b10e4a7d85e3d4a488 100644 |
--- a/runtime/vm/intermediate_language_x64.cc |
+++ b/runtime/vm/intermediate_language_x64.cc |
@@ -5186,6 +5186,8 @@ LocationSummary* InvokeMathCFunctionInstr::MakeLocationSummary(Zone* zone, |
(recognized_kind() == MethodRecognizer::kMathDoublePow) ? 3 : 1; |
LocationSummary* result = new(zone) LocationSummary( |
zone, InputCount(), kNumTemps, LocationSummary::kCall); |
+ ASSERT(R13 != CALLEE_SAVED_TEMP); |
+ ASSERT(((1 << R13) & CallingConventions::kCalleeSaveCpuRegisters) != 0); |
result->set_temp(0, Location::RegisterLocation(R13)); |
result->set_in(0, Location::FpuRegisterLocation(XMM2)); |
if (InputCount() == 2) { |