Reland "[dart2js] Enable flag (canary -> shipping) to intern dart type values."

This reverts commit 0e1d24ae80d2411578ce07dac34a03028cae9d98.

Reason for revert: Interning bug fixed by

Original change's description:
> Revert "[dart2js] Enable flag (canary -> shipping) to intern dart type values."
> This reverts commit e833510bc5b34c3d6437265e42f34abae1f9f022.
> Reason for revert: breaks many tests in G3, see b/242822389
> Original change's description:
> > [dart2js] Enable flag (canary -> shipping) to intern dart type values.
> >
> > Change-Id: Iebac3a7c57665eccd100146f892b891a4591f554
> > Reviewed-on:
> > Reviewed-by: Stephen Adams <>
> > Commit-Queue: Stephen Adams <>
> Change-Id: I9b2be8fc119f84f33181245cdfce416d13660daf
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on:
> Reviewed-by: Ilya Yanok <>
> Reviewed-by: Alexander Thomas <>
> Commit-Queue: Ilya Yanok <>

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: I51336c2e53dd58fed6216e9a5c818f05e8795a8f
Reviewed-by: Nate Biggs <>
Bot-Commit: Rubber Stamper <>
Commit-Queue: Nate Biggs <>
3 files changed
tree: f2b7dff202e40e9e698636f5832074d9f5e7d497
  1. .dart_tool/
  2. .github/
  3. benchmarks/
  4. build/
  5. docs/
  6. pkg/
  7. runtime/
  8. samples/
  9. samples-dev/
  10. sdk/
  11. tests/
  12. third_party/
  13. tools/
  14. utils/
  15. .clang-format
  16. .gitattributes
  17. .gitconfig
  18. .gitignore
  19. .gn
  20. .mailmap
  21. .style.yapf
  22. .vpython
  26. codereview.settings
  28. DEPS
  30. OWNERS
  33. README.dart-sdk
  35. sdk_args.gni


A client-optimized language for fast apps on any platform

Dart is:

  • Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.

  • Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.

  • Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.

Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:

  • Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.

  • Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).

Dart platforms illustration

License & patents

Dart is free and open source.


Using Dart

Visit to learn more about the language, tools, and to find codelabs.

Browse for more packages and libraries contributed by the community and the Dart team.

Our API reference documentation is published at, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).

Building Dart

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.

Contributing to Dart

The easiest way to contribute to Dart is to file issues.

You can also contribute patches, as described in Contributing.