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 |
256 void ConstantPropagator::VisitCheckEitherNonSmi( | 260 void ConstantPropagator::VisitCheckEitherNonSmi( |
257 CheckEitherNonSmiInstr* instr) { } | 261 CheckEitherNonSmiInstr* instr) { } |
258 | 262 |
259 | 263 |
260 void ConstantPropagator::VisitCheckArrayBound(CheckArrayBoundInstr* instr) { } | 264 void ConstantPropagator::VisitCheckArrayBound(CheckArrayBoundInstr* instr) { } |
261 | 265 |
262 | 266 |
263 void ConstantPropagator::VisitDeoptimize(DeoptimizeInstr* instr) { | 267 void ConstantPropagator::VisitDeoptimize(DeoptimizeInstr* instr) { |
264 // TODO(vegorov) remove all code after DeoptimizeInstr as dead. | 268 // TODO(vegorov) remove all code after DeoptimizeInstr as dead. |
265 } | 269 } |
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1685 GrowableArray<BitVector*> dominance_frontier; | 1689 GrowableArray<BitVector*> dominance_frontier; |
1686 graph_->ComputeDominators(&dominance_frontier); | 1690 graph_->ComputeDominators(&dominance_frontier); |
1687 | 1691 |
1688 if (FLAG_trace_constant_propagation && | 1692 if (FLAG_trace_constant_propagation && |
1689 FlowGraphPrinter::ShouldPrint(graph_->function())) { | 1693 FlowGraphPrinter::ShouldPrint(graph_->function())) { |
1690 FlowGraphPrinter::PrintGraph("After CP", graph_); | 1694 FlowGraphPrinter::PrintGraph("After CP", graph_); |
1691 } | 1695 } |
1692 } | 1696 } |
1693 | 1697 |
1694 } // namespace dart | 1698 } // namespace dart |
OLD | NEW |