[dart/vm] Annotate _ByteDataView to reduce code size

Rationale:
Slava's excellent code size difference tools enables
very fine-grained analysis of the impact of changes.
This CL improves Flutter Gallery size by 18984 bytes.

+------------------------------------------------------+-----------------------------------------+--------------+
| Library                                              | Method                                  | Diff (Bytes) |
+------------------------------------------------------+-----------------------------------------+--------------+
| package:flutter/src/painting/decoration_image.dart   | paintImage                              |         +936 |
| dart:ui                                              | Paint.toString                          |         +592 |
| package:flutter/src/material/tab_indicator.dart      | _UnderlinePainter.paint                 |         +552 |
| package:flutter/src/material/progress_indicator.dart | _CircularProgressIndicatorPainter.paint |         +308 |
| package:flutter/src/services/message_codecs.dart     | StandardMessageCodec.readValueOfType    |         +172 |
| package:flutter/src/services/message_codecs.dart     | StandardMessageCodec.readValue          |          +60 |
| package:flutter/src/services/message_codecs.dart     | StandardMethodCodec.decodeEnvelope      |          +56 |
| package:flutter/src/services/message_codecs.dart     | StandardMethodCodec.decodeMethodCall    |          +56 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| package:flutter/src/widgets/semantics_debugger.dart  | _paint                                  |         -484 |
| dart:ui                                              | Paint.maskFilter=                       |         -568 |
| dart:ui                                              | Paint.colorFilter=                      |         -572 |
| package:flutter/src/painting/borders.dart            | paintBorder                             |         -656 |
| dart:ui                                              | _unpackPointerDataPacket                |         -744 |
| dart:ui                                              | Paint.isAntiAlias=                      |         -808 |
| dart:ui                                              | Paint.strokeCap=                        |         -812 |
| dart:ui                                              | Paint.filterQuality=                    |         -812 |
| dart:ui                                              | Paint.isAntiAlias                       |         -972 |
| dart:ui                                              | Paint.invertColors                      |         -976 |
+------------------------------------------------------+-----------------------------------------+--------------+
Total change -18984 bytes.

https://github.com/dart-lang/sdk/issues/35323

Change-Id: Iceeb820ed506794e1ac3e7c17f8f116a22bca742
Reviewed-on: https://dart-review.googlesource.com/c/90861
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Aart Bik <ajcbik@google.com>
1 file changed
tree: 32ae5e5a44dee3be780a0375c8f8b733ef5063c7
  1. .github/
  2. build/
  3. client/
  4. docs/
  5. pkg/
  6. runtime/
  7. samples/
  8. samples-dev/
  9. sdk/
  10. tests/
  11. third_party/
  12. tools/
  13. utils/
  14. .clang-format
  15. .gitattributes
  16. .gitconfig
  17. .gitignore
  18. .gn
  19. .mailmap
  20. .packages
  21. .vpython
  22. AUTHORS
  23. BUILD.gn
  24. CHANGELOG.md
  25. codereview.settings
  26. CONTRIBUTING.md
  27. dartdoc_options.yaml
  28. DEPS
  29. LICENSE
  30. PATENTS
  31. PRESUBMIT.py
  32. README.dart-sdk
  33. README.md
  34. WATCHLISTS
README.md

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.

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.

License & patents

See LICENSE and PATENTS.