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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 3007603002: [VM generic function reification] Support generic functions in Invocation class. (Closed)
Patch Set: address review comment Created 3 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 | « runtime/vm/dart_entry.cc ('k') | runtime/vm/isolate_reload.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35025f1eed9ae6ba322701adc5044ef9d79974ca..7ac2516bb0dbdd158eb0b81dd613ffa6f3bd72dd 100644
--- a/runtime/vm/flow_graph_type_propagator.cc
+++ b/runtime/vm/flow_graph_type_propagator.cc
@@ -635,7 +635,7 @@ const AbstractType* CompileType::ToAbstractType() {
// VM-internal objects don't have a compile-type. Return dynamic-type
// in this case.
- if (cid_ < kInstanceCid) {
+ if ((cid_ < kInstanceCid) || (cid_ == kTypeArgumentsCid)) {
type_ = &Object::dynamic_type();
return type_;
}
@@ -880,7 +880,7 @@ CompileType ConstantInstr::ComputeType() const {
intptr_t cid = value().GetClassId();
- if (value().IsInstance()) {
+ if ((cid != kTypeArgumentsCid) && value().IsInstance()) {
// Allocate in old-space since this may be invoked from the
// background compiler.
return CompileType::Create(
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/isolate_reload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698