Changeset 13998


Ignore:
Timestamp:
Nov 8, 2019 10:26:29 AM (11 days ago)
Author:
jwedin
Message:

Removed the unused interface NodeCountExtra. Updated the documentation for the node count functionality. #5865

Location:
branches/dev-jw-2590/Compiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-jw-2590/Compiler/ModelicaCompiler/src/jastadd/ModelicaCompiler.jrag

    r13967 r13998  
    560560    /**
    561561     * Save a dump of the node class counts of an AST (or several).
    562      *
     562     * This only seems to work when using an older jdk version.
     563     * We have verified that it works with jdk 8 but it doesn't seem to work properly with jdk 11.
    563564     * The dump will be saved in a file named <code>"node_count.txt"</code>.
    564565     */
  • branches/dev-jw-2590/Compiler/ModelicaMiddleEnd/src/jastadd/Profiling.jrag

    r13986 r13998  
    401401    }
    402402
    403     private static NodeCountExtra[] ASTNode.nodeCountExtra = new NodeCountExtra[] { };
    404 
    405     public interface NodeCountExtra {
    406         public void count(ASTNode n);
    407         public void printResult(CodeStream out);
    408     }
    409 
    410403    /**
    411404     * Output a list of the number of instances of each node class.
     
    419412        for (ASTNodeCounter c : list)
    420413            out.println(c);
    421         for (NodeCountExtra nce : nodeCountExtra)
    422             nce.printResult(out);
    423414        out.close();
    424415    }
     
    426417    public void ASTNode.buildNodeCount(Map<Class,ASTNodeCounter> map) {
    427418        addToNodeCount(map, getClass(), Profiler.getNodeSize(this, false), Profiler.getNodeSize(this, true));
    428         for (NodeCountExtra nce : nodeCountExtra)
    429             nce.count(this);
    430419       
    431420        for (ASTNode n : profilingChildren())
Note: See TracChangeset for help on using the changeset viewer.