Index: runtime/vm/intermediate_language_arm64.cc |
diff --git a/runtime/vm/intermediate_language_arm64.cc b/runtime/vm/intermediate_language_arm64.cc |
index e2fb39fc8dd00ee53058ff0050e5b4c5c238a430..2ce696c1aa87af7c4a132f2d802501592b5e3688 100644 |
--- a/runtime/vm/intermediate_language_arm64.cc |
+++ b/runtime/vm/intermediate_language_arm64.cc |
@@ -1614,7 +1614,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. |
@@ -1984,7 +1984,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. |
@@ -2016,7 +2016,7 @@ class BoxFloat32x4SlowPath : 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. |
@@ -2048,7 +2048,7 @@ class BoxFloat64x2SlowPath : 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. |
@@ -3203,7 +3203,7 @@ class BoxInt32x4SlowPath : 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. |