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

Unified Diff: runtime/vm/precompiler.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intrinsifier.cc ('k') | runtime/vm/runtime_entry_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/precompiler.cc
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc
index 13c4595e5535617f29b3711ded14422758982ca5..1eaf79a917eb729e8daaee09eb3844eb244f92e1 100644
--- a/runtime/vm/precompiler.cc
+++ b/runtime/vm/precompiler.cc
@@ -2674,6 +2674,9 @@ bool PrecompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) {
sinking->DetachMaterializations();
}
+ // Replace bounds check instruction with a generic one.
+ optimizer.ReplaceArrayBoundChecks();
+
// Compute and store graph informations (call & instruction counts)
// to be later used by the inliner.
FlowGraphInliner::CollectGraphInfo(flow_graph, true);
« no previous file with comments | « runtime/vm/intrinsifier.cc ('k') | runtime/vm/runtime_entry_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698