Index: runtime/vm/intermediate_language_ia32.cc |
diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc |
index d292f311245c1522d3d839ab164fe8fd32dbab1d..39fc4756017f48e58c4ea28236828943276b4b32 100644 |
--- a/runtime/vm/intermediate_language_ia32.cc |
+++ b/runtime/vm/intermediate_language_ia32.cc |
@@ -1714,7 +1714,8 @@ 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. |
&label, |
@@ -2206,8 +2207,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. |
&label, |
@@ -2238,7 +2238,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. |
@@ -2270,7 +2270,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. |
@@ -2573,7 +2573,7 @@ class AllocateContextSlowPath : public SlowPathCode { |
__ Bind(entry_label()); |
LocationSummary* locs = instruction_->locs(); |
- locs->live_registers()->Remove(locs->out(0)); |
+ ASSERT(!locs->live_registers()->Contains(locs->out(0))); |
compiler->SaveLiveRegisters(locs); |
@@ -3613,7 +3613,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. |
@@ -5695,7 +5695,7 @@ class BoxIntegerSlowPath : 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. |