Evaluation order for binary operators can be improved

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b115
    • generic
    • generic

      JDK-8026137 fixed evaluation order to conform to the ECMA specification, but there are more cases where we can over-go strict order:

       - when loading right hand side from a local slot
       - when right hand side is a unary/binary/ternary operator whose children have no side effects
       - when left hand side already is JS-primitive or does not have to be converted to JS-primitive (already partially implemented)

      Also, currently string is treated as object type while it is a primitive type as far as ECMA/JS is concerned.

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: