Method inlining added
Submitted by epr on Thu, 02/19/2004 - 20:47.
I've added method inlining to the native code compiler in the cvs HEAD branch. All methods that can be inlining according to the rules below are inlined to avoid the overhead of a methodcall.
I still have to fix the stacktraces shown in an exception, the linenumbers of the inlined method are incorrect.
Rules; a method can be inlined if all of the items below are true
- The method is private, static or final
- The method is not native or abstract
- The method is not synchronized
- The bytecode of the method is less then 32 bytes long
- Login to post comments