| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 42367)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -756,7 +756,7 @@
|
|
|
| void Instruction::InheritDeoptTarget(Isolate* isolate, Instruction* other) {
|
| ASSERT(other->env() != NULL);
|
| - deopt_id_ = other->deopt_id_;
|
| + CopyDeoptIdFrom(*other);
|
| other->env()->DeepCopyTo(isolate, this);
|
| env()->set_deopt_id(deopt_id_);
|
| }
|
| @@ -765,7 +765,7 @@
|
| void BranchInstr::InheritDeoptTarget(Isolate* isolate, Instruction* other) {
|
| ASSERT(env() == NULL);
|
| Instruction::InheritDeoptTarget(isolate, other);
|
| - comparison()->SetDeoptId(GetDeoptId());
|
| + comparison()->SetDeoptId(*this);
|
| }
|
|
|
|
|
| @@ -819,7 +819,7 @@
|
| // Take other's environment from this definition.
|
| ASSERT(other->env() == NULL);
|
| other->SetEnvironment(env());
|
| - env_ = NULL;
|
| + ClearEnv();
|
| // Replace all uses of this definition with other.
|
| ReplaceUsesWith(other);
|
| // Reuse this instruction's SSA name for other.
|
| @@ -953,7 +953,7 @@
|
| ASSERT(instr->previous() == this);
|
|
|
| GotoInstr* goto_join = new GotoInstr(AsJoinEntry());
|
| - goto_join->deopt_id_ = parent->deopt_id_;
|
| + goto_join->CopyDeoptIdFrom(*parent);
|
| graph_entry->normal_entry()->LinkTo(goto_join);
|
| return true;
|
| }
|
|
|