[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    Re: [cfe-dev] Adding support for multiple non-virtual inheritance for -cxx-abi microsoft
From:       Reid Kleckner <rnk () google ! com>
Date:       2013-04-08 18:08:11
Message-ID: CACs=tyKZQdH9UcqfOCYfSAA3S_nc8SokRvqz35nhUKQf23Q7fQ () mail ! gmail ! com
[Download RAW message or body]

On Mon, Apr 8, 2013 at 2:02 PM, Timur Iskhodzhanov <timurrrr@google.com> wrote:
> 2013/4/8 John McCall <rjmccall@apple.com>:
>> I also find it curious that MSVC uses a thunk for member pointers, since
>> the required this-adjustment is already plainly expressible in the member
>> pointer value.
> Me too actually.
> Reid, wdyt?

I think it allows them to avoid the union between non-virtual methods
and virtual methods.  Seems a bit cleaner and more obvious to me, but
it has tradeoffs in terms of code size at the call site and the number
of conditional vs. indirect branches that you have to do:
indirect to thunk and indirect through vtable, vs conditional between
two indirect calls
_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic