Differences between revisions 3 and 4
Revision 3 as of 2008-05-14 08:15:09
Size: 671
Editor: 195
Revision 4 as of 2009-09-20 21:54:44
Size: 673
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
[[BR]][[BR]] <<BR>><<BR>>
Line 4: Line 4:
[[BR]] <<BR>>
Line 7: Line 7:
implementation file: [http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/throwopt.cpp?view=markup http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/throwopt.cpp] implementation file: [[http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/throwopt.cpp?view=markup|http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/throwopt.cpp]]

'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)