From 5563c9666c029e65e6967bc97e784d0e9fbf542e Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 25 Nov 2008 08:10:41 -0500 Subject: [PATCH] Internals: Smaller AstNode to save space/time --- src/V3Ast.cpp | 12 +++++------- src/V3Ast.h | 49 ++++++++++++++++++++----------------------------- 2 files changed, 25 insertions(+), 36 deletions(-) diff --git a/src/V3Ast.cpp b/src/V3Ast.cpp index ecb6b7e06..44491c39c 100644 --- a/src/V3Ast.cpp +++ b/src/V3Ast.cpp @@ -39,17 +39,15 @@ vluint64_t AstNode::s_editCntLast=0; // along with each userp, and thus by bumping this count we can make it look // as if we iterated across the entire tree to set all the userp's to null. int AstNode::s_cloneCntGbl=0; -int AstUserInUse::s_userCntGbl=0; // Hot cache line, leave adjacent -int AstUser2InUse::s_userCntGbl=0; // Hot cache line, leave adjacent -int AstUser3InUse::s_userCntGbl=0; // Hot cache line, leave adjacent -int AstUser4InUse::s_userCntGbl=0; // Hot cache line, leave adjacent -int AstUser5InUse::s_userCntGbl=0; // Hot cache line, leave adjacent +uint32_t AstUserInUse::s_userCntGbl=0; // Hot cache line, leave adjacent +uint32_t AstUser2InUse::s_userCntGbl=0; // Hot cache line, leave adjacent +uint32_t AstUser3InUse::s_userCntGbl=0; // Hot cache line, leave adjacent +uint32_t AstUser4InUse::s_userCntGbl=0; // Hot cache line, leave adjacent bool AstUserInUse::s_userBusy=false; bool AstUser2InUse::s_userBusy=false; bool AstUser3InUse::s_userBusy=false; bool AstUser4InUse::s_userBusy=false; -bool AstUser5InUse::s_userBusy=false; //###################################################################### // V3AstType @@ -885,7 +883,7 @@ void AstNode::dumpTreeFile(const string& filename, bool append) { if (logsp->fail()) v3fatalSrc("Can't write "<"; *logsp<<" to "<m_backp = this; }