Patents
US 9,104,434 B2#18829916 Most CitedActiveUnited States (USPTO)Utility

Property accesses in dynamically typed programming languages

6Forward Citations (#18829916 Global)
0.6/yrCitation Velocity (#14668444 Global)
1.25Citation PageRank (#30358998 Global)
16Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A code generator may emit a direct access code for accessing a property of an object under conditions which promote type safety in a dynamically typed programming language. The direct access code accesses a value of the property using a hard-coded offset into the object's memory region. In some cases, the direct access code accesses the value after a single type check that guards a sequence of property accesses, including at least one prior sequence member. In some cases, type check code compares an object's type to a designated guard type of an equivalent type cache. An object type may be checked for property-specific access equivalence with types in the equivalent type cache by using a property equivalence record which is associated with the equivalent type cache. When types are not access-equivalent with regard to a property, type safety is preserved by emitting nondirect access code for accessing the property.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 6.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A system for generation and execution of machine code for property accesses in a dynamically typed programming language, the system comprising: at least one processor; a memory in operable communication with the processor; and at least one of the following: (a) a direct access code generator which emits a direct access code for a property access to access a property of an object, the object having a type, the direct access code being emitted when the following conditions are satisfied: types identified in a polymorphic inline cache corresponding to the property access are equivalent, and a typ

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (16)

Non-Patent Literature (5)

  • "Inline caching", retrieved from <<http://en.wikipedia.org/wiki/Inline-caching, May 11, 2014, 4 pages.
  • "Type system", retrieved from <<http://en.wikipedia.org/wiki/Type-system, Sep. 12, 2014, 8 pages.
  • Ahn, et al., "Improving JavaScript Performance by Deconstructing the Type System", In Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation, Jun. 9, 2014, 12 pages.
  • Hölzle, et al. "Optimizing Dynamically-Typed Object-Oriented Languages With Polymorphic Inline Caches", ECOOP '91 proceedings, Springer Verlag Lecture Notes in Computer Science 512, Jul. 1991, 18 pages.
  • International Search Report and Written Opinion, PCT/US2014/068680, mailed May 11, 2015, 13 pages.