5167ec93fc
Calculation of Class::NumTypeArguments() is reimplemented so that it does no require separate calculation of Class::NumOwnTypeArguments(). Number of own type arguments is no longer stored in Class, and has_pragma bit is moved into state_bits. This simplifies overall calculation and does not require to keep both num_type_arguments and num_own_type_arguments. This also allows us to add up to 15 more flag bits to Class. Change-Id: Iac7a751145fea7adb673ab9369eeb8eea5c5794d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105544 Reviewed-by: Régis Crelier <regis@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>