| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 39381)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -326,6 +326,14 @@
|
| }
|
|
|
|
|
| +Instruction* InitStaticFieldInstr::Canonicalize(FlowGraph* flow_graph) {
|
| + const bool is_initialized =
|
| + (field_.value() != Object::sentinel().raw()) &&
|
| + (field_.value() != Object::transition_sentinel().raw());
|
| + return is_initialized ? NULL : this;
|
| +}
|
| +
|
| +
|
| EffectSet LoadStaticFieldInstr::Dependencies() const {
|
| return StaticField().is_final() ? EffectSet::None() : EffectSet::All();
|
| }
|
|
|