Ignore:
Timestamp:
Oct 29, 2019 1:59:02 PM (6 weeks ago)
Author:
jwedin
Message:

Changed so that node count dumping is done on the root node instead of statically on ASTNode. Refactored some fields to no longer be static. Changed so that DSSets are given their id in the constructor. #5865

File:
1 edited

Legend:

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

    r13781 r13900  
    563563     * The dump will be saved in a file named <code>"node_count.txt"</code>.
    564564     */
    565     protected void dumpNodeCountFile()
     565    protected void dumpNodeCountFile(Root root)
    566566            throws IOException {
    567567        if (dumpMemoryUse) {
    568568            String file = "node_count.txt";
    569569            log.debug("Dumping node counts to '" + file + "'...");
    570             ASTNode.dumpNodeCount(file);
     570            root.dumpNodeCount(file);
    571571        }
    572572    }
     
    12231223        icd.flattenInstClassDecl(fc);
    12241224        dumpMemoryUseFile(fc, "flat", true);
    1225         dumpNodeCountFile();
     1225        dumpNodeCountFile(icd.root());
    12261226        icd = null;
    12271227        ASTNode.endStep("flatten()");
     
    25922592   
    25932593    private static ArrayList<ModuleContributor> CONTRIBUTORS = new ArrayList<>();
    2594     private static HashMap<Module, String> libraryNames = new HashMap<>();
     2594    private HashMap<Module, String> libraryNames = new HashMap<>();
    25952595   
    25962596    public abstract static class ModuleContributor {
Note: See TracChangeset for help on using the changeset viewer.