Melvin Smith <[EMAIL PROTECTED]> wrote:
> op invoke(STR, INT)
> PMC sub
> if($2 == 0) {
> sub = lookup $1
> $2 = sub # store the ref in the immediate data of the instruction
This doesn't really work:
- byte-code is readonly, if mmap()ed and when running function core or
CGoto
- for prederefed cores, the assign instruction needs predereferencing
- doesn't work with JIT
- There is no means to invalidate the sub, when something changed.
> The other question is: does this little trick apply to other things that do
> lookups by name with constant strings?
These lookups are in C-code mostly, so no.
> -Melvin
leo