Differences between revisions 2 and 3
Revision 2 as of 2008-05-13 09:06:41
Size: 599
Comment:
Revision 3 as of 2009-09-20 21:54:34
Size: 600
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 6: Line 6:
[[BR]]
If rewriting of a method requires low-level details about active platform instruction sets use [:Jitirno_OPT/api_magic: LIR-based api_magic pass]
[[BR]]
<<BR>>
If rewriting of a method requires low-level details about active platform instruction sets use [[Jitirno_OPT/api_magic| LIR-based api_magic pass]]
<<BR>>

'hlo_api_magics' pass replaces known Java API method calls with predefined algorithms written with HIR.

The optimization replaces calls to known API or VM-kernel methods with an optimized set of HIR instructions.
Notes:
If rewriting of a method requires low-level details about active platform instruction sets use LIR-based api_magic pass

Example of Java API methods that can be replaced with HIR templates:

    java/lang/String.compareTo
    java/lang/String.indexOf
    java/lang/System.arraycopy
...

Jitrino_OPT/hlo_api_magic (last edited 2009-09-20 21:54:34 by localhost)