commit | fe51bb1b14feb84247e54aef7170ca15c9d20f0a | [log] [tgz] |
---|---|---|
author | Harry Terkelsen <het@google.com> | Mon May 14 18:11:09 2018 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Mon May 14 18:11:09 2018 +0000 |
tree | b7f57431b6b0b208c35bef62f8609fb98dcf32c2 | |
parent | 90618bdcf372a4daef7a7a8a20aa4e22f66d87e9 [diff] |
Don't eagerly enqueue JS helpers when we see a native class We no longer eagerly enqueue defineProperty, toStringForNativeObject, or hashCodeForNativeObject. We only enqueue convertDartClosureToJS when needed. For the following 'Hello World' program, code size dropped from 33175 to 10066: ``` import 'dart:html'; main() { window.console.log('Hello World'); } ``` Change-Id: I47860b44b572f7a162fc95c9cccefdc9012810dd Reviewed-on: https://dart-review.googlesource.com/54500 Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Harry Terkelsen <het@google.com>
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.