Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: runtime/vm/constant_propagator.cc

Issue 2152683003: Revert "VM: Array bounds checks that don't deoptimize for precompiled code." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698