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

Remove line number nodes and move the line number into statements

XMLWordPrintable

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

      For a large IR line number nodes take up a significant portion of the memory footprint. We should get rid of the LineNumberNode altogether and only put them in Statements. I have a patch out for this already.

      This has the added benefit that we don't need to do a lot of the special cases "look for the last statement, but it mustn't be a LineNumberNode", "pair function declaration vars with a linenumbernode" etc. So this both simplifies logic and footprint.
      ¨

            lagergren Marcus Lagergren
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: