9a74bcef97
This is the first part of using the new encodings of MethodInvocation, PropertyGet and PropertySet in dart2js. In this CL the new visitors are implemented in static_type.dart. This change is done by refactoring the existing implementation into helpers and new registration methods that can be used by both the old and the new encoding but lends itself to take advance of the new encoding. The new encoding is not enabled until all of dart2js has been migrated to the new encoding. The refactoring is intentionally not changing the outcome of the static_type.dart to make it easier to detect accidental regressions introduced by the migration. Change-Id: I93d2033969c33d4c7a5957ad7a6c0b1cdf47fe6f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184220 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Mayank Patke <fishythefish@google.com>