b4773ae496
As part of making lightweight isolates work in JIT, we will need to ensure that whenever a new static field is loaded, it will get a new slot on every isolate and the possibly initial static value is set in all isolates's field state. In order to achieve this we first move field registration out of Field::New*() - to the place where the field is created and the initial static field value is known. In a future CL we will make a field registration be performed on all isolates in a group. TEST=CL is internal refactoring, existing test coverage. Issue https://github.com/dart-lang/sdk/issues/36097 Change-Id: I802ae55b841be173733dbd0ad3dbffeebd5c1889 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/173260 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>