[CFE] Low-level coverage tool

This/these tools can later be integrated into other tools/tests if we
want to.

For now it is "external" tools where one can for instance see that
running our strong tests leaves quite a bit to be desired in regards
to constant transformation coverage:

package:front_end/src/fasta/kernel/constant_collection_builders.dart
Misses: [950, 956, 960, 970, 1002, 1014, 1015, 1025, 1334, 1340, 1431, 1441, 1782, 1792, 2593, 2599, 2624, 2949, 2977, 2984, 3001, 3036, 3044, 3067, 3080, 3124, 3153, 3157, 3167, 3270, 3280, 3301, 3315, 3354, 3963, 3973, 4050, 4063, 4089, 4099, 4194, 4204, 4275, 4288, 4314, 4324, 4797, 4803, 4828, 5889, 5899, 5979, 6007, 6014, 6031, 6065, 6073, 6096, 6108, 6152, 6180, 6184, 6194, 6296, 6306, 6327, 6341, 6378, 7267, 7273, 7277, 7287, 7318, 7337, 7363, 7368, 7377, 7387, 7401, 7411, 7768, 7774, 7865, 7875, 8232, 8242, 8566, 8572, 8605, 8667, 8677, 8753, 8766, 8787, 8797, 8897, 8907, 8977, 8990, 9011, 9021, 9760, 9788, 9795, 9812, 9854, 9875, 9898, 9910, 9919, 9961, 9989, 9993, 10003, 10105, 10115, 10127, 10149, 10181, 10201]
Not compiled: [[2291 - 2403], [3724 - 3834]]

package:front_end/src/fasta/kernel/constant_evaluator.dart
Misses: [4301, 4340, 4371, 4408, 7793, 7822, 7841, 7848, 7910, 7918, 7958, 8102, 8937, 8983, 9000, 9017, 9030, 9105, 9119, 9165, 9424, 9459, 9492, 9600, 9622, 9670, 9705, 12639, 12657, 19070, 19088, 23629, 23928, 23953, 27554, 27562, 27610, 27623, 28624, 28681, 28698, 29046, 29103, 29120, 29471, 30091, 30138, 30210, 30243, 30284, 30738, 30747, 35250, 37816, 37842, 39028, 39708, 40583, 40660, 40859, 40949, 41212, 41248, 41291, 41340, 41386, 41396, 41658, 41687, 41708, 41736, 41761, 41778, 41803, 41839, 41862, 41872, 41883, 41935, 41948, 41975, 42248, 42274, 42636, 42659, 42761, 42791, 42809, 42825, 43014, 43032, 43048, 43452, 43481, 43563, 43572, 43577, 48621, 48670, 48681, 48704, 48745, 48769, 48773, 49496, 50581, 50623, 50713, 50831, 50843, 50859, 50875, 50879, 51141, 51168, 51199, 51207, 51240, 51259, 51286, 51302, 51310, 51318, 51334, 51424, 51486, 51738, 51771, 51793, 51826, 51842, 51850, 51858, 51874, 51917, 51981, 52047, 52096, 52127, 52159, 52247, 52260, 52269, 52305, 52337, 52389, 52402, 52449, 52465, 52475, 52522, 52530, 52569, 52632, 52660, 52710, 52723, 52764, 52780, 52790, 52833, 52841, 52876, 53178, 53414, 53457, 53474, 53498, 53518, 53550, 53559, 53569, 53857, 53882, 53920, 53958, 53995, 54035, 54072, 54236, 54287, 54313, 54354, 54434, 54447, 54483, 54491, 54512, 54689, 54696, 54741, 54790, 54817, 54859, 54895, 54919, 54925, 54933, 54975, 55063, 55076, 55153, 55169, 55179, 55226, 55234, 55275, 55883, 55971, 55984, 56057, 56073, 56083, 56127, 56135, 56176, 56429, 56509, 56522, 56586, 56602, 56612, 56652, 56660, 56697, 56897, 56977, 56990, 57054, 57070, 57080, 57123, 57131, 57168, 57720, 57800, 57813, 57877, 57893, 57903, 57943, 57951, 57988, 58046, 58085, 58092, 58140, 58163, 58223, 58249, 58285, 58307, 58322, 58348, 58374, 58410, 58432, 58447, 58473, 58499, 58535, 58557, 58563, 58572, 58635, 58667, 58726, 58797, 58810, 58838, 62482, 62498, 62505, 62511, 62531, 62536, 62544, 62569, 62585, 62591, 62631, 62698, 62727, 62767, 62795, 62823, 62849, 62854, 62859, 62887, 62900, 62910, 62935, 62941, 62966, 63002, 63034, 63046, 63070, 63081, 63124, 63156, 63214, 63280, 63293, 63312, 63317, 63333, 63416, 63520, 63548, 64132, 64233, 64246, 64256, 64374, 65680, 65776, 65789, 65797, 65802, 65986, 66082, 66095, 66103, 66108, 66139, 66197, 66227, 68515, 68884, 68958, 69039, 69083, 69113, 69153, 69197, 69253, 69495, 69606, 69645, 69655, 69755, 69765, 69867, 70039, 70054, 70057, 70067, 70165, 70182, 70272, 70378, 70442, 70540, 70615, 71144, 71187, 71227, 71278, 71571, 71576, 71581, 71942, 72011, 72049, 72189, 72240, 72283, 72334, 73668, 73720, 73800, 73834, 73907, 73912, 73933, 73956, 73984, 74017, 74032, 74078, 74093, 74107, 74134, 74175, 74357, 74400, 74413, 74432, 74436, 74456, 74477, 74521, 74540, 74818, 74861, 74874, 74898, 74918, 74936, 74961, 74974, 75117, 75677, 75693, 75711, 75727, 75812, 75828, 75840, 75856, 76609, 76621, 76713, 76729, 76747, 76763, 76852, 76868, 76880, 76896, 77022, 77038, 77050, 77066, 77781, 77839, 77860, 77886, 77938, 77984, 77999, 78834, 78856, 78866, 79352, 79395, 79409, 79447, 79461, 79495, 79892, 79921, 80247, 82403, 82446, 82456, 82459, 82475, 82485, 82573, 82589, 82618, 82632, 82648, 82658, 82700, 82788, 82798, 82905, 82921, 82950, 82964, 82980, 82990, 83029, 85628, 87178, 87195, 87236, 87253, 87294, 87311, 87352, 87369, 87590, 87614, 87631, 87673, 87693, 87712, 87729, 87750, 87769, 87787, 87808, 87827, 87845, 87865, 87884, 87908, 87972, 89297, 90734, 91335, 91363, 91615, 91643, 95325, 95341]
Not compiled: [[2884 - 3935], [4838 - 5709], [5717 - 5764], [5717 - 5764], [6120 - 6260], [6265 - 6330], [6547 - 6616], [6621 - 6690], [6695 - 7565], [8172 - 8766], [9749 - 10256], [10261 - 10332], [10337 - 10565], [10570 - 10649], [12669 - 12775], [15251 - 15850], [22509 - 22639], [22644 - 22832], [22837 - 22965], [23163 - 23291], [32272 - 32540], [32545 - 32690], [32945 - 33199], [33706 - 33737], [33801 - 33832], [34401 - 34563], [36370 - 36615], [36620 - 36744], [37854 - 37926], [40336 - 40462], [43608 - 44490], [44495 - 46198], [46743 - 46814], [47292 - 47433], [58871 - 61188], [61193 - 62190], [66274 - 68208], [70625 - 70783], [78009 - 78569], [79465 - 79493], [80342 - 80520], [80717 - 81197], [85711 - 86339], [89503 - 89864], [91027 - 91185], [91677 - 91731], [91879 - 92361], [92928 - 93577], [93773 - 93882], [94073 - 94130], [94857 - 94883], [94959 - 95053]]

package:front_end/src/fasta/kernel/constant_int_folder.dart
Misses: [801, 1452, 1462, 1516, 1529, 1541, 1551, 2244, 2268, 2280, 2289, 2327, 2337, 2385, 2659, 2673, 2769, 2783, 2824, 2841, 2883, 2897, 2939, 2953, 2994, 3008, 3049, 3063, 3104, 3118, 3217, 3231, 3279, 3294, 3300, 3306, 3313, 3319, 3344, 3396, 3406, 3425, 3463, 3473, 3492, 3531, 3541, 3560, 3663, 3673, 3722]
Not compiled: [[4076 - 4143], [4148 - 4258], [4263 - 4318], [4323 - 4420], [4425 - 4545], [4550 - 4885], [4890 - 5320], [5325 - 7041], [7046 - 7449]]
Change-Id: Ic2334d46ebadfa062f93d7c074d7a1a1ee5f9ffc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162721
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
7 files changed
tree: da90ef948ea4c629a125eca7bddf93dea8ccae23
  1. .dart_tool/
  2. .github/
  3. benchmarks/
  4. build/
  5. client/
  6. docs/
  7. pkg/
  8. runtime/
  9. samples/
  10. samples-dev/
  11. sdk/
  12. tests/
  13. third_party/
  14. tools/
  15. utils/
  16. .clang-format
  17. .gitattributes
  18. .gitconfig
  19. .gitignore
  20. .gn
  21. .mailmap
  22. .packages
  23. .style.yapf
  24. .vpython
  25. AUTHORS
  26. BUILD.gn
  27. CHANGELOG.md
  28. codereview.settings
  29. CONTRIBUTING.md
  30. DEPS
  31. LICENSE
  32. PATENT_GRANT
  33. PRESUBMIT.py
  34. README.dart-sdk
  35. README.md
  36. sdk_args.gni
  37. WATCHLISTS
README.md

Dart

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.

See LICENSE and PATENT_GRANT.

Using Dart

Visit dart.dev to learn more about the language, tools, getting started, and more.

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

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.