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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: