gem5/src/mem/ruby/slicc_interface
Nathan Binkert bc87fa30d7 ruby: get rid of RefCnt and Allocator stuff use base/refcnt.hh
This was somewhat tricky because the RefCnt API was somewhat odd.  The
biggest confusion was that the the RefCnt object's constructor that
took a TYPE& cloned the object.  I created an explicit virtual clone()
function for things that took advantage of this version of the
constructor.  I was conservative and used clone() when I was in doubt
of whether or not it was necessary.  I still think that there are
probably too many instances of clone(), but hopefully not too many.

I converted several instances of const MsgPtr & to a simple MsgPtr.
If the function wants to avoid the overhead of creating another
reference, then it should just use a regular pointer instead of a ref
counting ptr.

There were a couple of instances where refcounted objects were created
on the stack.  This seems pretty dangerous since if you ever
accidentally make a reference to that object with a ref counting
pointer, bad things are bound to happen.
2010-06-10 23:17:06 -07:00
..
AbstractCacheEntry.cc ruby: style pass 2010-03-22 18:43:53 -07:00
AbstractCacheEntry.hh ruby: get "using namespace" out of headers 2010-04-02 11:20:32 -07:00
AbstractController.hh ruby: get "using namespace" out of headers 2010-04-02 11:20:32 -07:00
AbstractEntry.cc ruby: style pass 2010-03-22 18:43:53 -07:00
AbstractEntry.hh ruby: get "using namespace" out of headers 2010-04-02 11:20:32 -07:00
AbstractProtocol.hh ruby: style pass 2010-03-22 18:43:53 -07:00
Controller.py ruby: Added copyright to many Ruby *.py files 2010-03-21 21:22:20 -07:00
Message.hh ruby: get rid of RefCnt and Allocator stuff use base/refcnt.hh 2010-06-10 23:17:06 -07:00
NetworkMessage.hh ruby: get rid of RefCnt and Allocator stuff use base/refcnt.hh 2010-06-10 23:17:06 -07:00
RubySlicc_ComponentMapping.cc ruby: style pass 2010-03-22 18:43:53 -07:00
RubySlicc_ComponentMapping.hh ruby: style pass 2010-03-22 18:43:53 -07:00
RubySlicc_includes.hh ruby: style pass 2010-03-22 18:43:53 -07:00
RubySlicc_Profiler_interface.cc ruby: get "using namespace" out of headers 2010-04-02 11:20:32 -07:00
RubySlicc_Profiler_interface.hh ruby: get "using namespace" out of headers 2010-04-02 11:20:32 -07:00
RubySlicc_Util.hh ruby: style pass 2010-03-22 18:43:53 -07:00
SConscript ruby: Ruby changes required to use the python config system 2010-01-29 20:29:19 -08:00