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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 27192005: Add new style of string interpolation optimization: new nodes, working constant folding. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('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 28731)
+++ runtime/vm/flow_graph_type_propagator.cc (working copy)
@@ -466,6 +466,11 @@
}
+CompileType CompileType::String() {
+ return FromAbstractType(Type::ZoneHandle(Type::StringType()), kNonNullable);
+}
+
+
intptr_t CompileType::ToCid() {
if ((cid_ == kNullCid) || (cid_ == kDynamicCid)) {
return cid_;
@@ -877,6 +882,12 @@
}
+CompileType StringInterpolateInstr::ComputeType() const {
+ // TODO(srdjan): Do better and determine if it is a one or two byte string.
+ return CompileType::String();
+}
+
+
CompileType* StoreInstanceFieldInstr::ComputeInitialType() const {
return value()->Type();
}
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698