[cvs-nhc98] Enable sharing of traced methods that are cafs.

User olaf olaf@sparud.net
Thu, 19 Apr 2001 16:26:14 +0200 (CEST)


olaf: Thu Apr 19 16:26:14 CEST 2001

Update of /usr/src/master/nhc/src/compiler98
In directory hinken:/tmp/cvs-serv25197/src/compiler98

Modified Files:
	DbgTrans.hs 
Log Message:
Enable sharing of traced methods that are cafs.

Methods definitions were always transformed as functions, even when they had arity 0. The reason was that an instance or class definition may not contain definitions for any other variables than the class variables. Such additional definitions are necessary to implement the sharing of cafs.

Now the transformation distinguishes between the transformed definitions for the original variables and additional auxillary definitions. The latter are put just behind the instance/class definitions. 

The Mate trace file gets 1% smaller. Surprisingly runtime seems to slow down by 2-3%.