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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 2894953002: Support inlining of calls where type arguments are passed to generic functions. (Closed)
Patch Set: Merge branch 'master' into slave Created 3 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
Index: runtime/vm/flow_graph_type_propagator.cc
diff --git a/runtime/vm/flow_graph_type_propagator.cc b/runtime/vm/flow_graph_type_propagator.cc
index fe3f74222035aec52e969c3e02d3af13226a1ca3..775d646b7ba7ffc3008fe80ae944c3c99dc87fdb 100644
--- a/runtime/vm/flow_graph_type_propagator.cc
+++ b/runtime/vm/flow_graph_type_propagator.cc
@@ -980,9 +980,9 @@ CompileType RelationalOpInstr::ComputeType() const {
}
-CompileType CurrentContextInstr::ComputeType() const {
- return CompileType(CompileType::kNonNullable, kContextCid,
- &Object::dynamic_type());
+CompileType SpecialParameterInstr::ComputeType() const {
+ intptr_t cid = kind() == kContext ? kContextCid : kTypeArgumentsCid;
Vyacheslav Egorov (Google) 2017/07/03 16:15:43 maybe make a switch here? Then we would know whic
regis 2017/07/05 18:41:29 Done.
+ return CompileType(CompileType::kNonNullable, cid, &Object::dynamic_type());
}

Powered by Google App Engine
This is Rietveld 408576698