IDL: Support runtime enabled overloads affecting Function.length

Before this CL, a runtime enabled overload with fewer required arguments
than any non-runtime enabled overload resulted in an error from the IDL
compiler, since such an overload would change the correct Function.length
value (runtime) in a way that wasn't supported.

Since such overloads are now becoming a reality, add support for them by
generating a simple function that returns the correct Function.length
value depending on whether features are enabled.

BUG=437885

Review URL: https://codereview.chromium.org/751223003

git-svn-id: svn://svn.chromium.org/blink/trunk@186393 bbb929c8-8fbe-4397-9dbb-9b2b20218538
9 files changed
tree: 8bdc979bad314d118ba0f2c324ad0a577b07f4f5
  1. third_party/