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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 2035073002: Fix speculative inlining in precompilation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: update status 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/aot_optimizer.cc ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 98c184685cd5564ce476ff84af2a2e9bc66bb1ff..d1e0b857c40340aed606382fbb1d3d87c7f6896a 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -2806,6 +2806,9 @@ void EffectGraphVisitor::VisitConstructorCallNode(ConstructorCallNode* node) {
// (0) type-arguments, (1) length.
ASSERT(!LoadFieldInstr::IsFixedLengthArrayCid(result_cid) ||
arguments->length() == 2);
+ } else if (node->constructor().recognized_kind() !=
+ MethodRecognizer::kUnknown) {
+ call->set_result_cid(MethodRecognizer::ResultCid(node->constructor()));
}
ReturnDefinition(call);
return;
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698