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/constant_propagator.h" | 5 #include "vm/constant_propagator.h" |
6 | 6 |
7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
8 #include "vm/flow_graph_builder.h" | 8 #include "vm/flow_graph_builder.h" |
9 #include "vm/flow_graph_compiler.h" | 9 #include "vm/flow_graph_compiler.h" |
10 #include "vm/flow_graph_range_analysis.h" | 10 #include "vm/flow_graph_range_analysis.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 void ConstantPropagator::VisitGuardFieldClass(GuardFieldClassInstr* instr) { } | 247 void ConstantPropagator::VisitGuardFieldClass(GuardFieldClassInstr* instr) { } |
248 | 248 |
249 | 249 |
250 void ConstantPropagator::VisitGuardFieldLength(GuardFieldLengthInstr* instr) { } | 250 void ConstantPropagator::VisitGuardFieldLength(GuardFieldLengthInstr* instr) { } |
251 | 251 |
252 | 252 |
253 void ConstantPropagator::VisitCheckSmi(CheckSmiInstr* instr) { } | 253 void ConstantPropagator::VisitCheckSmi(CheckSmiInstr* instr) { } |
254 | 254 |
255 | 255 |
256 void ConstantPropagator::VisitGenericCheckBound(GenericCheckBoundInstr* instr) { | |
257 } | |
258 | |
259 | |
260 void ConstantPropagator::VisitCheckEitherNonSmi( | 256 void ConstantPropagator::VisitCheckEitherNonSmi( |
261 CheckEitherNonSmiInstr* instr) { } | 257 CheckEitherNonSmiInstr* instr) { } |
262 | 258 |
263 | 259 |
264 void ConstantPropagator::VisitCheckArrayBound(CheckArrayBoundInstr* instr) { } | 260 void ConstantPropagator::VisitCheckArrayBound(CheckArrayBoundInstr* instr) { } |
265 | 261 |
266 | 262 |
267 void ConstantPropagator::VisitDeoptimize(DeoptimizeInstr* instr) { | 263 void ConstantPropagator::VisitDeoptimize(DeoptimizeInstr* instr) { |
268 // TODO(vegorov) remove all code after DeoptimizeInstr as dead. | 264 // TODO(vegorov) remove all code after DeoptimizeInstr as dead. |
269 } | 265 } |
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 GrowableArray<BitVector*> dominance_frontier; | 1685 GrowableArray<BitVector*> dominance_frontier; |
1690 graph_->ComputeDominators(&dominance_frontier); | 1686 graph_->ComputeDominators(&dominance_frontier); |
1691 | 1687 |
1692 if (FLAG_trace_constant_propagation && | 1688 if (FLAG_trace_constant_propagation && |
1693 FlowGraphPrinter::ShouldPrint(graph_->function())) { | 1689 FlowGraphPrinter::ShouldPrint(graph_->function())) { |
1694 FlowGraphPrinter::PrintGraph("After CP", graph_); | 1690 FlowGraphPrinter::PrintGraph("After CP", graph_); |
1695 } | 1691 } |
1696 } | 1692 } |
1697 | 1693 |
1698 } // namespace dart | 1694 } // namespace dart |
OLD | NEW |