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

Unified Diff: runtime/vm/aot_optimizer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/aot_optimizer.h ('k') | runtime/vm/assembler_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/aot_optimizer.cc
diff --git a/runtime/vm/aot_optimizer.cc b/runtime/vm/aot_optimizer.cc
index 97b51f8f13896dd26dcae26fcf22e997450fe6ac..a193dcfc0ef72a6939864661bab421e2d471ce60 100644
--- a/runtime/vm/aot_optimizer.cc
+++ b/runtime/vm/aot_optimizer.cc
@@ -2743,26 +2743,4 @@ bool AotOptimizer::TryInlineInstanceSetter(InstanceCallInstr* instr,
}
-void AotOptimizer::ReplaceArrayBoundChecks() {
- for (BlockIterator block_it = flow_graph_->reverse_postorder_iterator();
- !block_it.Done();
- block_it.Advance()) {
- ForwardInstructionIterator it(block_it.Current());
- current_iterator_ = ⁢
- for (; !it.Done(); it.Advance()) {
- CheckArrayBoundInstr* check = it.Current()->AsCheckArrayBound();
- if (check != NULL) {
- GenericCheckBoundInstr* new_check = new(Z) GenericCheckBoundInstr(
- new(Z) Value(check->length()->definition()),
- new(Z) Value(check->index()->definition()),
- check->deopt_id());
- flow_graph_->InsertBefore(check, new_check,
- check->env(), FlowGraph::kEffect);
- current_iterator()->RemoveCurrentFromGraph();
- }
- }
- }
-}
-
-
} // namespace dart
« no previous file with comments | « runtime/vm/aot_optimizer.h ('k') | runtime/vm/assembler_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698