I like 'sourced'. FWIW I think 'native' is what's broken, I could stick
with 'interpreted' since whether or not the script has been parsed yet,
it's something we could interpret whereas a native function never is.
One thing to keep in mind, from the JIT's perspective, is that we're
starting to see use cases where it might make sense to split JSFunction
into two things, to extend it without bloating every closure. I.e.
'nargs', 'flags', 'native', 'script', 'env', 'source' etc should all be
in a separate gcthing. So hopefully whatever naming scheme we choose
wouldn't prohibit that. Especially if we're going to keep source *and*
bytecode lying around.
-David
On 5/21/2012 9:18 PM, Luke Wagner wrote:
> Currently, the adjective we use is "scripted". This name instead of "interpreted" would have a nice coherence in, e.g.,
>
> if (fun->isScripted())
> ... = fun->script();
>