| Index: runtime/vm/intermediate_language.cc
|
| diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
|
| index 3fd0394bfb05cba44683eb24e9c5c63250497c33..74d49d7f5f4a484ab0cd796a2dfb8dde86ab3299 100644
|
| --- a/runtime/vm/intermediate_language.cc
|
| +++ b/runtime/vm/intermediate_language.cc
|
| @@ -867,6 +867,16 @@ void JoinEntryInstr::InsertPhi(intptr_t var_index, intptr_t var_count) {
|
| }
|
|
|
|
|
| +void JoinEntryInstr::InsertPhi(PhiInstr* phi) {
|
| + // Lazily initialize the array of phis.
|
| + if (phis_ == NULL) {
|
| + phis_ = new ZoneGrowableArray<PhiInstr*>(1);
|
| + }
|
| + phis_->Add(phi);
|
| + phi_count_++;
|
| +}
|
| +
|
| +
|
| void JoinEntryInstr::RemoveDeadPhis() {
|
| if (phis_ == NULL) return;
|
|
|
|
|