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

cleanup CastNode construction

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 23
    • 23
    • hotspot
    • b04
    • generic
    • generic

      It is a common pattern to have:

      ```
      Node* n = new CastNode(...);
      n->set_req(control_node);
      ```

      We can modify the constructor to set the control node. It makes the code a little tidier.

            jcao Joshua Cao
            jcao Joshua Cao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: