There is provided a method for laying out objects corresponding to an
object-oriented application. The method including the step of determining
whether any two given objects have opposing directionalities. A virtual
function table pointer is shared between the two given objects, and the
directionalities of the two given objects are changed to mixed, when the
two given objects have opposing directionalities.