harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Harmony Wiki] Update of "Jitrino OPT/throwopt" by Mikhail Fursov
Date Tue, 13 May 2008 11:21:13 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Harmony Wiki" for change notification.

The following page has been changed by Mikhail Fursov:
http://wiki.apache.org/harmony/Jitrino_OPT/throwopt

------------------------------------------------------------------------------
- the pass replaces Throw instruction with the jump to the exception handler.
+ ''' 'throwopt' ''' pass replaces exception throwing instruction with a jump to the exception
handler.
+ [[BR]][[BR]]
+ The optimization finds all HIR's ''Op_Throw'' instructions and tests if the exception being
thrown can be caught in the current method.
+ [[BR]]
+ 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.
  
- It identifies Op_Throw HIR instructions. Then test if the exception being thrown can be
caught in the method being compiled. If yes it just store the exception object to the respective
variable and replaces Throw instruction with the jump to the exception handler.
- 

Mime
View raw message