'throwopt' pass replaces exception throwing instruction with a jump to the exception handler.

The optimization finds all HIR's Op_Throw instructions and tests if the exception being thrown can be caught in the current method.
If the exception is caught in the current method it stores the exception object to a special variable and replaces Op_Throw instruction with a jump to the exception handler.

implementation file: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/throwopt.cpp

Jitrino_OPT/throwopt (last edited 2009-09-20 21:54:44 by localhost)