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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 10580003: Temporary fix for static type check elimination in new compiler. Enable tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « no previous file | 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
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 8811)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -364,6 +364,11 @@
// being type checked.
return true;
}
+ if (static_type.IsType() &&
+ Class::Handle(static_type.type_class()).HasTypeArguments()) {
+ // TODO(regis): Special tests need to be added.
+ return false;
+ }
Error& malformed_error = Error::Handle();
if (!dst_type.IsMalformed() &&
static_type.IsSubtypeOf(dst_type, &malformed_error)) {
« no previous file with comments | « no previous file | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698