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

Fix order of function method arguments to be (callee, thisObject)

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • core-libs
    • None

      Currently script functions are compiled to methods that take (Object thisObject, ScriptFunction callee) as first two arguments. However, actual callsites have these arguments in reverse order and we need to permute MethodHandle arguments for function that expect both this-object and callee arguments.

      Parameters of generated methods should be changed to match callsite arguments.

            attila Attila Szegedi
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: