Index: runtime/vm/intermediate_language_mips.cc |
diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc |
index a4a33bd7d54ed244013da27999b58ebad4678e48..6165796b33dca1aed7ff839366207444596a91c2 100644 |
--- a/runtime/vm/intermediate_language_mips.cc |
+++ b/runtime/vm/intermediate_language_mips.cc |
@@ -1729,7 +1729,7 @@ class StoreInstanceFieldSlowPath : public SlowPathCode { |
const ExternalLabel label(stub.EntryPoint()); |
LocationSummary* locs = instruction_->locs(); |
- locs->live_registers()->Remove(locs->out(0)); |
+ locs->live_registers()->Remove(locs->temp(0)); |
compiler->SaveLiveRegisters(locs); |
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. |
@@ -2134,7 +2134,7 @@ class BoxDoubleSlowPath : public SlowPathCode { |
const ExternalLabel label(stub.EntryPoint()); |
LocationSummary* locs = instruction_->locs(); |
- locs->live_registers()->Remove(locs->out(0)); |
+ ASSERT(!locs->live_registers()->Contains(locs->out(0))); |
compiler->SaveLiveRegisters(locs); |
compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. |