Index: runtime/vm/intermediate_language_ia32.cc |
diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc |
index 83ecfc10ca3d567e5ffe633818473b2d76eb5cf4..8f2036bf1feaddebf4993ac48a32ead07ec5f2f1 100644 |
--- a/runtime/vm/intermediate_language_ia32.cc |
+++ b/runtime/vm/intermediate_language_ia32.cc |
@@ -655,7 +655,7 @@ LocationSummary* NativeCallComp::MakeLocationSummary() const { |
locs->set_temp(0, Location::RegisterLocation(EAX)); |
locs->set_temp(1, Location::RegisterLocation(ECX)); |
locs->set_temp(2, Location::RegisterLocation(EDX)); |
- locs->set_out(Location::RequiresRegister()); |
+ locs->set_out(Location::RegisterLocation(EAX)); |
return locs; |
} |
@@ -1401,9 +1401,14 @@ void AllocateContextComp::EmitNativeCode(FlowGraphCompiler* compiler) { |
LocationSummary* CloneContextComp::MakeLocationSummary() const { |
- return LocationSummary::Make(1, |
- Location::RequiresRegister(), |
- LocationSummary::kCall); |
+ const intptr_t kNumInputs = 1; |
+ const intptr_t kNumTemps = 0; |
+ LocationSummary* locs = new LocationSummary(kNumInputs, |
+ kNumTemps, |
+ LocationSummary::kCall); |
+ locs->set_in(0, Location::RegisterLocation(EAX)); |
+ locs->set_out(Location::RegisterLocation(EAX)); |
+ return locs; |
} |