Add bytecode rewriting. This saves a lot of time.
commit5e229aac87c84682c6c27a7cf45bb064bc52059f
authorNevo <sakur.deagod@gmail.com>
Wed, 29 Apr 2009 11:45:59 +0000 (29 13:45 +0200)
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 29 Apr 2009 12:15:20 +0000 (29 14:15 +0200)
tree055bb0ab7afacab2d99662680d35f1e88dd7c769
parentda5960c877e2275075674969c6e6a4156db40f7c
Add bytecode rewriting. This saves a lot of time.

Rewrite "slow" bytecodes to "quick" ones, that JEM supports. Notice, we don't
need to store the original Constant Pool at the orgPointer, because the
Constant Pool is only used by trapping instructions, and we anyway only use
the preprocessed Constant Pool in trap handlers, and in quick bytecodes by
JEM, for which we calculate and substitute correct indices into the
preprocessed Constant Pool.
src/class.c
src/interp/engine/interp_jem.c
src/jam.h