Gecko:DeCOMtamination Algorithm: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
#Select a candidate for DeCOMtamination (using Olmar or Oink)
This algorithm is being implemented in [http://blog.mozilla.com/tglek/2007/01/03/squashed-and-compiled/ Squash]
## Find all classes that inherit from ISupports
 
## Filter out classes scriptable via XPConnect. ''How to detect them?''
#Collapse the XPCom interface nsIClass class and the child nsClass that implements it.
## Order them by the number of descendants.
##Header Inference. Not all member variables are defined in public headers, find out what member variables are declared in nsClass that are not defined in public headers and can not use a forward declaration. Some options:
## Select one with the least descendants
#Collapse the XPCom interface nsIClass class and the child nsClass that implements it
##Not all member variables are defined in public headers, find out what member variables are declared in nsClass that are not defined in public headers and can not use a forward declaration. Some options:
##* Move Non-internal members into the base class, declare functions that use internal members as virtual. This also requires a factory method in the base class to return the derived class.
##* Move Non-internal members into the base class, declare functions that use internal members as virtual. This also requires a factory method in the base class to return the derived class.
##* Make headers public, try again?
##* Make headers public, try again?
Confirmed users
381

edits

Navigation menu