On 24 October 2013 19:34, William ML Leslie <[email protected]> wrote: > I also wanted to say about this is that it probably /always/ makes > better sense to embed a vtable pointer into the reference for values > that require RTTI or virtual dispatch, rather than require an > additional indirection or a branch.
... especially in a language like Java, where direct references into the object usually take one of two forms: 0. Accesses into an array - which can be mitigated for various wrappers of arrays like ArrayList and String where the array field itself is mutable, and usually of fixed type anyway. 1. Instance methods, which can perform the mask to determine the real 'this' in the method prelude. Sorry. Home time... -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered under copyright law. You absolutely may reproduce any part of it in accordance with the copyright law of the nation you are reading this in. Any attempt to deny you those rights would be illegal without prior contractual agreement. _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
