| Index: runtime/vm/flow_graph_optimizer.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_optimizer.cc (revision 12267)
|
| +++ runtime/vm/flow_graph_optimizer.cc (working copy)
|
| @@ -614,8 +614,10 @@
|
| // Detach environment from the original instruction because it can't
|
| // deoptimize.
|
| call->set_env(NULL);
|
| - LoadInstanceFieldInstr* load =
|
| - new LoadInstanceFieldInstr(field, call->ArgumentAt(0)->value());
|
| + LoadVMFieldInstr* load = new LoadVMFieldInstr(
|
| + call->ArgumentAt(0)->value(),
|
| + field.Offset(),
|
| + AbstractType::ZoneHandle(field.type()));
|
| call->ReplaceWith(load, current_iterator());
|
| RemovePushArguments(call);
|
| return true;
|
|
|