Hi Todd;

I have managed to make run a method on java_thread.  The next
incremental step is to make it a method on the current frame (it keeps
peeking to the current frame anyways for just about everything, and this
will both make the code cleaner and faster by avoiding an unnecessary
level of indirection).  The next incremental step is to make the
"environment" stuff (probably in the class loader, right?) so that
garbage is not produced when the various invoke bytecodes are
encountered.

I made the global isParent fcn a method of java_class.

I removed some trailing "include" directives from header files, and put
them in the (relatively few) cc files that required them for
compilation.

I separated out the various invoke opcodes into a function (for
cleanliness' sake) -- this will be the focus of the "environment"
effort.

I think I'll have to make lots of changes to frame and java_thread --
I'll want to cache the "helper variables" that currently get recomputed
each bytecode, and I'll want to cache them (probably) on invocations,
which will mean some code'll have to get divided up and reapportioned
between the invocation code and the steady-state code.

I will not get to check these in until tonight at the earliest: 
However, here is the list of files that I have mucked about in/with (you
can ignore the Makefile entries):

[jm@linux JJOS]$ fgrep -i local status.log
File: Makefile          Status: Locally Modified
File: frame.cc          Status: Locally Modified
File: frame.h           Status: Locally Modified
File: interp.cc         Status: Locally Modified
File: java_class.cc     Status: Locally Modified
File: java_class.h      Status: Locally Modified
File: java_thread.cc    Status: Locally Modified
File: java_thread.h     Status: Locally Modified
File: scheduler.cc      Status: Locally Modified
File: TODO              Status: Locally Modified
[jm@linux JJOS]$ 

Gotta run!

-jm

-- 
==== John Morrison
==== MaK Technologies Inc.
==== 185 Alewife Brook Parkway, Cambridge, MA 02138
==== http://www.mak.com/welcome.html
==== vox:617-876-8085 x115
==== fax:617-876-9208
==== [EMAIL PROTECTED]

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

Reply via email to