Hacker News new | ask | show | jobs
by daemonize 5089 days ago
I think showing the actual disassembly would help people understand. it might lose some so maybe as a side bar.
1 comments

Showing some C-like pseudo-code would probably do the trick nicely.
p->m() ~= m(p) - e.g. the object is pushed as the first argument to the method.

The actual "m" is found by looking at the "p" class if it's non-virtual, and at the "v-table" in p if it's "virtual".

If "m" is static, no class lookup, or object v-table lookup is done, and the call is p->m() ~= m()