a7d87375a3
A `RecordsCodegen` class collects the instantiated classes for representing records of various shapes in the codegen queue. Later, this is used to emit functions that test a record type by checking the shape (using `instanceof`) and then testing the field values. Future work will consider how to make this work with deferred loading. Change-Id: I497a80b0db3a10129f15838eaa72c3a2320632b8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279759 Commit-Queue: Stephen Adams <sra@google.com> Reviewed-by: Mayank Patke <fishythefish@google.com>
Package js_runtime:
This package contains code that is shared between the dart2js compiler and the dart2js runtime libraries.
Important: all code under the lib/synced/ must be kept in sync with the
runtime at all times (in sdk/lib/_internal/js_runtime/lib/synced). The
test/in_sync_test.dart test verifies this.