--- Dan Sugalski <[EMAIL PROTECTED]> wrote:
> 'Kay, here's a question to ponder. Should the op dispatch
> loop handle 
> argument decoding, or should that be left to the opcode
> functions?

[good analysis of trade-off's snipped]

> At the moment I'm leaning towards the functions doing
> their own decoding, 
> as it seems likely to be faster. (Though we'd be
> duplicating the decoding 
> logic everywhere, and bigger's reasonably bad) Possibly
> mandating shadow 
> functions for each opcode function, where the shadow does
> the decoding and 
> calls the real functions which take real things rather
> than our registers.
> 
> Opinions anyone?

I don't see where shadow functions are really necessary -
after all, no one has ever complained that you can't do 

pp_chomp(sv); /* or pp_add(sv1, sv2), for that matter */

in Perl 5. Quite frankly the shadow thing sounds like a
bundle of unnecessary function calls.

But that's just my opinion, feel free to disagree.

-- BKS

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to