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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 2297033002: VM: Fix polymorphic inlining of recognized methods in the JIT. (Closed)
Patch Set: Created 4 years, 4 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 | « no previous file | runtime/vm/method_recognizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc
index 1601565197a82c56f0e799e6b9edc79f7e9a5056..d6942638b1c8dcfed0f895ffa76c5a2caeb417d4 100644
--- a/runtime/vm/flow_graph_inliner.cc
+++ b/runtime/vm/flow_graph_inliner.cc
@@ -1471,7 +1471,8 @@ bool PolymorphicInliner::CheckNonInlinedDuplicate(const Function& target) {
bool PolymorphicInliner::TryInliningPoly(intptr_t receiver_cid,
const Function& target) {
- if (owner_->inliner_->use_speculative_inlining() &&
+ if ((!FLAG_precompiled_mode ||
+ owner_->inliner_->use_speculative_inlining()) &&
TryInlineRecognizedMethod(receiver_cid, target)) {
owner_->inlined_ = true;
return true;
« no previous file with comments | « no previous file | runtime/vm/method_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698