Supporting dynamically-typed languages in typed assembly languages
Abstract
In accordance with one embodiment of the present invention, a technique for supporting dynamically typed languages in typed assembly languages is provided. According to one embodiment, a new bytecode instruction, “invokedynamic,” supplements “invokevirtual.” Prior to the execution of a typed assembly language program, it is determined whether a particular method-invoking instruction is a particular kind of instruction. If the instruction is of the particular kind, then the verifier refrains from performing the usual pre-execution type checking of the arguments that will be on the operand stack when the instruction is executed. Consequently, the bytecode instruction may be used to represent the invocation of a method that might not indicate formal parameter types. Because the verifier performs less stringent type checking in response to such an instruction, the JVM can execute assembly language programs that were generated based on source code that was written in a dynamically typed language.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 21 · Forward citations: 10.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: prior to executing a typed assembly language program that contains a particular instruction that invokes a programmatic method when executed, one or more processors performing steps comprising: determining whether the particular instruction is a particular kind of instruction; if the particular instruction is of the particular kind, then refraining from checking, prior to execution of the assembly language program, types of arguments that will be on a stack when the particular instruction is executed, and executing the assembly language program, includ
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (21)
Non-Patent Literature (4)
- Bracha, Gilad, "Generics in the Java Programming Language," [online], Jul. 5, 2004, [retrieved on Jun. 14, 2005]. Retrieved from the Internet: <http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf>, pp. 1-23.
- Claims as Filed, App. No. 06251778.4, 10 pages.
- Duggan, Dominic, "Sharing in Typed Module Assembly Language," Types in Compilation, Third International Workshop, 2001, XP-002384687 , pp. 85-116.
- European Patent Office, "Extended European Search Report," App. No. 06251778.4, dated Jun. 23, 2003, 4 pages.