mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:07:11 +00:00
No description
f42a0ef25c
"x is Foo" will become getInterceptor(x).$isFoo Testing against a type with type arguments is still a giveup(). This test always works, but is not very fast. For instance, testing against an int should be "typeof x === 'number' && Math.floor(x) === x". Following an offline discussion with Karl, the plan is to rewrite 'is'-checks to more fine-grained tests in a CPS optimization pass, probably the type propagator. Concretely, we plan to introduce IR nodes like TypeOfTest, FloorTest, InstanceofTest, etc, which optimization phases can introduce under the right circumstances. That way, the code generation phase remains simple. BUG= R=karlklose@google.com Review URL: https://codereview.chromium.org//1144163004 |
||
---|---|---|
client | ||
docs/language | ||
pkg | ||
runtime | ||
samples | ||
samples-dev | ||
sdk | ||
site/try | ||
tests | ||
third_party | ||
tools | ||
utils | ||
.gitignore | ||
.mailmap | ||
AUTHORS | ||
CHANGELOG.md | ||
codereview.settings | ||
create_sdk.gyp | ||
dart.gyp | ||
DEPS | ||
LICENSE | ||
PATENTS | ||
PRESUBMIT.py | ||
README.dart-sdk | ||
README.md | ||
WATCHLISTS |
Dart
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Using Dart
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.
Contributing to Dart
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.
License
See LICENSE.