System and method for efficient compilation and invocation of function type calls
Abstract
A system and method for efficient compilation and invocation of function type calls in a virtual machine (VM), or other runtime environment, and particularly for use in a system that includes a Java Virtual Machine (JVM). The system comprises a virtual machine for executing a software application; a memory space for the application byte code comprising callsites generated using a function type carrier; a bytecode to machine code compiler which performs MethodHandle invocation optimizations; a memory space for the compiled machine code; and a memory space for storing software objects as part of the software application. The system enables carrying the function type from the original MethodHandle to a callsite in the generated bytecode, including maintaining generics information for a function type acquired from a target function, and generating a callsite based on the generics information for the function object invocation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 16.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system for generating efficient code for function type calls in a Java virtual machine or similar environment, comprising: a computer which includes a virtual machine for executing a software application thereon; a memory space which stores software application bytecode that includes callsites, compiled machine code, and software objects, as parts of the software application; and a bytecode to machine code compiler, which optimizes function reference invocations for use within the software application, including, during compilation of the bytecode and prior to execution of a particular calls
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 16 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (5)
- Alpern et al., Efficient Implementation of Java Interfaces: Invokeinterface Considered Harmless, published ACM SIGPLAN Notices 2001, pp. 1-17.
- Benton et al., Compiling Standard ML to Java Bytecodes, publihsed ICFP '98, 1998, pp. 129-140.
- Bracha et al., Closures for the Java Programming Language (v.05), published online before Nov. 5, 2009, pp. 1-7.
- Bracha, G. et al., Closures for the Java Programming Language (v0.5), 9 pages, printed from http://www.javac.info/closures-v05.html on Nov. 30, 2010.
- Closures, Langtools: Summary, closures-dev@openjdk.java.net, Copyright 2010 Oracle Corporation, 1 page, printed from http://hg.openjdk.java.net/closures/closures/langtools on Nov. 30, 2010.