May I disagree? The dart2js
compiler does everything you'd expect from a compiler, including inlining, removing unused code, reusing constant expressions. There is a reason that the several examples of Javascript from dart2js perform better than the the native Javascript implementation -
https://plus.google.com/+KevinMoore314/posts/AZ67yWMgmdq