| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/flow_graph_optimizer.h" | 5 #include "vm/flow_graph_optimizer.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/cha.h" | 8 #include "vm/cha.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 4603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4614 if (!setter.IsNull()) { | 4614 if (!setter.IsNull()) { |
| 4615 OS::Print(" setter usage count: %" Pd "\n", setter.usage_counter()); | 4615 OS::Print(" setter usage count: %" Pd "\n", setter.usage_counter()); |
| 4616 } | 4616 } |
| 4617 if (!getter.IsNull()) { | 4617 if (!getter.IsNull()) { |
| 4618 OS::Print(" getter usage count: %" Pd "\n", getter.usage_counter()); | 4618 OS::Print(" getter usage count: %" Pd "\n", getter.usage_counter()); |
| 4619 } | 4619 } |
| 4620 } | 4620 } |
| 4621 field.set_is_unboxing_candidate(false); | 4621 field.set_is_unboxing_candidate(false); |
| 4622 if (Compiler::IsBackgroundCompilation()) { | 4622 if (Compiler::IsBackgroundCompilation()) { |
| 4623 // Delay deoptimization of dependent code to the code installation time. | 4623 // Delay deoptimization of dependent code to the code installation time. |
| 4624 // The invalidation of the background compilation result occurs only |
| 4625 // when the deoptimization is triggered at code installation. |
| 4624 flow_graph()->deoptimize_dependent_code().Add(&field); | 4626 flow_graph()->deoptimize_dependent_code().Add(&field); |
| 4625 } else { | 4627 } else { |
| 4626 field.DeoptimizeDependentCode(); | 4628 field.DeoptimizeDependentCode(); |
| 4627 } | 4629 } |
| 4628 } else { | 4630 } else { |
| 4629 FlowGraph::AddToGuardedFields(flow_graph_->guarded_fields(), &field); | 4631 FlowGraph::AddToGuardedFields(flow_graph_->guarded_fields(), &field); |
| 4630 } | 4632 } |
| 4631 } | 4633 } |
| 4632 } | 4634 } |
| 4633 | 4635 |
| (...skipping 4153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8787 | 8789 |
| 8788 // Insert materializations at environment uses. | 8790 // Insert materializations at environment uses. |
| 8789 for (intptr_t i = 0; i < exits_collector_.exits().length(); i++) { | 8791 for (intptr_t i = 0; i < exits_collector_.exits().length(); i++) { |
| 8790 CreateMaterializationAt( | 8792 CreateMaterializationAt( |
| 8791 exits_collector_.exits()[i], alloc, *slots); | 8793 exits_collector_.exits()[i], alloc, *slots); |
| 8792 } | 8794 } |
| 8793 } | 8795 } |
| 8794 | 8796 |
| 8795 | 8797 |
| 8796 } // namespace dart | 8798 } // namespace dart |
| OLD | NEW |