We present a new approach to extend the tokenisation scheme used in Java Card to allow for both invokevirtual and invokeinterface calls to be dispatched using the same virtual method table. An algorithm is described for token assignment to identify methods that can use the same token, even in the presence of interfaces. As a consequence much of the string data in the class files is no longer required at runtime, resulting in compression of the class files by a factor of two. This is applied to the Java 2 Micro Edition (J2ME) platform and simplifies the method dispatch process to the point where it can be implemented directly in hardware.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.