On 10/20/06, Slava Shakin <vyacheslav.p.shakin@gmail.com> wrote:
>
> I think a generic encoding interface exposed by a component could return
> for
> a given helper a mask of affected registers, description of input and
> return
> parameters, and should not produce any other side effects including VM
> calls
> or exception throwing. BTW implementing a similar description mechanism
> for
> traditional VM helpers will also help modularity. Instead of helpers, we
> could think about extensible magics framework where magics are
> expanded/encoded by responsible components.
Slava,
The functionality you described could be reasonable for very low-level and
platform+OS specific magics only like TLS access.
The unboxed Java magics IMO are much more flexible because they are
converted to the HIR by JIT translator.
--
Mikhail Fursov
|