[vm/aot] Separate out stream methods from the Elf class.

Introduce an internal StreamingWriteStream wrapper and use that instead.

Also add more ELF-defined constants and use those appropriately.

Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-release-simarm_x64-try,vm-kernel-precomp-linux-product-x64-try
Change-Id: I2bd34ebac60e789aea82c8f064c59351e2c55dd3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149291
Reviewed-by: Clement Skau <cskau@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>

https://dart.googlesource.com/sdk/+/f89d930e38e2e5b5bc421e04cf37ba454ab7542c
1 file changed
tree: b2d2280f76a066a996283760ed3ae1a5e581247d
  1. commits.json