Chromium Code Reviews
DescriptionCanonicalize TestCidsInstr
This reduces Uri.toString() in dart2js from 514 lines to 345 lines.
(lines are instructions or code comments).
I noticed the following:
Uri.toString() has a statement: sb.write('//');
This was lined two levels deep, with effectively the following code
for the inlining of interoplateSingle:
TestCids on constant '//':
_OneByteString -> return '//';
Uri -> fallthrough;
Message -> fallthrough;
else deopt;
if ('//' is not Uri) deopt;
String s = Uri.toString('//');
if (s is !_OneByteString) deopt;
return s;
With canonicalization of TestCidsInstr, this whole thing clears up
eliminate interoplateSingle.
R=fschneider@google.com
Committed: https://github.com/dart-lang/sdk/commit/cceadc20d9de81ce23b5557e584e4245dc61f822
Patch Set 1 #
Total comments: 9
Patch Set 2 : #
Messages
Total messages: 9 (3 generated)
|
|||||||||||||||||||||||||||||||||||||