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

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

Issue 2149023002: VM: Array bounds checks that don't deoptimize for precompiled code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge 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_compiler.h » ('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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698