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

Unified Diff: runtime/vm/precompiler.cc

Issue 2097413002: Improve inlining of recognized methods in AOT. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/flow_graph_inliner.cc ('k') | no next file » | 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 bb6175f6f36f0ea2ea482ffa19a4c93b92a82fb8..e1e9f89e884528a4fe9eff04429f590cca1148b3 100644
--- a/runtime/vm/precompiler.cc
+++ b/runtime/vm/precompiler.cc
@@ -2710,8 +2710,11 @@ bool PrecompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) {
// The return value of setjmp is the deopt id of the check instruction
// that caused the bailout.
done = false;
+ if (!use_speculative_inlining) {
+ // Assert that we don't repeatedly retry speculation.
+ UNREACHABLE();
+ }
#if defined(DEBUG)
- ASSERT(use_speculative_inlining);
for (intptr_t i = 0; i < inlining_black_list.length(); ++i) {
ASSERT(inlining_black_list[i] != val);
}
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698