New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support class-virtual and interface-virtual methods. #24

Closed
kekyo opened this Issue Dec 10, 2017 · 8 comments

Comments

Projects
None yet
1 participant
@kekyo
Copy link
Owner

kekyo commented Dec 10, 2017

No description provided.

@kekyo

This comment has been minimized.

Copy link
Owner

kekyo commented Dec 10, 2017

  • Implement vtables.
  • Implement safe casts (castclass opcode) and track runtime types.
@kekyo

This comment has been minimized.

Copy link
Owner

kekyo commented Jan 29, 2018

  • Basic vtable/vptr implemented at 037f128 (.NET Fringe Japan 2018 demonstration)
  • Only class type (Not supported interface type, will implement...)
@kekyo

This comment has been minimized.

Copy link
Owner

kekyo commented Feb 17, 2018

First success for interface's delayed invoker. 4d6a27f

@kekyo kekyo added the difficult label Feb 17, 2018

@kekyo

This comment has been minimized.

Copy link
Owner

kekyo commented Feb 17, 2018

TODO:

  • Support castclass opcode.
  • Verify valuetype's handling.
  • Support reassign newslot's overrided method at existing interface type.
    • Newslot's overrided has to make new vptr space.
interface IHoge
{
    int Foo(int a, int b);
}

class HogeBase : IHoge
{
    int IHoge.Foo(int a, int b) { return a + b; }
}

class HogeDerived : HogeBase, IHoge
{
    // newslot's overrided
    int IHoge.Foo(int a, int b) { return a * b; }
}
@kekyo

This comment has been minimized.

Copy link
Owner

kekyo commented Oct 28, 2018

6ca7f7b

  • Class virtual (vptr0) handling finished.

kekyo added a commit that referenced this issue Nov 19, 2018

@kekyo

This comment has been minimized.

Copy link
Owner

kekyo commented Nov 19, 2018

mote tests required.

@kekyo

This comment has been minimized.

Copy link
Owner

kekyo commented Dec 7, 2018

857e730

Value type verified 🎉

@kekyo

This comment has been minimized.

Copy link
Owner

kekyo commented Dec 7, 2018

9679f54

Multiple implemented interface tested.

@kekyo kekyo closed this Dec 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment