Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8015971

Linking Function.call() could be made clever

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • None

      Linking the built-in Function.call() could be made clever, as it could immediately link to the function being called.

      fn.call(this, args...) ends up being a dyn:call(Function.call, fn, this, args...). It could be linked just as dyn:call(fn, this, args...) is; it'd just need to drop the first argument, and use a guard checking if the original two arguments are indeed Function.call and fn.

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: