[dart2js] Ensure all top/raw type predicates go through DartTypes.

Conceptually, this makes sense because a type is not intrinsically top
or bottom or raw, but only in the context of a type system. This also
makes these predicates much more maintainable and puts them in a form
identical to the one at the RTI level.

Change-Id: I83154a82cef6cbaa9c4d0f27cb95f01473c1e015
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149049
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Stephen Adams <sra@google.com>

https://dart.googlesource.com/sdk/+/bbb8923ebb1a077296d6fe1fcad14e497e6cd963
1 file changed
tree: b356cbf5216fe6328ea2dbc3f35eb74022407e27
  1. commits.json