| Index: runtime/vm/intermediate_language_ia32.cc
|
| diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc
|
| index 3b4fe76e1fc8178f868242eb87af84061d032f04..559389a354dbb824e05bc2f266e592138db2a6ac 100644
|
| --- a/runtime/vm/intermediate_language_ia32.cc
|
| +++ b/runtime/vm/intermediate_language_ia32.cc
|
| @@ -3809,6 +3809,9 @@ void LoadCodeUnitsInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| } else {
|
| // If the value cannot fit in a smi then allocate a mint box for it.
|
| Register temp = locs()->temp(0).reg();
|
| + // Temp register needs to be manually preserved on allocation slow-path.
|
| + locs()->live_registers()->Add(locs()->temp(0), kUnboxedInt32);
|
| +
|
| ASSERT(temp != result);
|
| __ MoveRegister(temp, result);
|
| __ SmiTag(result);
|
|
|