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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 966773002: VM: Better type propagation for string objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comment and fixed MaybeNumber Created 5 years, 10 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 | runtime/vm/intermediate_language.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
===================================================================
--- runtime/vm/flow_graph_type_propagator.cc (revision 44089)
+++ runtime/vm/flow_graph_type_propagator.cc (working copy)
@@ -182,6 +182,12 @@
}
if (!CheckClassInstr::IsImmutableClassId(cid)) {
+ if ((cid == kOneByteStringCid) || (cid == kTwoByteStringCid)) {
+ SetTypeOf(defn, ZoneCompileType::Wrap(CompileType::String()));
+ PropagateRecursive((compare->kind() == Token::kEQ_STRICT) ?
+ branch->true_successor() : branch->false_successor());
+ RollbackTo(rollback_point);
+ }
return;
}
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698