[fpc-devel] Streamlining TVMTBuilder.generate_vmt after r41716 & r41884

Blaise at blaise.ru Blaise at blaise.ru
Fri Aug 2 21:27:19 CEST 2019


On 02.08.2019 21:36, Blaise at blaise.ru wrote:
> embed a copy of the body of insert_struct_hidden_paras into TVMTBuilder.generate_vmt, then merge those two procdef-member traversals into one (hey, performance!)

Would you guys oppose such a change? Then we could rename insert_struct_hidden_paras back to insert_record_hidden_paras :)

Aside from performance, I would like it for closures (for their nameless methods, the insertion of hidden parameters cannot be deferred until the VMT generation).

Also, handle_calling_convention would need to be changed not to indirectly rely on current_filepos, but I see that as a bonus: the trick of swapping current_filepos could be removed from its callers (namely, insert_record_hidden_paras).

-- 
βþ


More information about the fpc-devel mailing list