This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r178079 - in /branches/pph/gcc/cp: ChangeLog.pp...


Author: gchare
Date: Thu Aug 25 17:59:20 2011
New Revision: 178079

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178079
Log:
Adding pph_preloaded_cache, a cache to hold all common nodes, as opposed
to having each stream's cache hold entries for those common nodes.

	* pph-streamer-in.c (pph_is_reference_marker): Handle PPH_RECORD_PREF.
	(pph_in_start_record): Likewise.
	* pph-streamer-out.c (pph_out_start_record): Add extra lookup in
	pph_preloaded_cache if lookup in current and included streams failed.
	* pph-streamer.c (pph_preloaded_cache): New.
	(pph_cache_preload): Change first parameter to a pph_pickle_cache*
	from a pph_stream*. Update all users.
	(pph_cache_init): New.
	(pph_init_preloaded_cache): New local variable.
	(pph_stream_open): Use pph_cache_init. Do not call pph_cache_preload.
	(pph_cache_get): Add a new pph_record_marker parameter which we
	use to determine to type of get to do. Update all users.
	* pph-streamer.h (enum pph_record_marker): Add PPH_RECORD_PREF.
	(pph_in_record_marker): Handle PPH_RECORD_PREF.
	* pph.c (pph_init): Call pph_init_preloaded_cache.

Modified:
    branches/pph/gcc/cp/ChangeLog.pph
    branches/pph/gcc/cp/pph-streamer-in.c
    branches/pph/gcc/cp/pph-streamer-out.c
    branches/pph/gcc/cp/pph-streamer.c
    branches/pph/gcc/cp/pph-streamer.h
    branches/pph/gcc/cp/pph.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]