| commit | 0f472e54349da8ce506df223b664deaa7c33eab2 | [log] [tgz] |
|---|---|---|
| author | Leaf Petersen <leafp@google.com> | Fri Apr 17 23:37:19 2015 |
| committer | Leaf Petersen <leafp@google.com> | Fri Apr 17 23:37:19 2015 |
| tree | cbb6765110e7689dac5e5f2e2f6018fa773289d9 | |
| parent | 91564690b106f330fda826535f55f685705662b5 [diff] |
Handle calls through call methods This CL makes us recognizes calls through call methods as not requiring dynamic invokes. The analyzer seems to do the wrong thing on the return types though, so we'll still get casts on the results. Bug filed here: dartbug.com/23252 . This fixes #7. BUG= R=jacobr@google.com Review URL: https://codereview.chromium.org/1092183003
The Dart Dev Compiler (DDC) is an experimental development tool and transpiler. It is at a very early stage today. Its aims include the following:
DDC attempts to map to idiomatic EcmaScript 6 (ES6) as cleanly as possible. To do this while cohering to Dart semantics, DDC relies heavily on static type information, static checking, and runtime assertions.
DDC is intended to support a very large subset of Dart. If a program does not statically check, DDC will not result in valid generated code. Our goal is that a program execution (of a valid program) that runs without triggering runtime assertions should run the same on other Dart platforms under checked mode or production mode.
DDC does support untyped Dart code, but it will typically result in less readable and less efficient ES6 output.
DDC has the following project goals:
DDC is still in a very early stage as highlighted by our choice of ES6. ES6 itself is in active development across all modern browsers, but at various stages of support: https://kangax.github.io/compat-table/es6/
We are initially targeting the subset of ES6 supported in Chrome Canary.