Title of article
Type-safe method inlining
Author/Authors
Neal Glew، نويسنده , , Jens Palsberg، نويسنده ,
Issue Information
دوهفته نامه با شماره پیاپی سال 2004
Pages
26
From page
281
To page
306
Abstract
In a typed language such as Java, inlining of virtual methods does not always preserve typability. The best known solution to this problem is to insert type casts, which may hurt performance. This paper presents a solution that never hurts performance. The solution is based on a transformation that modifies static type annotations and changes some virtual calls into static calls, which can then be safely inlined. The transformation is parametrised by a flow analysis, and for any analysis that satisfies certain conditions, the transformation is correct and idempotent. The paper presents the transformation, the conditions on the flow analysis, and proves the correctness properties in the context of a variant of Featherweight Java.
Keywords
Types , Objects , Inlining
Journal title
Science of Computer Programming
Serial Year
2004
Journal title
Science of Computer Programming
Record number
1079728
Link To Document