Chromium Code Reviews
DescriptionSimplify dart2js StringBuffer constructor to be initializer-only.
The constructor is now small enough to always inline and the interpolation is usually constant-folded from the default argument, leading to the elimination of the silly looking store:
t1 = new P.StringBuffer("");
t1._contents = "";
-->
t1 = new P.StringBuffer("");
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=42212
Patch Set 1 #Patch Set 2 : add type to flattenString to improve type inference #
Messages
Total messages: 5 (1 generated)
|
||||||||||||||||||||||||||||