> I think decafJVM::internBuiltInMethod() is a better mechanism than JNI.

        Unfortunately, it currently requires statically linking all native
code into the kernel.  (BTW, internBuiltInMethod will almost certainly
sprout some more parameters: internBuiltInMethod( builtInMethod * fcnp,
char * classname, char * fcnname, char * fnsig, ClassLoader * cl ) --
where fnsig is checked for overloaded native calls (which I think is a
terrible idea, but it's apparently legal) and cl for security, identity,
and multiprocessing reasons.)

> It should be possible to create a corresponding
> decafJVM::internOpcodeMethod(), which binds an opcode to its machine code.

        A good idea for a JIT compiler down the road.  Not sure how useful
it would be for the interpreter; my understanding is that gcc already
converts the swith-case statement to a table-lookup.

-_Quinn


_______________________________________________
Kernel maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel

Reply via email to