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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 10828319: Cleanup handling of NullType in type propagation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: runtime/vm/flow_graph_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 10775)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -445,6 +445,8 @@
// Propagated types are not set yet.
// More checks will possibly be eliminated during type propagation.
const bool eliminated = value->CompileTypeIsMoreSpecificThan(dst_type);
+ // Note: 'eliminated' is true for a null constant value, since its type,
+ // i.e. bottom type, is more specific than any type.
if (FLAG_trace_type_check_elimination) {
FlowGraphPrinter::PrintTypeCheck(owner()->parsed_function(),
token_pos,

Powered by Google App Engine
This is Rietveld 408576698