67b725986b
I noticed it when I was in there for LUB, so I figured I'd do some spring cleaning. Changes are: - Consolidate duplicate code in namedParameterTypes, normalParameterTypes, and optionalParameterTypes into a shared _forEachParameterType() method. - Consolidate duplicate code in isSubtypeOf() and isMoreSpecificThan() into a shared _testTypeRelation() method that is parameterized over the specific relation. - Also some other small-scale changes in the relation code. R=paulberry@google.com Review URL: https://codereview.chromium.org/1662873002 .