87eb37a19a
For members of program structure that we cache in the ObjectStore we try to provide only read-only access in the public API. The lazy population is encapculated in the ObjectStore class. Use the same mechanism we use for core/isolate/... library members also for the `dart:_internal` members. Furthermore cache the Symbol._name field in the ObjectStore to avoid expensive lookup as well as avoid an extra TLS lookup. TEST=Existing test suite. Change-Id: I299faceb39f20576e23244c71c58d698f80f80c7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208180 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>