This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gofrontend-dev] Go patch committed: Implement method values in reflect package


Ian Lance Taylor <iant@google.com> writes:

> This patch to the Go frontend and libgo implements method values in the
> reflect package.  Working with method values and reflect now works
> correctly, at least on x86.

Can you give me a test case?  I can try it on a few other architectures
tomorrow.

Cheers,
mwh

> This changes the type signature for type methods in the reflect
> package to match the gc compiler.  That in turn required changing the
> reflect package to mark method values with a new flag, as previously
> they were detected by the type signature.  The MakeFunc support needed
> to create a function that takes a value and passes a pointer to the
> method, since all methods take pointers.  It also needed to create a
> function that holds a receiver value.  And the recover code needed to
> handle these new cases.  Bootstrapped and ran Go testsuite on
> x86_64-unknown-linux-gnu.  Committed to mainline and 4.8 branch.
>
> Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]