摘要 |
<p>Methods and apparatus for creating compacted method signatures from method signature representations in JavaTM class files are disclosed. The use of compacted signatures reduces the amount of memory space occupied by the signatures and, further, improves the efficiency with which a virtual machine may operate. According to one aspect of the present invention, a method for creating a compact representation of a method signature using a virtual machine includes creating 4-bit representations for each of the first parameter, a separator, and a return type included in the method signature. Once the 4-bit representations are created, the representations are packed into a word. In one embodiment, the word is a 32-bit word. In such an embodiment, the 32-bit word may be a 32-bit integer.</p> |